我有以下定义:
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 编译第二个项目 - 引擎。(这取决于它)
我该怎么做?