Created
July 25, 2012 10:13
-
-
Save kaizimmer/3175435 to your computer and use it in GitHub Desktop.
Ant script storing machine name in property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="get-machine-name" default="default"> | |
<target name="default"> | |
<exec executable="hostname" outputproperty="computer.hostname"/> | |
<echo level="info">${computer.hostname}</echo> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment