Re: Result: 1

2005-08-22 Thread Andrew Goktepe
In this case, "Error code 2" would mean that Windows could not locate the file in response to Ant's attempt to execute it. That error is returned from the OS. Because the file you are trying to run is a batch file, it cannot be run directly. It needs to be interpreted by another executable. Tr

Re: Result: 1

2005-08-22 Thread Ron Wheeler
You might try setting the dir to the name of the directory where the run.bat file lives. The message is a pretty clear mesage from Windows that it is not finding run.bat. It is not yet looking inside it. Ron Dewey, John wrote: Hmm OK. I guess I'm a little confused now. I thought that the ret

RE: Result: 1

2005-08-22 Thread Dewey, John
Hmm OK. I guess I'm a little confused now. I thought that the return codes were determined by the operating system as the ant manual http://ant.apache.org/manual/CoreTasks/exec.html said that "error code 2 means 'no such program'. Is this meaning of error code 2 simply a convention that programs fo

Re: Result: 1

2005-08-22 Thread Andrew Goktepe
The external program that you called from your Ant script returned a value of 1. If you're interested in what that error means you'll have to examine that program. Ant is just relaying it back to you. You could also provide the calling task and more of the output if you want to dig further. -

Result: 1

2005-08-22 Thread Dewey, John
Does anyone know what "[exec] Result: 1" means on windows? I haven't been able to find a listing of error codes for ant. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ReplaceRegExp with windows filenames

2005-08-22 Thread Andrew Goktepe
Assuming that having double backslashes in the basedir would solve your problem, you could use the propertyregex task from ant-contrib to use a second property with that substitution: ... Yes, there are 8 backslashes in the 'replace' attribute value. That is how many I needed to end up with

ReplaceRegExp with windows filenames

2005-08-22 Thread Neil Benn
Hello, I need to make an ant task which will go into a file, look for a pattern and replace it with the contents of the ${basedir} variable. I have the following xml to do this: The target text is : 1 = ,"DropPaqEtc",,"C:\Documents and Settings\Neil Benn\My Docu

Re: How to insert new line character in a string

2005-08-22 Thread EJ Ciramella
You could also try ${line.separator} See: http://ant.apache.org/manual/CoreTasks/property.html http://ant.apache.org/manual/using.html#built-in-props http://java.sun.com/j2se/1.3/docs/api/java/lang/ System.html#getProperties() On Aug 22, 2005, at 1:10 PM, Andrew Goktepe wrote: On second glan

Re: inside doesn't have the expected behavior

2005-08-22 Thread EJ Ciramella
why wouldn't you just use an includes="**/"? On Aug 18, 2005, at 1:59 PM, Jeffrey E Care wrote: Because the first one is part of a selector. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Tardif, Sebastien" <[EMAIL PROTE

RE: Creating a custom task library

2005-08-22 Thread Mark Claassen
Thanks! Its all in knowing what to search for... Confidentiality Notice: OCIESERVICE - The contents of this e-mail message and any attachments are intended solely for the addressee(s) named in this message. This communication

Re: Creating a custom task library

2005-08-22 Thread Jeffrey E Care
http://ant.apache.org/manual/CoreTypes/antlib.html -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Mark Claassen <[EMAIL PROTECTED]> wrote on 08/22/2005 02:14:24 PM: > Is there any way to include the task definition descriptors

Creating a custom task library

2005-08-22 Thread Mark Claassen
Is there any way to include the task definition descriptors in a jar file, AKA custom tag libraries in JSP? For instance, I create a library with two tasks, HelloEarth and HelloMars. To use this I need to define the tasks using taskdef statements in my other ant scripts. It would be cool to incor

RE: Basic ant question

2005-08-22 Thread Kenneth Litwak
Thanks for your reply, Antoine. Yes, I am having a problem. I have code that reads a couple of tables, and combines their contents into a couple of objects (mostly Strings, with a few ints and Dates). The program uses a DAO I wrote that has been in production for months. I've written a report

Re: How to insert new line character in a string

2005-08-22 Thread Andrew Goktepe
On second glance, it looks like that only applies to the fixlastline attribute. If you can't find any other solution, you could try the ugly way - put at the end of each line. I haven't tested this either. On 8/22/05, Andrew Goktepe <[EMAIL PROTECTED]> wrote: > > Try setting eol="crlf":

Re: How to insert new line character in a string

2005-08-22 Thread Andrew Goktepe
Try setting eol="crlf": http://ant.apache.org/manual/CoreTasks/concat.html -Andrew On 8/22/05, Karunakar Chatla <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have following script where I am writing some text to file. > I wanted each of the lines in seperate line in the file. It is writing to

RE: Sync inside scp/ssh ?

2005-08-22 Thread Rebhan, Gilbert
Hi, -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Monday, August 22, 2005 4:39 PM To: Ant Users List Subject: Re: Sync inside scp/ssh ? /* Only local. I even initially called it , for local sync to contrast with Unix' rsync command, but Stefan renamed it

Re: Sync inside scp/ssh ?

2005-08-22 Thread Dominique Devienne
Only local. I even initially called it , for local sync to contrast with Unix' rsync command, but Stefan renamed it when he integrated it to Ant. Plus most of the job done by sync is to actually figure out what changed between the two trees, which you already get thru your custom parsing of the C

Re: Compile jsp in Ant

2005-08-22 Thread Leon Pu
Hi all, not only jasper-compiler.jar jasper-runtime.jar and servlet.jar, the ant.jar also need to be put into CLASSPATH. Without these four jars, the jsp compile will failed with java.lang.NoClassDefFoundError. It's weird to me, why do I have to put these jars into CLASSPATH? Best regards, Leon

Compile jsp in Ant

2005-08-22 Thread Leon Pu
Hi all, I found I have to put jasper-compiler.jar jasper-runtime.jar and servlet.jar into CLASSPATH, otherwise the jsp compile will be failed. I tried to put preceding three jars into Ant's lib directory, but it doesn't work. My first question is what's the differences of system's CLASSPATH and

Re: ant echo problem in cocoon tutorial

2005-08-22 Thread Steve Loughran
Ron Wheeler wrote: 1.6.5 did not recognize . sorry, my mistake. I meant to say "ant1.7". just stick with CData; I use it to do things like chuck out maven files from a build: - To unsubscribe, e-mail: [EMAIL PROTECTED

AW: ant echo problem in cocoon tutorial

2005-08-22 Thread Jan.Materne
As I said: introduced with 1.7. So use a HEAD-version or a backport as AntLib. Jan >-Ursprüngliche Nachricht- >Von: Ron Wheeler [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 22. August 2005 13:38 >An: Ant Users List >Betreff: Re: ant echo problem in cocoon tutorial > >1.6.5 did not recogn

Re: get Property with java

2005-08-22 Thread Petar Tahchiev
On 22/08/05, Taner Diler <[EMAIL PROTECTED]> wrote: > > Hi, > > I try to get property that in defined in build.xml by using java. How > can I do that? > > build.xml > > <...> > > > > and java code > > Project ant = new Project(); > ProjectHelper helper = new ProjectHelperImpl(); > ant.init(

Re: ant echo problem in cocoon tutorial

2005-08-22 Thread Ron Wheeler
1.6.5 did not recognize . Ron Steve Loughran wrote: Ron Wheeler wrote: I added the CDATA and it worked, of course. I still wonder how the person who wrote the tutorial made it work. Actually, ant may have changed its processing instruction handling at some point from "ignore" to "reject

get Property with java

2005-08-22 Thread Taner Diler
Hi, I try to get property that in defined in build.xml by using java. How can I do that? build.xml <...> and java code Project ant = new Project(); ProjectHelper helper = new ProjectHelperImpl(); ant.init(); helper.parse(ant, new File(xmlFile)); Strin

Re: ant echo problem in cocoon tutorial

2005-08-22 Thread Ron Wheeler
Itwasthe download instructions that need to be modified. If you just click on te link the browser strips the CDATA. IThe instructions should say to "Save target as..." Ron Steve Loughran wrote: Ron Wheeler wrote: I added the CDATA and it worked, of course. I still wonder how the person who

Re: ant echo problem in cocoon tutorial

2005-08-22 Thread Ron Wheeler
No it was the way that I picked up the file. I cutand pasted it from the browser and the browser had already stripped the CDATA. The procedure should likely be modified to describe how to get the file more accurately I am now stuck at the next step where the initial Ant build fails saying t

Sync inside scp/ssh ?

2005-08-22 Thread Rebhan, Gilbert
Hi, scenario = a ClearCase snapshotview resides on unix. workflow right now = - the snapshotview is updated -> *.updt logfile is written - a special java class parses the logfile for updated/new/unloaded files and writes 2 files -> files to be copied and files to be deleted - via foreach task

Re: ant echo problem in cocoon tutorial

2005-08-22 Thread Steve Loughran
Ron Wheeler wrote: I added the CDATA and it worked, of course. I still wonder how the person who wrote the tutorial made it work. Actually, ant may have changed its processing instruction handling at some point from "ignore" to "reject". Either way, it was broken from the start, as the PI w

Re: ant echo problem in cocoon tutorial

2005-08-22 Thread Steve Loughran
Ron Wheeler wrote: I added the CDATA and it worked, of course. I still wonder how the person who wrote the tutorial made it work. Presumably, they didnt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Match list of files agains fileset

2005-08-22 Thread BOUSQUET Jeremie
Well I thought of another way : I could load my dependencies file list in a using includesFile attribute. Then I could use this with to generate a comma-separated string that I could pass to the files attribute. Problem is: How can I set to work with a ? Thanks, Jeremie > -Original

Problem with Checklipse integration with Ant

2005-08-22 Thread Petar Tahchiev
Hi, I am experiencing some problems with integrating ANT and Checklipse in Eclipse 3.0. Can someone point me a good article about how this is to be done. Thnk you in advance. -- Regards, Petar!

Match list of files agains fileset

2005-08-22 Thread BOUSQUET Jeremie
I reply to this message because my problem is quite similar in reverse... I use the following to check that some dependencies listed in a file (relative paths) really exist in a real fileset. [ANT SCRIPT] [ANT SCRIPT] This, of course, does not do what was e