Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -234,19 +234,17 @@ def checkout(branch)
sh 'git', 'checkout', branch
rebuild
end

def build(*args)
def build(project = nil)
opts = %w[-DskipTests]

if args.delete 'truffle'
opts += ['-pl', 'truffle', 'package']
end

unless args.empty?
raise ArgumentError, args.inspect
case project
when 'truffle'
mvn *opts, '-pl', 'truffle', 'package'
when nil
mvn *opts, 'package'
else
raise ArgumentError, project
end

mvn *opts
end

def clean

0 comments on commit 1cd2a04

Please sign in to comment.