AW: Need cross platform way of assigning users name to a property

2010-06-25 Thread Jan.Materne
http://ant.apache.org/manual/properties.html#built-in-props Jan >-Ursprüngliche Nachricht- >Von: Dean Schulze [mailto:dean_w_schu...@yahoo.com] >Gesendet: Donnerstag, 24. Juni 2010 19:47 >An: Ant Users List >Betreff: Re: Need cross platform way of assigning users name

Re: Need cross platform way of assigning users name to a property

2010-06-24 Thread Dean Schulze
  Thanks for the responses.   The ${user.name} was the answer to my problem.  I didn't know that all the Java System.getProperties() were available in Ant.   --- On Tue, 6/22/10, Michael Ludwig wrote: From: Michael Ludwig Subject: Re: Need cross platform way of assigning users name

Re: Need cross platform way of assigning users name to a property

2010-06-22 Thread Michael Ludwig
Matt Benson schrieb am 22.06.2010 um 11:06 (-0500): > > 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. :) Indeed, it is all of *Java's* System.getProperties() which is in

Re: Need cross platform way of assigning users name to a property

2010-06-22 Thread Matt Benson
On Jun 22, 2010, at 11:03 AM, Michael Ludwig wrote: > Dean Schulze schrieb am 22.06.2010 um 08:25 (-0700): > >> >> >> > >> 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

Re: Need cross platform way of assigning users name to a property

2010-06-22 Thread Vinayak
To put all together; I think env.USER will return username on mac systems as well.

Re: Need cross platform way of assigning users name to a property

2010-06-22 Thread Michael Ludwig
Dean Schulze schrieb am 22.06.2010 um 08:25 (-0700): > > > > 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 probab

RE: Need cross platform way of assigning users name to a property

2010-06-22 Thread John W. Lewis
, 2010 11:25 AM To: user@ant.apache.org Subject: Need cross platform way of assigning users name to a property My build.xml starts with the following lines:     This imports a build.local.xml file that holds machine-specific properties for each developer.   The problem is that this does not

Need cross platform way of assigning users name to a property

2010-06-22 Thread Dean Schulze
My build.xml starts with the following lines:     This imports a build.local.xml file that holds machine-specific properties for each developer.   The problem is that this does not work on UNIX because the username is in env.USER in unix.  I need a cross-platform way to assign a user.name prop