How to set Ant properties based on variables in Eclipse?

后端 未结 5 1926
我在风中等你
我在风中等你 2021-02-13 23:00

I have a common problem and there are probably countless ways to solve it. I\'m looking for an elegant, simple solution to this typical scenario:

I have a project in Ec

5条回答
  •  不思量自难忘°
    2021-02-13 23:41

    See Window -> Preferences -> Ant -> Runtime -> Properties to define custom ant properties that should be available to any ant script invoked from Eclipse. The simply set the same property manually when invoking script from command-line.

    Your build.properties file can exist wherever you like. Use normal Ant facilities to import it into your script.

提交回复
热议问题