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
Post a Comment