ant嵌套构建时,properties的定义

嵌套编译时,property的是不能重新设置的;也就是说在使用<ant ><property name="type" value="release"/></ant>时,下级编译接收不到type的值;

这时候我去官网上查看了一些资料,发现property的定义也是后有level区分的:

Properties defined on the command line cannot be overridden by nested <property> elements. Since Ant 1.8.0, the same is true for nested structures of <ant> tasks: if a build file A invokes B via an <ant> task setting a property with a nested <property> element and B contains an <ant> tasks invoking C, C will see the value set in A, even if B used a nested <property> element as well.

网址:http://ant.apache.org/manual/,这里介绍了更多的property的定义。

我们的项目中在使用ant时,使用了ant -Dtype=debug,命令行中定义了type,这时候subproject中的type是不能再被定义的.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值