Hi,
I use ANT to build a number of subprojects all controlled from one master
parent ANT build file. I use the task to call various targets in subprojects.
In the subproject-targets I set properties, but they are not available in the
parent project. The manual for the "ant" task says that a ne
The batchfile has to return an exit code itself.
Otherwise cmd will exit with 0 and Ant recieves that 0.
See ant.bat how to "throw an error" in a batchfile (I think it uses "color" for
that ...)
Jan
>-Ursprüngliche Nachricht-
>Von: Knuplesch, Jürgen [mailto:[EMAIL PROTECTED]
>Gesend
Hello,
We have an Ant-File that executes a Batch-File (Windows .bat) and if the
Batchfile fails,
We get a return code=0.
But we want to evaluate errors.
How can the Batchfile tell the ANT-Skript that an error occurred?
Greetings
Jürgen
--
Jürgen Knupleschwww.icongmbh.d
If you want to use XMLTask (and your input is XML - the below doesn't look
quite right), the following will work:
http://www.oopsconsultancy.com/software/xmltask/
Brian
On Fri, October 12, 2007 08:22, [EMAIL PROTECTED] wrote:
> Use a template which you copy and modify.
> See , and
> especia
The input attribut passes the string to the invoked executable. In your case
this is "cmd".
But not your "cmd" needs the passwort, the batchfile does. The cleanest way
would be using a
"-password" option of the batchfile (if it exist).
Otherwise I would try piping inside the cmd ...
Jan
Use a template which you copy and modify.
See , and
especially in the manual the example
"Copy a set of files to a directory, replacing @TITLE@ with Foo Bar in all
files."
Jan
>-Ursprüngliche Nachricht-
>Von: Dharmesh Vyas [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 11. Oktober