File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ module Commands
89
89
90
90
def help
91
91
puts 'jt build build'
92
+ puts 'jt build truffle build only the Truffle part, assumes the rest is up-to-date'
92
93
puts 'jt clean clean'
93
94
puts 'jt rebuild clean and build'
94
95
puts 'jt run [options] args... run JRuby with -X+T and args'
@@ -114,8 +115,15 @@ def help
114
115
puts 'you can also put build or rebuild in front of any command'
115
116
end
116
117
117
- def build
118
- mvn 'package'
118
+ def build ( project = nil )
119
+ case project
120
+ when 'truffle'
121
+ mvn '-pl' , 'truffle' , 'package'
122
+ when nil
123
+ mvn 'package'
124
+ else
125
+ raise ArgumentError , project
126
+ end
119
127
end
120
128
121
129
def clean
@@ -251,7 +259,14 @@ def main(args)
251
259
exit
252
260
end
253
261
254
- send args . shift if %w[ build rebuild ] . include? args . first
262
+ case args . first
263
+ when "rebuild"
264
+ send ( args . shift )
265
+ when "build"
266
+ command = [ args . shift ]
267
+ command << args . shift if args . first == "truffle"
268
+ send ( *command )
269
+ end
255
270
256
271
return if args . empty?
257
272
You can’t perform that action at this time.
0 commit comments