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 to a prop
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
Date: Wednesday, January 27, 2010, 10:54 PM
Have you tried id+refid?
.
Jan
>-Ursprüngliche Nachricht-
>Von: Dean Schulze [mailto:dean_w_schu...@yahoo.com]
>Gesendet: Mittwoch, 27. Januar 2010 17:11
>An: Ant Users List
>Betreff: Re: AW: Use the same in multipl
On Tue, 26 Jan 2010, Dean Schulze wrote:
> Instead of repeating and tags I want to
> declare a once and use it in multiple tasks.
>
> The problem is that contains an implicit fileset and does not
> allow the tag inside of it.
>
> Is ther
lements, respectively."
And in the examples:
is the same as the previous example, with the addition of a second source path,
defined by the property src2. This can also be represented using nested
elements as follows:
Jan
>-----Ursprüngliche Nachricht-
Instead of repeating and tags I want to declare
a once and use it in multiple tasks.
The problem is that contains an implicit fileset and does not allow
the tag inside of it.
Is there a way to include an external fileset in ?
__
Do You
rgets were called from,
using the java program to control when, handle errors, etc.
Derek
-Original Message-----
From: Dean Schulze [mailto:dean_w_schu...@yahoo.com]
Sent: Thursday, June 11, 2009 11:28 AM
To: user@ant.apache.org
Subject: Replacing build.xml with Build.java - Doing Ant builds dir
The Ant documentation has a section titled "Using Ant Tasks Outside
of Ant" which gives a teaser for how to use the Ant libraries from Java
code. In theory it seems simple enough to replace build.xml with
Build.java. The Ant documentation hints at some undocumented
dependencies that I'll have to