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
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
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
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.
-
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]
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
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
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
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
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
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
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
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
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":
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
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
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
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
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
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
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
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(
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
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
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
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
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
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
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,
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
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!
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
32 matches
Mail list logo