How to Stop Build When EJBDeploy Finds Errors

2006-09-22 Thread wayneaz
I have a build script that executes ejbdeploy.bat. When errors are found the build still reports a successful build. I need to find a way to stop the build and report a build failure when the ejbdeploy.bat program finds errors. I have tried using failonerror="true" to no effect. I have pasted

Re: s and nested directories

2006-09-22 Thread Matt Benson
Additionally, note that unless you are specifically trying to exclude files without an extension, includes="**/*" is sufficient. -Matt --- Mark Modrall <[EMAIL PROTECTED]> wrote: > Hi... > > > > In one of our ant tasks, we have > > > > includes="*.*"/> > > >

s and nested directories

2006-09-22 Thread Mark Modrall
Hi... In one of our ant tasks, we have Which we intend to copy over all the files in that directory to another directory. Someone added subdirectories to that today, and none of the subdirectories got copied. How does one make a task copy over a

Re: Execute task for each file in a fileset?

2006-09-22 Thread Gilbert Rebhan
Oops : has to be Filename === @{file} the task uses macrodef under the hood therefore you have to use the syntax with @{...} Gilbert Rebhan wrote: > Hi, Eric > > use the antcontrib task like that > > > > > > > > Filename === @{file} > > > >> I'd like to execu

Re: Execute task for each file in a fileset?

2006-09-22 Thread Gilbert Rebhan
Hi, Eric use the antcontrib task like that Filename === @{file} > I'd like to execute a task or a target for each file in a fileset (ex: copy > each file in a fileset to another location with another name). The _apply_ > task does this for system commands, but ho

Re: Execute task for each file in a fileset?

2006-09-22 Thread Dominique Devienne
Use Ant-Contrib's . --DD On 9/22/06, Jung, Eric <[EMAIL PROTECTED]> wrote: Hi, I'd like to execute a task or a target for each file in a fileset (ex: copy each file in a fileset to another location with another name). The _apply_ task does this for system commands, but how can I do it for built

Execute task for each file in a fileset?

2006-09-22 Thread Jung, Eric
Hi, I'd like to execute a task or a target for each file in a fileset (ex: copy each file in a fileset to another location with another name). The _apply_ task does this for system commands, but how can I do it for built-in tasks or tasks defined with PreSetDef? A "ForEach" task? Thanks, Eric --

Re: Copying, filtering

2006-09-22 Thread Kovács István
Mathieu, Daniel, thanks for the answers. I'll go with the macro-based solution, as that removes more duplication. Kofa Mathieu Champlon wrote: You can use along with from ant-contrib - To unsubscribe, e-mail: [EMAIL PROT

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
That's interesting what you said about . I didn't realise it would eat up so much resources. I actually would have thought that actually worked as a type of "goto" that simply jumped to the target. I guess not. I was curious as to how I would implement a macro to call a specific target though? I

Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Steve Loughran
David Corley (AT/LMI) wrote: Hey Steve, I'll take your code, and play around with it, but for the moment I'm going to try and switch the to an coupled with 2 statements. I've got a developer testing it at the moment, and hopefully he'll get some results from it. I'll post back here if

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Matt Benson
--- "David Corley (AT/LMI)" <[EMAIL PROTECTED]> wrote: > Hey Steve, > I'll take your code, and play around with it, but > for the moment > I'm going to try and switch the to an > coupled with 2 > statements. I've got a developer testing > it at the moment, and > hopefully he'll get some r

Building multiple projects from one ant build.xml

2006-09-22 Thread lars.mattsson
Hello, is there any possibility to several projects from one build.xml. Example: And also is there a possibility to link in external project build.xml files to the current build.xml file. AppA build.xml build.properties AppB build.xml build.

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
Hey Steve, I'll take your code, and play around with it, but for the moment I'm going to try and switch the to an coupled with 2 statements. I've got a developer testing it at the moment, and hopefully he'll get some results from it. I'll post back here if he succeeds. Oh by the way, is

Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Steve Loughran
David Corley (AT/LMI) wrote: I should explain my reasoning for carrying things out the way I do. Basically, I've defined a core build.xml for every developer on our site. It allows them to only have to set their classpaths and properties, and everything else will just work for them. So far it's

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
I'll throw something together as a test, and file a bug report. Thanks Pete. /Dave -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: 22 September 2006 15:37 To: Ant Users List Subject: Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after us

Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Peter Reilly
The follows triggers a bug similar to your description: C:\work\learning\ref\macro.xml:8: java.lang.ClassCastException: org.apache.tools.ant.types.Path cannot be cast to org.apache.tools.ant.UnknownElement I think that this could also be triggered by Peter On 9/22/06

Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Peter Reilly
This is a bug. Can you open a bug request for this please. Do you use the id tag ? (references) in macro definitions. The way references work at the moment could (I think) cause the symtoms you describe. see: http://issues.apache.org/bugzilla/show_bug.cgi?id=34458 for an example. Please try to

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
Beffling is the word. I'm pretty familiar with Ant, and this is the first time I've seen such a low level error. The pre and post targets are filled with tasks of the end-users choice. But for the example below and in the code that's causing the error, I have just the one task in the pre target.

Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Dominique Devienne
Hmmm, this is baffling indeed. Are the pre and post target above really empty? If not, do they depend on any properties or references from the main build you pass in thru ? --DD PS: Note that your approach to this problem seems

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
Sure guys sorry. I've just tried running the code with Ant 1.7 beta2 and the error remains. The core build.xml contains the following (relevant) code: ===

Re: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread Dominique Devienne
On 9/22/06, David Corley (AT/LMI) <[EMAIL PROTECTED]> wrote: I have a situation where I have a common core build.xml for many users, with an optional junit-setup.xml build file called by ant if the user sets a particular property, junit.setup.required. The junit-setup file is a standard file of

RE: "java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
t(s) `pre' is [pre] Complete build sequence is [pre, post, ] pre: [echo] Pre jnuit... [ant] Exiting C:\tools\ebldtool\PROJ\AM\R5-junit-setup.xml. junit: [copy] Copying 1 file to C:\tmp\ebldtool\edecrya\20060922\AM\DUMMY\reports\junit [copy] Copying C:\tools\ebldtool\D

"java.lang.ClassCastException: org.apache.tools.ant.types.Path" error after using task within ant

2006-09-22 Thread David Corley \(AT/LMI\)
is [pre] Complete build sequence is [pre, post, ] pre: [echo] Pre jnuit... [ant] Exiting C:\tools\ebldtool\PROJ\AM\R5-junit-setup.xml. junit: [copy] Copying 1 file to C:\tmp\ebldtool\edecrya\20060922\AM\DUMMY\reports\junit [copy] Copying C:\tools\ebldtool\DUMMY\TESTS-TestSuites.x