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
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="*.*"/>
>
>
>
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
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
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
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
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
--
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
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
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
--- "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
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.
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
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
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
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
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
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.
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
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:
===
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
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
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
23 matches
Mail list logo