AW: Query definition of target?

2007-09-17 Thread Jan.Materne
AFAIK there is no built-in condition. But writing conditions is easy - just implement org.apache.tools.ant.taskdefs.condition.Condition (contains only >>boolean eval() throws BuildException<<). You get a reference to the actual project instance if you have a setProject(Project) method. This is

Query definition of target?

2007-09-17 Thread Cyril Sagan
Our Ant build logic would be much cleaner if there was a way to determine if a particular target was overriden. Does anyone know how to check for the existence/definition of a specified target name? Ideally, we'd like to have something like this: I searched all the resouces

Re: war inlcude problem

2007-09-17 Thread David Weintraub
You never said why it didn't work or what type of error you're getting. I am assuming you want all the jars in the root of the lib directory in the war. Specify a element for each directory, and then include the sub-tasks for the jar files you want. You can use wildcards if that makes things easi

Re: ANT / AntXtras quick question.

2007-09-17 Thread David Weintraub
Try the "isset" task of the task. It can be used with the task You could also use equals: [...] The task is part of antcontrib at http://ant-contrib.sourceforge.net/. Otherwise, look at the task. The task allows you to set a pro

ANT / AntXtras quick question.

2007-09-17 Thread warhero
I'm having trouble trying to figure out how to make sure a property is not empty. So I have a properties file like so myprop=something. And if the myprop is not empty (myprop=) then execute something. Does that make sense? here's some kind of pseudocode. Just some pseudo code, but get's t

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-17 Thread Steve Whatmore
Please ignore that last post, once I thought about it, it became obvious that they are specified in as such with the logger being set through the command line argument. Whatty -Original Message- From: Steve Whatmore [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 1:56 PM

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-17 Thread Steve Whatmore
Not trying to be obtuse of course, the manual pages aren't very explicit with respect to how you provide the properties to the mail logger. Is this through properties file somewhere, ANT Task definition or command line arguments? Thanks in advance. Whatty -Original Message- From: Anders

RE: Automated builds with ANT / JUnit, emailing the results of the build / unit tests

2007-09-17 Thread Anderson, Rob (Global Trade)
The quick solution is MailLogger. http://ant.apache.org/manual/listeners.html#MailLogger The best solution is cruise control or hudson. -Rob A > -Original Message- > From: Peter Reilly [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 13, 2007 1:14 PM > To: Ant Users List > Subject

RE: supressing output

2007-09-17 Thread Anderson, Rob (Global Trade)
Gilbert, That looks pretty cool. Is the code copyrighted? Any chance this could be added to Ant as a standard feature? -Rob Anderson > -Original Message- > From: Gilbert Rebhan [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 13, 2007 10:41 AM > To: Ant Users List > Subject: Re: su

AW: AW: fileset exclude with full path

2007-09-17 Thread Jan.Materne
Here you are Jan import java.io.File; import org.apache.tools.ant.Task; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.util.FileUtils; public class RelpathTask extends Task { private File basefile; private File checkfile; private String propertyname;

Re: AW: fileset exclude with full path

2007-09-17 Thread Eric Dalquist
Thanks for the solution, I may look at doing this in a custom task to avoid the BSF dependency but this should work one way or another. -Eric [EMAIL PROTECTED] wrote: There is no task for that, but a core function in Ant's FileUtils which can be used

AW: fileset exclude with full path

2007-09-17 Thread Jan.Materne
There is no task for that, but a core function in Ant's FileUtils which can be used File: x/a/b/c/d/e/f/g/file.txt Base: x/a/b rel : ${rel

RE: fileset exclude with full path

2007-09-17 Thread George Czernuszka
> From: Eric Dalquist [mailto:[EMAIL PROTECTED] > Sent: 17 September 2007 16:10 > > I have a full path to a directory that I want to create a > fileset of and a full path to a sub-directory that I want to exclude. > > I've tried the following and some variations on it: > > > No matter what

Re: fileset exclude with full path

2007-09-17 Thread Eric Dalquist
I figured that was the requirement ... unfortunately I have no control over the format of either path. All I get is two properties, each is an absolute path, and I need to make a fileset using one as the dir and excluding the other. My other thought was to look into trimming off the first bit

Re: fileset exclude with full path

2007-09-17 Thread Dominique Devienne
On 9/17/07, Eric Dalquist <[EMAIL PROTECTED]> wrote: > dir="/a/b/c/" Not recommended indeed, but if you really can't change that > excludes="/a/b/c/d/**" /> This is wrong. Needs to be relative to dir attribute above. So should be d/** only. --DD ---

fileset exclude with full path

2007-09-17 Thread Eric Dalquist
I have a full path to a directory that I want to create a fileset of and a full path to a sub-directory that I want to exclude. I've tried the following and some variations on it: No matter what I try I can't seem to get the excludes path to be honored. I unfortunately do not have the ability

how to define JNDI props, ant failed to find them when runnin ant task

2007-09-17 Thread matus.majchrak
Greetings, I have a simple Ant Task, which looks up EJB in it. it works when i run it via Eclipse IDE >run as java app but whne i try to run it via Ant it gives an NoInitialContextException. Folder structure is like this -root -root/lib -root/execute.xml lib folder conatins all the neccesary j

Re: AW: AW: war inlcude problem

2007-09-17 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Jan Or, given that is just a with a prefix, you could add new zipfilesets - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: AW: war inlcude problem

2007-09-17 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Mitja B. [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 17. September 2007 12:47 >An: Ant Users List >Betreff: Re: AW: war inlcude problem > >hi, > >hmm how do you mean that? >-- >L.P. >Mitja B. > > >- Original Message >From

Re: AW: war inlcude problem

2007-09-17 Thread Mitja B.
hi, hmm how do you mean that? -- L.P. Mitja B. - Original Message From: Ant Users List To: user@ant.apache.org , [EMAIL PROTECTED] <[EMAIL PROTECTED]> Subject: AW: war inlcude problem Date: 17/09/07 11:50 > multiple s? > > Jan > > >-Ursprüngliche Nachricht- > >

AW: war inlcude problem

2007-09-17 Thread Jan.Materne
multiple s? Jan >-Ursprüngliche Nachricht- >Von: Mitja B. [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 17. September 2007 11:46 >An: Ant Users List >Betreff: Re: war inlcude problem > >any idea? > >thx >-- >L.P. >Mitja B. > > >- Original Message >From: Ant Users List >

Re: war inlcude problem

2007-09-17 Thread Mitja B.
any idea? thx -- L.P. Mitja B. - Original Message From: Ant Users List To: user@ant.apache.org Subject: war inlcude problem Date: 14/09/07 13:22 > i want to create war file, but i have problem with including lib files into > lib folder > > I have lib files in different lib d

AW: How to capture the buildFinished Event

2007-09-17 Thread Jan.Materne
http://ant.apache.org/manual/listeners.html Jan >-Ursprüngliche Nachricht- >Von: aatankwadi aatankwadi [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 17. September 2007 08:28 >An: Ant Users List >Betreff: How to capture the buildFinished Event > >Hi, > > Can any one help, how to captu