How to get own $UID in ant? -


$ echo $uid # return user id 

i want use information within ant-buildfile. solution set variable explicitly:

ant some-target -downer_uid=$uid  

this way, in buildfile "${owner_id}" available usage.

is there way information within buildfile in "internal" way, without need pass $uid parameter?

not cross-platform solution, following work in unix-like environments:

<exec executable="id" failonerror="true" outputproperty="uid">     <arg value="--user"/> </exec>  <echo>uid: ${uid}</echo> 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -