On Thu, 10 Mar 2005, Matt Benson <[EMAIL PROTECTED]> wrote:
> You might be able to get by using "${java.home}/bin/java" .
> Otherwise, you could use the script task to set a property to the
> value returned from org.apache.tools.ant.util.JavaEnvUtils
> .getJreExecutable("java").
If that worked, t
See
http://marc.theaimsgroup.com/?l=ant-user&m=110370861426080&w=2
http://marc.theaimsgroup.com/?l=ant-user&m=109474897503807&w=2
Jan
> -Ursprüngliche Nachricht-
> Von: Anand Krishniyer [mailto:[EMAIL PROTECTED]
> Gesendet am: Freitag, 11. März 2005 04:26
> An: user@ant.apache.org
> Betre
Hm. I thought the setlocal/endlocal might be the problem too, but found out
that's not the case. If you disable those lines in ant.bat, the behavior is the
same. This sort of makes sense if you consider that errorlevel is a "special"
variable--not truly an environment variable (notice it's not i
The problem is not that ant uses a .bat file, it is that the .bat file uses
'setlocal' and 'endlocal' statements which causes the system to restore old
system values, including errorlevel !! Even if you try to call the ant.bat
file from another .bat file, you'll get errorlevel set to its previous
v
Hi
I have an xml file similar to this
"c:/1"
"c:/2"
"e:/1"
"e:/2"
"e:/3"
Based on the file name and type I need to perform certain operations on
the file. How do I iterate through this xml and retrieve a set of
"locations" for a particular file i.e fo
Never mind, I just figured it out:
- mps
(Dangit! Yahoo! mail mangled my example! Oh well.)
Michael Pelz Sherman <[EMAIL PROTECTED]> wrote:
Hi,
I have a path defined using the following syntax:
...
I'd like to reference this path in a junit task. Unfortunately, ju
Hi,
I have a path defined using the following syntax:
...
I'd like to reference this path in a junit task. Unfortunately, junit doesn't
support the "classpathref" attribute.
Can anyone suggest a way of referencing "my.classpath" in my junit task?
Thanks,
- mps
Hi,
I'm having a tough time figuring out how to get the return code from an Ant
invocation when using perl. The problem is that the Ant front end is a .bat
file (I'm working on Windows). When you invoke a bat file from perl, and
that bat file in turn invokes something else (the Java Ant applica
--- "Payette, Don J" <[EMAIL PROTECTED]> wrote:
> Thanks, Ninju. That works.
>
> Would you happen to know if there is a property that
> is the name
> of the current jvm. That way I could just do
> jvm="${JAVA_NAME}.
You might be able to get by using
"${java.home}/bin/java" . Otherwise, you
Thanks, Ninju. That works.
Would you happen to know if there is a property that is the name
of the current jvm. That way I could just do jvm="${JAVA_NAME}.
Don Payette
>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY MATERIAL and is thus for use only by the intended
You may want to go back to the task and provide
a value for the jvm parameter so that you can start a
java process.
Something like
The advantage of the task over the task
is that might take care of the command line quirkiness
that you are running in it... or it won't
Just a suggestion
---
Thanks, Keith. I've rebuilt it using exec, and now I get this:
- % #1: (DONP)LIST/STDERR ON SYSTEM (Records: 1-6 of 6)
BUILD FAILED
/-/JAVATEST2/DIR/DONP/SPEC/build.xml:407: Class
org.apache.tools.ant.types.Comma
ndline$Argument doesn't support the nested "arg" ele
ment
- En
Thanks!
I have made the changes and it works like a champ!
Thanks for all of your help.
-Original Message-
From: Peter Reilly [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 8:06 AM
To: Ant Users List
Subject: Re: HELP! ant 1.6.2
Ray Madigan wrote:
>Yep - meakin.jar had it.
Quoting Casey Daniell <[EMAIL PROTECTED]>:
> Jacob,
> Nice. Your Mapper and Regex worked like a charm.
>
> Dominique/Matt thanks for pointing out the Mapper function, I had forgotten
> using that.
>
> Casey
Good to hear! And since I wrote it back before Ant-1.6.2 came out, there didn't
exist the
Jacob,
Nice. Your Mapper and Regex worked like a charm.
Dominique/Matt thanks for pointing out the Mapper function, I had forgotten
using that.
Casey
-Original Message-
From: Jacob Kjome []
Sent: Wednesday, March 09, 2005 4:48 PM
To: Ant Users List
Subject: Re: Renaming files in a files
Ray Madigan wrote:
Yep - meakin.jar had it. It is an old ant task to perform ForEach!
Found a reference to it:
http://sourceforge.net/mailarchive/forum.php?thread_id=1063039&forum_id=2912
The methods for doing for has changed from 1.5 to 1.6. You
probally should use the
, though it might not work if your OS is particularly obscure.
>> Remember, I'm new to ant.
Remember, There's a Fine Manual.
http://ant.apache.org/manual/index.html
-Original Message-
From: Payette, Don J [mailto:[EMAIL PROTECTED]
Sent: 10 March 2005 15:44
To: Ant Users List
Subject: R
Yep - meakin.jar had it. It is an old ant task to perform ForEach!
Now I have to find the source code to it to change it.
Thanks so much!
-Original Message-
From: Peter Reilly [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 10, 2005 6:58 AM
To: Ant Users List
Subject: Re: HELP! ant 1.6.
Yes, the class is public. Could it be that main is static?
This class is normally run from the command line, ala:
c:>javaw.exe -cp -DJAVA_HOME=C:\Java
org.spec.jappserver.load.LoadCorp 10");
Then the "main" argv parameter will have "10". The build.xml does the
following:
This does look ok.
The error you are getting is that the method RuntimeConfigurable(String,
String)
does node exist.
This did not exist in ant 1.5.* and does in ant 1.6.*, so
it looks like you are picking up an old copy of the RuntimeConfigurable
class.
Do a jar tf on
meakin.jar and xrmant.jar t
--- Ant diagnostics report ---
Apache Ant version 1.6.2 compiled on July 16 2004
---
Implementation Version (JDK1.2+ only)
---
core tasks : 1.6.2
optional tasks : 1.6.2
---
if the machine has to extract four 500MB zips at the same time, there is
no much room for Ant :)
Jan
> -Ursprüngliche Nachricht-
> Von: Kristian Perkins [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 10. März 2005 11:58
> An: Ant Users List
> Betreff: Re: AW: AW: cannot resolve symb
Jan,
ouch, compiled 1 file in 2 minutes and 36 seconds? that doesn't sound
like a great advertisement for ant!?!
HINT: when sending ant output, modify build time to make ant sound more
impressive, not less.
Kristian
Sébastien Annedouche wrote:
Thank you very much, I try it.
Sebastien
[EMAIL PRO
Thanks, now it's quite clear to me!
On Thu, 10 Mar 2005 11:16:13 +0100, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> On Thu, 10 Mar 2005, Maciej Zywno <[EMAIL PROTECTED]> wrote:
>
> > Thanks, but could you say more about it?
>
> This is from Ant't WHATSNEW file:
>
> ,
> | * ClassLoader crea
Ok, verified for 1.3.0-C, works with 1.4.2_05-b04.
Mmh javadoc for 1.3 [1] has that method ...
Signature hasnt changed, maybe the compiler is not so restrictive any more.
If I had changed
protected void readStreamHeader() {
to
protected void readStreamHeader() throws java.io.IOException,
j
On Thu, 10 Mar 2005, Maciej Zywno <[EMAIL PROTECTED]> wrote:
> Thanks, but could you say more about it?
This is from Ant't WHATSNEW file:
,
| * ClassLoader creation changes to use a factory method in Project. A new
| class AntClassLoader2 implemented for 1.2+ specific features including
|
Still failing...
[javac] Compiling 1 source file to C:\tmp\java
[javac] C:\tmp\java\Dummy.java:12: cannot resolve symbol
[javac] symbol: class IOException
[javac] protected void readStreamHeader() {
[javac] ^
[javac] 1 error
It works when I add the 2 i
Thank you very much, I try it.
Sebastien
[EMAIL PROTECTED] wrote:
1. took your source from
http://marc.theaimsgroup.com/?l=ant-user&m=111022093008210&w=2
2. removes all the slashes
3. saves as Dummy.java
4. wrote a buildfile
5. type "ant"
6. got
Buildfile: build.xml
[javac] Com
1. took your source from
http://marc.theaimsgroup.com/?l=ant-user&m=111022093008210&w=2
2. removes all the slashes
3. saves as Dummy.java
4. wrote a buildfile
5. type "ant"
6. got
Buildfile: build.xml
[javac] Compiling 1 source file to C:\TEMP\x
BUILD SUCCESSFUL
Tot
Thanks, but could you say more about it? I checked that ant
classloader does not override getPackage method, so the same
method(i.e. ClassLoader.getPackage) is used when using both ant and
sun classloaders. Does the problem have sth to do with classpaths?
Regards,
Maciek
On Thu, 10 Mar 2005 10:31
On Thu, 10 Mar 2005, Maciej Zywno <[EMAIL PROTECTED]> wrote:
> I've come across strange error in my app. The error is connected
> probably with ant classloader and appears while the following piece
> of code in my application is run from junit (triggered by ant
> triggered by maven):
>
> MyClass
What is the output of
ant -diagnostics
Peter
Ray Madigan wrote:
I have a project that has worked for almost forever. I just moved to ant
1.6.2 and I get a strange error.
If I run ant -diagnostic everything seems ok. I am missing junit stuff and
something else, but not likely to be the problem.
On
could you tell me how you've compiled the class, please.
I still can't compile without adding the imports.
It would be a great help for me!
Thanks,
Sebastien
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Hi all,
I've come across strange error in my app. The error is connected
probably with ant classloader and appears while the following piece of
code in my application is run from junit (triggered by ant triggered
by maven):
MyClass.class.getPackage
returns null, although the name of the class
I've been trying to zip a directory hierarchy under foo/bar with
filesonly="true" like this:
My intention is to get a zipfile with only the files and without any
directory prefixes (I have an application that doesn't handle
subdirectories in zip files too well). However, the filesonly
>
>
>
>
>
>
>
>
Sorry, works for me an Ant 1.5.2, 1.6.2 and 1.7alpha
Jan
36 matches
Mail list logo