SCRIPTDEF using Java

2010-07-27 Thread Bickford, Mark
Hi, I've tried everything I can think of to get this to work, but so far everything has failed. I am writing a scriptdef using Java as the language, but I can't find how to access any of the predefined beans like attributes and elements. This much works:

Re: How to the currently used java version and java install path?

2010-07-27 Thread David Weintraub
You can check the value of the ant.java.version property. This lists the Java X.x version, but not the build number. You can also echo any Java System Properties where are listed here: http://bit.ly/9K40eZ. The one you want might be java.version. Java Version via Ant: ${ant.java.version}

Re: junit tests running slower in 1.8 than in 1.7

2010-07-27 Thread Laura Dean
I tried a few more things, with the following results: * On windows, Ant 1.8 runs the tests slower regardless of JDK version (among 1.5.0_11, 1.6.0_17, and 1.6.0_21). * If I copy ant-junit.jar to the project directory and add it to the classpath, nothing changes. The tests still run slower in 1.

in ANT 1.8

2010-07-27 Thread Rao Chaudhri
Hi, I am trying to run a shell "test" command on a remote server, to check for the existence of a file, using task which is available in ANT 1.8. Getting error: "CreateProcess: test -f /tmp/test.log error=2" Here's the code, not sure what's wrong here.

RE: AW: Remove duplicate JAR file names from an XML file

2010-07-27 Thread Rao Chaudhri
Did sort of like a similar thing: I am using string comparison to get rid of duplications, using a for loop to iterate through the list of JAR files and in each iteration I store the name of the JAR file in a temporary variable and than do a comparison of the current property with the temporary

Re: Is there a tool to show dependencies (and process sequence) of all targets in built.xml file hierarchy ?

2010-07-27 Thread Nathan Dunn
grand library works good, though it requires a lot of finagling. http://www.ggtools.net/grand/ Nathan On Jul 27, 2010, at 10:25 AM, Ben Stover wrote: > Assume I have a buil.xml with many, many targets (with "depends" attributes) > and some imports of sub-built.xml > > Is there a tool whi

Is there a tool to show dependencies (and process sequence) of all targets in built.xml file hierarchy ?

2010-07-27 Thread Ben Stover
Assume I have a buil.xml with many, many targets (with "depends" attributes) and some imports of sub-built.xml Is there a tool which shows all dependencies of all targets in such a built.xml file hierarchy in a human readable, comfortable way? Ben

RE: How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Moore, Kent
Another option is to add a routine like this to the init target - -Original Message- From: jan.mate...@rzf.fin-nrw.de [mailto:jan.mate...@rzf.f

Re: How to the currently used java version and java install path?

2010-07-27 Thread Leif Ershag
Some of these should give the correct value: http://www.ghidinelli.com/2008/04/01/built-in-ant-properties On Tue, Jul 27, 2010 at 5:02 PM, Ben Stover wrote: > How can I dsiplay at the console the currently used Java release and the > java installation path? > > If possible I want to display the

How to the currently used java version and java install path?

2010-07-27 Thread Ben Stover
How can I dsiplay at the console the currently used Java release and the java installation path? If possible I want to display the exact version including the update number e.g. 1.5.upd03 Ben - To unsubscribe, e-mail:

Re: Find out the installation path of ANT ?

2010-07-27 Thread Vimil Saju
windows picks up the location of ant from the path environment variable.so type echo %path% and look for the location of ant --- On Tue, 7/27/10, Ben Stover wrote: From: Ben Stover Subject: Find out the installation path of ANT ? To: "Ant Users" Date: Tuesday, July 27, 2010, 4:01 AM Assume I

AW: Unsupported class version error

2010-07-27 Thread Jan.Materne
So try running with Java 1.5 or higher ... Jan >-Ursprüngliche Nachricht- >Von: leif.lan...@gmail.com [mailto:leif.lan...@gmail.com] Im >Auftrag von Leif Ershag >Gesendet: Dienstag, 27. Juli 2010 14:28 >An: Ant Users List >Betreff: Re: Unsupported class version error > >What java-versio

AW: How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Jan.Materne
Check for Classes which are new in that specific JDK. Jan >-Ursprüngliche Nachricht- >Von: Ben Stover [mailto:bxsto...@yahoo.co.uk] >Gesendet: Dienstag, 27. Juli 2010 14:35 >An: Ant Users >Betreff: How to check if available java version is higher >equal than a required j

How to check if available java version is higher equal than a required java version?

2010-07-27 Thread Ben Stover
Assume I have a build.xml which contains some java tasks (javac, jar,...) I would like to make sure that the Java installation which is used to compile the source code is higher equal than e.g. JAVA SE 1.5.03. How can I specify this version requirement (and an appropriate error message) in a bu

Re: Unsupported class version error

2010-07-27 Thread Leif Ershag
What java-version are you running ant with? It looks like the jsch-lib is compiled with a higher versionnr than you support? //Leif Ershag On Tue, Jul 27, 2010 at 1:31 PM, Lis Maria wrote: > Hi, > > I am trying to copy a zip file to a remote machine using the ant scp task. > The jar file requir

Unsupported class version error

2010-07-27 Thread Lis Maria
Hi, I am trying to copy a zip file to a remote machine using the ant scp task. The jar file required for this task jsch-0.1.43 is also put inside the ANT lib folder. But i get the below exception while this target gets triggered BUILD FAILED java.lang.UnsupportedClassVersionError: Bad version num

Re: Find out the installation path of ANT ?

2010-07-27 Thread Leif Ershag
Echo ${ant.home} from inside a target. //Leif Ershag On Tue, Jul 27, 2010 at 1:01 PM, Ben Stover wrote: > Assume I can successfully use/call Ant by typing in (at the command prompt > in Windows): > > ant -version > > How can I find out where (in which directory) this ANT is installed (if. I > h

Find out the installation path of ANT ?

2010-07-27 Thread Ben Stover
Assume I can successfully use/call Ant by typing in (at the command prompt in Windows): ant -version How can I find out where (in which directory) this ANT is installed (if. I have e.g. multiple ANT installations) ? Is there e.g. a command ant -showinstallpath or similar? Ben ---