Re: IllegalAccessException

2005-03-10 Thread Stefan Bodewig
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

AW: parse XML file problem

2005-03-10 Thread Jan . Materne
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

Re: Re: launching Ant from a perl script

2005-03-10 Thread cortell
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

Re: launching Ant from a perl script

2005-03-10 Thread Ronen Mashal
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

parse XML file problem

2005-03-10 Thread Anand Krishniyer
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

[SOLVED] Re: referencing path id in junit task

2005-03-10 Thread Michael Pelz Sherman
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

referencing path id in junit task

2005-03-10 Thread Michael Pelz Sherman
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

launching Ant from a perl script

2005-03-10 Thread John Cortell
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

RE: IllegalAccessException

2005-03-10 Thread Matt Benson
--- "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

RE: IllegalAccessException

2005-03-10 Thread Payette, Don J
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

RE: IllegalAccessException

2005-03-10 Thread Ninju Bohra
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 ---

RE: IllegalAccessException

2005-03-10 Thread Payette, Don J
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

RE: HELP! ant 1.6.2

2005-03-10 Thread Ray Madigan
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.

RE: Renaming files in a fileset??

2005-03-10 Thread Jacob Kjome
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

RE: Renaming files in a fileset??

2005-03-10 Thread Casey Daniell
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

Re: HELP! ant 1.6.2

2005-03-10 Thread Peter Reilly
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

RE: IllegalAccessException

2005-03-10 Thread Keith Hatton
, 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

RE: HELP! ant 1.6.2

2005-03-10 Thread Ray Madigan
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.

RE: IllegalAccessException

2005-03-10 Thread Payette, Don J
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:

Re: HELP! ant 1.6.2

2005-03-10 Thread Peter Reilly
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

RE: HELP! ant 1.6.2

2005-03-10 Thread Ray Madigan
--- 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 ---

AW: AW: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Jan . Materne
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

Re: AW: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Kristian Perkins
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

Re: why MyClass.class.getPackage returns null when ant classloader is used?

2005-03-10 Thread Maciej Zywno
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

AW: AW: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Jan . Materne
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

Re: why MyClass.class.getPackage returns null when ant classloader is used?

2005-03-10 Thread Stefan Bodewig
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 |

Re: AW: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Sébastien Annedouche
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

Re: AW: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Sébastien Annedouche
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

AW: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Jan . Materne
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

Re: why MyClass.class.getPackage returns null when ant classloader is used?

2005-03-10 Thread Maciej Zywno
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

Re: why MyClass.class.getPackage returns null when ant classloader is used?

2005-03-10 Thread Stefan Bodewig
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

Re: HELP! ant 1.6.2

2005-03-10 Thread Peter Reilly
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

Re: AW: cannot resolve symbol when overriding method.

2005-03-10 Thread Sébastien Annedouche
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

why MyClass.class.getPackage returns null when ant classloader is used?

2005-03-10 Thread Maciej Zywno
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

zip task and filesonly

2005-03-10 Thread Jilles van Gurp
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

AW: HELP! ant 1.6.2

2005-03-10 Thread Jan . Materne
> > > > > > > > Sorry, works for me an Ant 1.5.2, 1.6.2 and 1.7alpha Jan