RE: Calling CYGWIN from Ant in XP

2009-08-04 Thread Martin Gainty
193 is missing extension http://about-java-programming.blogspot.com/2007/02/javaioioexception-createprocess.html i would try the ant rexec task http://ant.apache.org/manual/OptionalTasks/rexec.html make sure default port 512 conforms to rexec daemon on intended unix server Martin Gainty ___

Re: Calling CYGWIN from Ant in XP

2009-08-04 Thread Eric Fetzer
Of course I had to fix the file so that it no longer called cygwin.bat since it's in that shell now (solve the problem of getting to the shell later)...  So running inside the cygwin shell, running: I get: BUILD FAILED c:\cygwin\home\myuser\testCYGWIN.xml:3: Execute failed: java.io.IOExceptio

Re: Calling CYGWIN from Ant in XP

2009-08-04 Thread Eric Fetzer
Maybe a different issue is under this.  When I run the same build file directly in cygwin, I get the same error.  From the command line it's fine though.  Does this make more sense? From: Eric Fetzer To: Ant Users Sent: Tuesday, August 4, 2009 1:55:32 PM Sub

Calling CYGWIN from Ant in XP

2009-08-04 Thread Eric Fetzer
I'm trying to call CYGWIN from Ant in XP unsuccessfully.  I need to run a shell script from winders that returns a value to me.  Tried:           I get: BUILD FAILED C:\BuildDeployScripts\testCYGWIN.xml:3: Execute failed: java.io.IOException: Crea teProcess: Cygwin.bat /cygdrive/c/cygwi

RE: Scope of a record task name

2009-08-04 Thread Jerry Gene-Sung Chung
For some reason, my ant script has been stripped off from the previous email, so I am attaching it. I have to modify the result in the previous email as well: [echo] Parent target started child: [echo] Child target started - child-01.log [echo] Child target processing - child

Scope of a record task name

2009-08-04 Thread Jerry Gene-Sung Chung
Hi Users, I just wondered of the scope for a record task name, so it would be great if you could share your knowledge. I have two targets to record both activities like these: I was assuming the record name could be managed globally, but it seems n

Re: query

2009-08-04 Thread Brian Agnew
Yes, that works nicely. Thanks! Brian On 04/08/2009 13:05, Kronus David wrote: Hi Brian, if a DTD does not have a public ID (you have to look at the DTD itself, there may be one eventhough it is not used in the XML), it has just the system one and then this is immediately the location of the

RE: query

2009-08-04 Thread Kronus David
Hi Brian, if a DTD does not have a public ID (you have to look at the DTD itself, there may be one eventhough it is not used in the XML), it has just the system one and then this is immediately the location of the file, how else would you refer to it? Another thing is a mapping of an URL (whic

query

2009-08-04 Thread Brian Agnew
Hi - When using I have to specify the DTD public id, and the location. Now, if I have an XML with the following DOCTYPE definition http://java.sun.com/dtd/preferences.dtd";> This appears to have no public id (or is it implicit, somehow?). How do I reference a local copy of the above DTD usi

Re: Run / Launch a java application with ANT

2009-08-04 Thread Avlesh Singh
> > I want to create a big script for update data from a CVS repository and > alter update the database and load data into it and do it in only one > object. > 1. Use the CVS task to perform an update. ( http://ant.apache.org/manual/CoreTasks/cvs.html) 2. Use the SQL task for updates and

RE: Run / Launch a java application with ANT

2009-08-04 Thread Redondo Gallardo, Raul Maria
I want to create a big script for update data from a CVS repository and alter update the database and load data into it and do it in only one object. Thanks for all. -Mensaje original- De: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.fin-nrw.de] Enviado el: martes, 04 de agosto de

AW: Run / Launch a java application with ANT

2009-08-04 Thread Jan.Materne
I dont know what you want to achive. I could think of - launching the application during the build for tests - provide a launcher to the end user - monitor an application (e.g. in the enterprise environment) The first can be done with . JMX could ask the running application for data if you cont h

Re: Check if exist a file and then run or not a target

2009-08-04 Thread Sushim Saini
ya my mistake it should be like if="fileExist", not if="checkForExist" Thanks to correct me On Tue, Aug 4, 2009 at 3:45 PM, Michael George wrote: > Redondo Gallardo, Raul Maria wrote: > >> Thank you very much, >> >> I'll try it now, this seems be a good form to do this. >> >> Thank you very mu

Re: Check if exist a file and then run or not a target

2009-08-04 Thread Michael George
Redondo Gallardo, Raul Maria wrote: Thank you very much, I'll try it now, this seems be a good form to do this. Thank you very much. Best regards -Mensaje original- De: Sushim Saini [mailto:sushimsa...@gmail.com] Enviado el: martes, 04 de agosto de 2009 11:46 Para: Ant Users List As

RE: Check if exist a file and then run or not a target

2009-08-04 Thread Redondo Gallardo, Raul Maria
Thank you very much, I'll try it now, this seems be a good form to do this. Thank you very much. Best regards -Mensaje original- De: Sushim Saini [mailto:sushimsa...@gmail.com] Enviado el: martes, 04 de agosto de 2009 11:46 Para: Ant Users List Asunto: Re: Check if exist a file and the

Re: Why does Junit Task buffers all logs

2009-08-04 Thread Steve Loughran
Mel T wrote: When running a JUnit task, all logs are accumulated in a ByteArrayOutputStream. This can consume a lot of memory if running in debug and some libraries make excessive use of debug logging (such as DBUnit). Why does the JUnit task do that? It isnt junit so much as the junit logge

RE: Check if exist a file and then run or not a target

2009-08-04 Thread Felix Dorner
Maybe you want, although it's not really the same...? ... The other way would be to use ant-contrib's if. Which I think is ugly. I'm trying to do with ANT anything like: If exist a file (file.txt) Exec file.bat End if

Re: Check if exist a file and then run or not a target

2009-08-04 Thread Sushim Saini
HI u can try like that Exec file.bat hope will helpfull for u Sushim On Tue, Aug 4, 2009 at 3:07 PM, Redondo Gallardo, Raul Maria < rmredo...@eservicios.indra.es> wrote: > Hello, > > > > I’m trying to do with ANT anything like: > > > > If exist a file (fi

Re: Problem with zip task

2009-08-04 Thread Steve Loughran
Cole, Derek E wrote: I don't think this will be possible really. The filesystem is actually a clearcase snapshot view on that NAS...it gets a set of default permissions when the view is created/updated. Clearcase is not a normal FS, wierd things happen. I fear it. If anything misbehaves, reb

Check if exist a file and then run or not a target

2009-08-04 Thread Redondo Gallardo, Raul Maria
Hello, I'm trying to do with ANT anything like: If exist a file (file.txt) Exec file.bat End if But I don't get it. Is it possible to do this with ANT? Thank you very much. Best regards, Raúl María Redondo Gallardo Dpto. tr