ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <>
Subject Re: Need cross platform way of assigning users name to a property
Date Tue, 22 Jun 2010 16:03:34 GMT
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 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:

  <echo level="info" message="${}"/>

Michael Ludwig

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message