Passing property from subproject back to parent project

2007-10-12 Thread info-rico
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

AW: Errorhandling using exec and cmd.exe

2007-10-12 Thread Jan.Materne
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

Errorhandling using exec and cmd.exe

2007-10-12 Thread Knuplesch , Jürgen
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

Re: AW: Using Replace

2007-10-12 Thread Brian Agnew
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

AW: Running task with an "interactive" executable

2007-10-12 Thread Jan.Materne
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

AW: Using Replace

2007-10-12 Thread Jan.Materne
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