Dean Schulze schrieb am 22.06.2010 um 08:25 (-0700):
> <property environment="env"/>
> <property name="user.username.dir" value="user/${env.USERNAME}"/>
> <import file="${user.username.dir}/build.local.xml" optional="true"/>
> I need a cross-platform way to assign a user.name property in Ant.
> Is there some way that I can read the username from the environment in
> a cross-platform way given that it has to happen at the top of the
> script?
I'm probably missing something, but what's wrong with the following,
which is provided by Ant out of the box:
<project>
<echo level="info" message="${user.name}"/>
</project>
--
Michael Ludwig
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]