ant machine name property

后端 未结 6 899
轮回少年
轮回少年 2020-12-30 22:31

Is there a way to get the machine name as ant property, for both Linux and Windows OS.

6条回答
  •  生来不讨喜
    2020-12-30 23:10

    I would write a custom Ant task.

    Once you start writing you own tasks you will find that Ant gets a lot more fun and easy to use. You don't need strange solutions that are hard to understand.

    Once the task is written you would just do something like:

    
    

提交回复
热议问题