<target name="test">
<echo message="basedir : ${basedir}"/>
<echo message="ant.file : ${ant.file}"/>
<echo message="ant.project.name : ${ant.project.name}"/>
<echo message="ant.home : ${ant.home}"/>
<echo message="ant.version : ${ant.version}"/>
<echo message="ant.java.version : ${ant.java.version}"/>
<echo message="java.version : ${java.version}"/>
<echo message="java.vendor : ${java.vendor}"/>
<echo message="java.vendor.url : ${java.vendor.url}"/>
<echo message="java.home : ${java.home}"/>
<echo message="java.vm.specification.version : ${java.vm.specification.version}"/>
<echo message="java.vm.specification.vendor : ${java.vm.specification.vendor}"/>
<echo message="java.vm.specification.name : ${java.vm.specification.name}"/>
<echo message="java.vm.version : ${java.vm.version}"/>
<echo message="java.vm.vendor : ${java.vm.vendor}"/>
<echo message="java.vm.name : ${java.vm.name}"/>
<echo message="java.specification.version : ${java.specification.version}"/>
<echo message="java.specification.vendor : ${java.specification.vendor}"/>
<echo message="java.specification.name : ${java.specification.name}"/>
<echo message="java.class.version : ${java.class.version}"/>
<echo message="java.class.path : ${java.class.path}"/>
<echo message="java.ext.dirs : ${java.ext.dirs}"/>
<echo message="os.name : ${os.name}"/>
<echo message="os.arch : ${os.arch}"/>
<echo message="os.version : ${os.version}"/>
<echo message="file.separator : ${file.separator}"/>
<echo message="path.separator : ${path.separator}"/>
<echo message="line.separator : ${line.separator}"/>
<echo message="user.home : ${user.home}"/>
<echo message="user.name : ${user.name}"/>
<echo message="user.dir : ${user.dir}"/>
<echo message="Path: ${env.Path}"/>
<echo message="Hostname: ${env.COMPUTERNAME}"/>
</target>
Reference:
http://www.roseindia.net/tutorials/ant/built-in-properties.shtml
沒有留言:
張貼留言