On Jun 22, 2010, at 11:03 AM, Michael Ludwig wrote:
> 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:
>
Provided by Java out of the box, if I'm not mistaken. :)
-Matt
> <project>
> <echo level="info" message="${user.name}"/>
> </project>
>
> --
> Michael Ludwig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]