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:
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}
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.
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.
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
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
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
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
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 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:
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
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
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
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
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
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
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
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
---
18 matches
Mail list logo