ant machine name property

后端 未结 6 903
轮回少年
轮回少年 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:13

    The correct way to find the local machine's hostname is by using Ant's HostInfo task. This will work across all platforms and is natively supported by Ant.

    
    
    

提交回复
热议问题