开发者

Ant property not evaluated correctly?

开发者 https://www.devze.com 2023-03-02 11:00 出处:网络
I am using a custom ant buildscript for my Android app. I have a property ${distributionTarget} that is evaluated to for e开发者_如何学Pythonxample Android_Market.

I am using a custom ant buildscript for my Android app.

I have a property ${distributionTarget} that is evaluated to for e开发者_如何学Pythonxample Android_Market. However, in some methods, I don't get the output of app-Android_Market-release.apk but I get app-${distributionTarget}-release.apk.

I am positive the property has been set correctly, since earlier in the build-stage I have a echo method, that does shows the value of the property correctly.

What am I missing here?


It appears the property was initialized earlier on with no value. Refactoring the build-script to init the properties later made it work.

0

精彩评论

暂无评论...
验证码 换一张
取 消