java-Buildr-用另一个项目创建的jar编译项目
作者:互联网
我有以下定义:
define "BE" do
project.version = VERSION_NUMBER
project.group = GROUP
manifest['Copyright'] = COPYRIGHT
desc 'Building common project for engine and API'
define 'common' do
compile.with XXX
package :jar
end
desc 'Building the engine project based on common'
define 'engine' do
compile.with XXX
package :jar
end
desc 'Building API project'
define 'API' do
package(:war).with :libs=>project('common')
end
end
我想编译第二个项目-带有从普通项目创建的jar的引擎. (取决于它)
我该怎么做?
解决方法:
您可以将project直接传递给compile.with,摘录为http://buildr.apache.org/building.html
compile.with 'org.apache.axis2:axis2:jar:1.2',
'org.apache.derby:derby:jar:10.1.2.1', projects('teh-api', 'teh-impl')
您也可以简化projects调用,使其只编译为projects(‘common’).
标签:buildr,jruby,ruby,java 来源: https://codeday.me/bug/20191101/1980304.html