ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinayak <vnykm...@gmail.com>
Subject Re: Need cross platform way of assigning users name to a property
Date Tue, 22 Jun 2010 16:03:52 GMT
To put all together;

<property environment="env"/>
<condition property="user.username.dir" value="user/${env.USERNAME}" else="
user/${env.USER}">
  <os family="windows"  />
</condition>

<echo message="user.username.dir=${user.username.dir}" />
<import file="${user.username.dir}/build.local.xml" optional="true"/>

I think env.USER will return username on mac systems as well.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message