which class belongs to tag

2005-11-11 Thread Antoine Solomon
Hello all, I would like to know which class belongs to the tag. I would like to create a task that has the same functionality of with a few added features. I looked at the org.apache.tools.ant.taskdefs.Execute but when extending and trying to use it in my ant build.xml file, it complained that i

Re: which class belongs to tag

2005-11-11 Thread Matt Benson
org.apache.tools.ant.taskdefs.ExecTask . HTH, Matt --- Antoine Solomon <[EMAIL PROTECTED]> wrote: > Hello all, > > I would like to know which class belongs to the > tag. I would like to > create a task that has the same functionality of > with a few added > features. > I looked at the > org.a

Re: which class belongs to tag

2005-11-11 Thread Ivan Ivanov
Hello Antoine, task is implemented in org.apache.tools.ant.taskdefs.ExecTask. You can see the mappings between task tag names (like , ) and their implementing classes on [1]. Regards Ivan [1]http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properti

How to execute an AntCall for each property in a set

2005-11-11 Thread Clifton Craig
I need to iterate a propertyset which lists a project's dependencies. It's basically just a list of name/val pairs matching a 3rd party product (or open source jar) with a version. I want to execute an Antcall or something of the like to ask our jar repository for the proper jar file so the buil

Re: How to execute an AntCall for each property in a set

2005-11-11 Thread Matt Benson
Hmm... Ant 1.7 in combination with antcontrib is designed to support this. Assuming you have to use production releases, I would write either: (a) a custom task to convert a property set to a list or (b) a custom type to wrap a PropertySet ps, with public Iterator iterator() { retu

Re: which class belongs to tag

2005-11-11 Thread Antoine Solomon
Thanks for the link On 11/11/05, Ivan Ivanov <[EMAIL PROTECTED]> wrote: > > Hello Antoine, > > task is implemented in > org.apache.tools.ant.taskdefs.ExecTask. > > You can see the mappings between task tag names (like > , ) and their implementing classes on > [1]. > > Regards > Ivan > > > [1]http

Re: How to execute an AntCall for each property in a set

2005-11-11 Thread Clifton Craig
Matt, Thanx for the reply. However I was looking for a more standard approach avoiding antcontrib. I want my build to be as simple as possible without the need to pile on a bunch of additional library code as I took the latter approach before and wound up in a lot of trouble down the line. I gu

RE: How to execute an AntCall for each property in a set

2005-11-11 Thread Burgess, Benjamin
Before you completely reject all external tasks, you should at least look at Ivy as it does exactly what you are describing (including generation of tree reports showing dependencies). http://www.jayasoft.org/ivy Ben -Original Message- From: Clifton Craig [mailto:[EMAIL PROTECTED] Sent:

Re: JUnit task not working

2005-11-11 Thread Clifton Craig
I see you're using the ant-junit.jar file. That is the Ant Task wrapper for Junit and you shouldn't need to reference it ordinarily. It's there to define the JUnit task and doesn't include the JUnit core API. You need to include junit.jar in Ant's CLASSPATH or in the CLASSPATH of an explicit tas

Re: How to execute an AntCall for each property in a set

2005-11-11 Thread Clifton Craig
Ben, Thanx for the tip. I looked at and downloaded Ivy. Looks like a glove fit for what I wanted. I'm going to start simple and declare only external jar dependencies at first. As I see need I'll grow my usage of Ivy. Could you help me out with something relatively simple? I want to retreive a

testing ant failure

2005-11-11 Thread Thomas L Roche
How to test that an ant script fails appropriately? Specifically: I'm working on a build app (a java app for building lots of different things in lots of different places) that basically {creates, shleps, invokes} ant scripts. I have a few JUnit tests on the app (and am writing more). I'm hookin

Re: testing ant failure

2005-11-11 Thread Ninju Bohra
Have you looked at the BuildFileTest class (part of the ant-testutil.jar) that has some helpful methods to determine whether a build file fails for the "right" reason. My test methods are like: public void testMissingInputDateFailure() { expectSpecificBuildException("missingInputD