ant filtering - fail if property not set

前端 未结 5 1734
后悔当初
后悔当初 2020-12-15 16:47

I\'ve got a ant build.xml that uses the task to copy a variety of xml files. It uses filtering to merge in properties from a bu

5条回答
  •  我在风中等你
    2020-12-15 17:21

    If you are looking for a specific property, you can just use the fail task with the unless attribute, e.g.:

    Computer says no. You forgot to set 'my.property'!
    

    Refer to the documentation for Ant's fail task for more detail.

提交回复
热议问题