AW: Zip of Jars in Path?

2010-04-27 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Murray, Mike [mailto:m...@ptc.com] >Gesendet: Dienstag, 27. April 2010 19:33 >An: Ant Users List >Betreff: Zip of Jars in Path? > >Is there any way to directly reference a zip of jars in a classpath >definition? I've tried and , but neither are >s

Re: Adding Optional Jars in an Ant build

2010-04-27 Thread Peter Reilly
The scp ant task classes are in the same classloader as the rest of the body of ant (except for the launcher classes). See the code for junit and script for the hideous workarounds that are needed to get them to allow to load their required third party classes. A similar effort will need to be d

Re: AW: Ant project name description passed to Java file during compilation or Jar process?

2010-04-27 Thread Misha Koshelev
Thank you. I have used the following solution: ant.project.name=${ant.project.name} ant.project.description=${description} and protected final static String propsFile="config/.properties"; protected final static String projName="ant.project.name"; protected final static St

Zip of Jars in Path?

2010-04-27 Thread Murray, Mike
Is there any way to directly reference a zip of jars in a classpath definition? I've tried and , but neither are supported by . I know I can extract the zip to a folder, and include the jars using a . I'm just wondering if there is a way to avoid the extraction. Thanks, Mike

Adding Optional Jars in an Ant build

2010-04-27 Thread David Weintraub
Now that I have an Ant installation that has the ant-jsch.jar file in it, I'm able to run the task. However, in order to do that, I have to run it as "ant -lib antlib" instead of just "ant". With the AntContrib tasks, I can define a directory "antlib" in my project, and then add it in with the t

Re: SCP Task

2010-04-27 Thread David Weintraub
Ah! There's no ant-jsch.jar in my $ANT_HOME/lib on my Mac (although it is suppose to be at 1.7.1!). I do have it on my Linux box (Ant 1.7.1), but we used Ant 1.7 on Windows, and there's no ant-jsch.jar there either. I'll download Ant 1.8 and make sure that works. We'll just tell everyone they have

Re: SCP Task

2010-04-27 Thread Borut Hadžialić
Hi, you need jsch.jar from this page http://www.jcraft.com/jsch/ . At least that is what i use and it works. On Tue, Apr 27, 2010 at 5:52 PM, David Weintraub wrote: > Does the SCP task work? We use Ant 1.7 and recently tried the > task. We included the jsch.jar, but we got the following error: >

Re: SCP Task

2010-04-27 Thread Greg Roodt
Is that Ant 1.7.1? I've used it without problems. The task can be found in ant-jsch.jar. On Tue, Apr 27, 2010 at 4:52 PM, David Weintraub wrote: > Does the SCP task work? We use Ant 1.7 and recently tried the > task. We included the jsch.jar, but we got the following error: > > BUILD FAILED

SCP Task

2010-04-27 Thread David Weintraub
Does the SCP task work? We use Ant 1.7 and recently tried the task. We included the jsch.jar, but we got the following error: BUILD FAILED /Users/david/test/build.xml:5: Problem: failed to create task or type scp Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found.

Re: AW: Ant project name description passed to Java file during compilation or Jar process?

2010-04-27 Thread Michael Shea
I believe that the question is about accessing this property from a java program (compiled to a jar) that was built using ant, rather than from an ant build script - however your link, Jan (http://ant.apache.org/manual/properties.html#built-in-props ), is still relevant. Some work needs to be

Re: AW: Ant project name description passed to Java file during compilation or Jar process?

2010-04-27 Thread Scot P. Floess
Curious - what will you be doing with that information? Meaning how do you want it stored, and how will your app expect to get to it? On Tue, 27 Apr 2010, jan.mate...@rzf.fin-nrw.de wrote: http://ant.apache.org/manual/properties.html#built-in-props ant.project.namethe name of the projec