AW: Problems with exec tag

2006-08-31 Thread Jan.Materne
Your script works for me ... >I put the ant file below and the content of the test12.txt is >// test exec file notepad.exe; notepad.exe Not sure about the blank after ';' Jan -

Can't compile with

2006-08-31 Thread Mark McKay
I seem to be unable to compile my program using the new task. At first, I simply changed an existing javac tag to apt and tried to compile, but received an error. I tried playing with the options, but am still receiving similar errors. I would eventually like to have apt locate some custom

Re: *****spam***** Conditional execution of tasks

2006-08-31 Thread Geoffrey Mitchell
Have one target build a fileset of the modified files and give it a refid, and also use pathconvert to assign a property containing the contents of the fileset with setonempty="false". Then run your copy target conditionally on the property. Hi, A use a copy task t

Jar task : Manifest File ends with Windows ending '\r'.

2006-08-31 Thread Noel Sebastien \(BIL\)
Hello Am I right to say that there is a little bug in the Jar task about generating a manifest windows like on any platform (each line ends with \r\n instead of \n only in Unix). ? I am using Ant 1.6.5 and the jar task under Sun Solaris and my manifest contains \r\n on each line. > - Sébasti

Problems with exec tag

2006-08-31 Thread Daniel Camara
Hi, I am getting the error "Execute failed: java.io.IOException: CreateProcess: error=2", I know that it is usually related to wrong path and this kind of thing. But this is not the case, I think :). I have an ant script that reads a txt file and executes the programs it finds in this file. The f

Re: Conditional execution of tasks

2006-08-31 Thread Antoine Levy-Lambert
Hello Charles, you can build a fileset using the different selector which will be the fileset you will copy. Read under concept and types in the manual what is the different selector. Here a possible solution : regards, Antoine Origina

Conditional execution of tasks

2006-08-31 Thread Charles Abreu
Hi, A use a copy task to copy modified files from one directory to another directory. I need to run another task if, and only if, at last one file was copied. Is this possible? Thanks!

RE: Jar Locking

2006-08-31 Thread Stephen McConnell
> -Original Message- > From: Marc Farrow [mailto:[EMAIL PROTECTED] > Sent: Friday, 1 September 2006 2:35 AM > To: Ant Users List > Subject: Re: Jar Locking > > Thanks Stephen. If I set all references to Ant to null and > forced GC, would that resolve the problem? Well, umm, this is

Re: Jar Locking

2006-08-31 Thread Marc Farrow
Thanks Stephen. If I set all references to Ant to null and forced GC, would that resolve the problem? On 8/31/06, Stephen McConnell <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Marc Farrow [mailto:[EMAIL PROTECTED] > Sent: Thursday, 31 August 2006 6:13 AM > To: ant-user >

RE: Jar Locking

2006-08-31 Thread Stephen McConnell
> -Original Message- > From: Marc Farrow [mailto:[EMAIL PROTECTED] > Sent: Thursday, 31 August 2006 6:13 AM > To: ant-user > Subject: Jar Locking > > Everytime I run an ant task (either in NetBeans or from > within Java Code), the executing jar gets locked and I cannot > delete the j

RE: Parallel Task

2006-08-31 Thread DHARNA, AJAY [AG/1000]
I just saw that and was going to try it out - thanks Ajay -Original Message- From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 9:44 AM To: Ant Users List Subject: RE: Parallel Task You could use ant contrib. to Try Catch the failure... Ben -Origin

RE: Parallel Task

2006-08-31 Thread Burgess, Benjamin
You could use ant contrib. to Try Catch the failure... Ben -Original Message- From: DHARNA, AJAY [AG/1000] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 10:22 AM To: 'Ant Users List' Subject: Parallel Task Hi all, I have setup my parallel task as below:

Parallel Task

2006-08-31 Thread DHARNA, AJAY [AG/1000]
Hi all, I have setup my parallel task as below: I wanted the parallel task to timeout if it does not get a response in 18 milliseconds - however, I don't want it to fail the build - is there anyway of getting it to timeout but not fail - or - is there any other task t

Re: Jar task : Manifest File ends with Windows ending '\r'.

2006-08-31 Thread Antoine Levy-Lambert
Original-Nachricht Datum: Thu, 31 Aug 2006 14:02:38 +0100 Von: Steve Loughran <[EMAIL PROTECTED]> An: Ant Users List Betreff: Re: Jar task : Manifest File ends with Windows ending \'\\r\'. > Classpath spec says it can be one of \n , \r\n or \r > > I dont think we should adapt

Re: SQL task - creating tablespace in Oracle problem

2006-08-31 Thread Antoine Levy-Lambert
Hello, sorry, this is not an Ant problem at all. Look for an Oracle mailing list. Regards, Antoine Original-Nachricht Datum: Thu, 31 Aug 2006 06:52:34 -0700 (PDT) Von: Angus Rose <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: SQL task - creating tablespace in Oracle prob

SQL task - creating tablespace in Oracle problem

2006-08-31 Thread Angus Rose
Hi All, I'm developing a build file that includes some sql tasks, One of which is creating a tablespace on an Oracle 10g instance. I have run this script but keep getting the follwoing error: BUILD FAILED java.sql.SQLException: ORA-01119: error in creating database file 'changed_to_protec

Re: Jar task : Manifest File ends with Windows ending '\r'.

2006-08-31 Thread Steve Loughran
Noel Sebastien (BIL) wrote: Having backwards compatibility (default behavior) and adding an attribute to choose the eol style of the manifest fits to me perfectly. That is the answer of my problem, if I understand that the next release of Ant will include it (which release : Ant 1.7.0 or 1.7.1

RE: Jar task : Manifest File ends with Windows ending '\r'.

2006-08-31 Thread Noel Sebastien (BIL)
Having backwards compatibility (default behavior) and adding an attribute to choose the eol style of the manifest fits to me perfectly. That is the answer of my problem, if I understand that the next release of Ant will include it (which release : Ant 1.7.0 or 1.7.1 ? Give me just an idea please

Re: Jar Locking

2006-08-31 Thread Steve Loughran
Prashant wrote: Take a look if this utility detailed in this blog can help you figure out which process has the JAR locked. http://blogs.sun.com/roller/page/quinn?entry=tool_for_diagnosing_failed_glassfish actually, if you want to track down open files on win32, sysinternal's handle util

Re: Jar Locking

2006-08-31 Thread Prashant
Take a look if this utility detailed in this blog can help you figure out which process has the JAR locked. http://blogs.sun.com/roller/page/quinn?entry=tool_for_diagnosing_failed_glassfish HTH -Prashant Steve Loughran wrote: Marc Farrow wrote: Everytime I run an ant task (either in NetBeans

Re: Jar Locking

2006-08-31 Thread Steve Loughran
Marc Farrow wrote: Everytime I run an ant task (either in NetBeans or from within Java Code), the executing jar gets locked and I cannot delete the jar. I am copying the ant script and the dependent jar that it needs to run and then executing the ant tasks. Then I wish to delete the "new" co

Re: Redhat Linux Enterprise issues with command line argument containing spaces

2006-08-31 Thread Steve Loughran
Irene Ros wrote: Hello, I've been developing various configuration scripts and I noticed that when I pass arguments through the command like such as -Dusername="firstname lastname" only the part prior to the space is registered. So when I reference ${username} it will return "firstname". Is t

RE: Change JAVA home for one Javac task and not the other

2006-08-31 Thread Noel Sebastien \(BIL\)
Thank you for the answers and the numerous possibilities to solve this. As for my tests, I successfully use another solution using the -bootclasspath (pointing to the other JDK) as explained in http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#crosscomp-options where I do not under