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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -