Re: Fwd: SCP...done...BUILD SUCCESSFUL....no local file created

2005-08-09 Thread Nicolas Vervelle
Hello, Brian Kuhn wrote: Has anyone gotten the SCP task to work correctly? I need to copy a single file from a server to my local machine using SSH. Does anyone have a working example? I am using SCP to update a website: I scp a .tgz file of the modifications and then extract it with

AW: exclude directories from jar file

2005-08-09 Thread Jan.Materne
USE the following modifications. it should work excludes=rex/rexml/*.classes nop a) *.classes catchs only files directly under rexml -- use rex/rexml/**/*.classes b) I think you mean **/*.class ... Jan - To unsubscribe,

AW: More exclude problems

2005-08-09 Thread Jan.Materne
Just another point - your two tar-commands are nearly the same. You could extract a macrodef: macrodef name=createtar attribute name=tarfile/ attribute name=distjar/ attribute name=distrib default=${distrib}/ sequential tar tarfile=@{tarfile} tarfileset

AW: PesterCat Ant Toolkit : New addition to external tools and tasks

2005-08-09 Thread Jan.Materne
added Jan -Ursprüngliche Nachricht- Von: Dan Prince [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. August 2005 06:36 An: user@ant.apache.org Betreff: PesterCat Ant Toolkit : New addition to external tools and tasks PesterCat Ant Toolkit. Description: PesterCat is a web testing tool

AW: [Ant 1.6.5] -classpath problems

2005-08-09 Thread Jan.Materne
you have to include the jars inside your path, not the directory. target name=main java classname=Test classpathfileset dir=. includes=*.jar//classpath /java /target Jan -Ursprüngliche Nachricht- Von: nathan le [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. August 2005

Re: presentation on ant1.7 features

2005-08-09 Thread Pankaj Kumar
Hi Steve, Great presentation! I had a couple of thoughts after going through the presentation. I wrote about those at my blog: http://www.pankaj-k.net/archives/2005/08/ant17_for_build.html Thanks, Pankaj Kumar. On 8/4/05, Steve Loughran [EMAIL PROTECTED] wrote: List subscribers may be

howto include files only - without dirtree

2005-08-09 Thread Sándor Tamás
Hi Ant-users! I've checked the Directory-based Tasks page and googled the web to find any solution to my problem, without success. E.g. I have a dir tree like this: /lib |- jarlibname1 | |-file1.jar | |-file2.jar |- jarlibname2 |-file3.jar |-file4.jar What I

Re: howto include files only - without dirtree

2005-08-09 Thread Nicolas Vervelle
Hi, you can check the flatten attribute of copy, or also the flatten mapper. Nicolas Sándor Tamás wrote: Hi Ant-users! I've checked the Directory-based Tasks page and googled the web to find any solution to my problem, without success. E.g. I have a dir tree like this: /lib |-

AW: howto include files only - without dirtree

2005-08-09 Thread Jan.Materne
http://ant.apache.org/manual/CoreTypes/mapper.html#flatten-mapper Jan -Ursprüngliche Nachricht- Von: Sándor Tamás [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. August 2005 10:41 An: user@ant.apache.org Betreff: howto include files only - without dirtree Hi Ant-users! I've checked

Re: AW: howto include files only - without dirtree

2005-08-09 Thread Sándor Tamás
Thank Jan and thanks Nicolas! Flattenmapper is great! One more question: can I use it in a war/war element somehow to have lib/lib the flattenmapper/ or shall I copy all my jars with flatten=true and then specify lib dir=flattenedJarDir/? flattenmapper/ and mapper/ are not allowed in war/,

Copying files to unknown folder name (jboss war deployed folder)

2005-08-09 Thread Nir Geier
Hi all, I'm trying to achieve this simple task: I want to copy files to my jboss deploy dir. The deploy dir is generated automatically every server start/deploy and get the following name pattern: XMyAppName.war now i want to copy files from c:\aaa into the above

RE: Cannot get FTP to get/list files on RHEL3 machine

2005-08-09 Thread Calum Byrom
Thanks for the response, Rob (sorry, been on holiday for the last week). Have uninstalled an existing version and this hasn't fixed the problem. The install may be causing the problem, though, since I didn't use rpm to install ANT - I just copied over an existing install that worked on

AW: Copying files to unknown folder name (jboss war deployed folder)

2005-08-09 Thread Jan.Materne
Just thoughts: - create a fileset from the jboss directory including your deploy-dir -- use selectors to get the newest one - use pathconvert to get the target location - use that property as todir for copy Jan -Ursprüngliche Nachricht- Von: Nir Geier [mailto:[EMAIL PROTECTED]

RE: Copying files to unknown folder name (jboss war deployed folder)

2005-08-09 Thread Nir Geier
can u show a code sample please? i have no idea on how to do it. ty very much for your help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 12:13 PM To: user@ant.apache.org Subject: AW: Copying files to unknown folder name (jboss war

Re: howto include files only - without dirtree

2005-08-09 Thread Jeffrey E Care
flattenmapper -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Sándor Tamás [EMAIL PROTECTED] 08/09/2005 04:40 AM Please respond to Ant Users List To user@ant.apache.org cc Subject howto include files only - without dirtree

Re: AW: [Ant 1.6.5] -classpath problems

2005-08-09 Thread nathan le
Sorry bad example What I am trying to include a jar that holds a java logging handler I am trying to use java logging on the ant build process I created a listener that uses java logging and have configured the logging system to use a custom handler that is included in a jar I seem to be

RE: Cannot get FTP to get/list files on RHEL3 machine

2005-08-09 Thread Calum Byrom
NB, out of curiosity, I've now also tried using the scp function in place of the ftp one; again, this doesn't work, although this time, the build just grinds to a halt - nothing is copied and the command doesn't come to an end. Seems to me there's something fundamentally wrong with the box...

zip- task on osx breaks permissions

2005-08-09 Thread lists
Hello all, I need to zip a the contents of a folder on Mac OSX (10.[3|4]) Unfortunatly permissions are broken (executables are no longer executable) after I unpack my zipped components and empty directories are gone. This breaks my deliverables. If I call zip on the command line I have no

Re: zip- task on osx breaks permissions

2005-08-09 Thread EJ Ciramella
At the top of the zip task definition, it says this: Note that file permissions will not be stored in the resulting zipfile. If you need to store permissions, try tar or exec to use zip. On Aug 9, 2005, at 9:40 AM, [EMAIL PROTECTED] wrote: Hello all, I need to zip a the contents of a

AW: Re: zip- task on osx breaks permissions

2005-08-09 Thread lists
Thx. jacques At the top of the zip task definition, it says this: Note that file permissions will not be stored in the resulting zipfile. If you need to store permissions, try tar or exec to use zip. On Aug 9, 2005, at 9:40 AM, [EMAIL PROTECTED] wrote: Hello all, I need to zip a the

Re: zip- task on osx breaks permissions

2005-08-09 Thread Jeffrey E Care
If you need to preserve existing permissions then it's probably easiest to use exec to run the native zip/tar on your platform. If you only need to set permissions on certain files then you can use a nested zipfileset to manually set permissions on those files in the archive. Given that Java

How to test whether a particular environment variable is set or not

2005-08-09 Thread Pankaj Kumar
Hi Folks, I want to set a property to the value of an environment variable if that variable is set, otherwise to a different string. I am able to do this with the following: property environment=env / property name=test.home.0 value=${env.TEST_HOME}/ condition

HELP :javac classpath

2005-08-09 Thread Arti Singh
Hi , I just want to clarify a few things.I am trying to compile a few java files in my ant build script using a classpath variable to point to required libraries.I tried the approach below.I tried to define my classpath in properties and then used them in javac, but that doesnt seep

Copy Question - Between UNIX and Mapped windows drive.

2005-08-09 Thread Srikrishna_Parthasarathy
I would like to zip the contents of a folder in unix and copy them to a mapped drive under windows. What is the right syntax of doing this ? Eager to see the suggestions or pseudo code to accomplish this. Thanks srikrishna

RE: HELP :javac classpath

2005-08-09 Thread Bill Rich
You need something like the following to define the classpath: !-- A class path for the Java compiler. -- path id=classpath.compile fileset dir=./${build.pkg} include name=**/*.class/ /fileset fileset dir=./${src.lib} include name=**/*.jar/ include name=**/*.zip/ /fileset

Re: HELP :javac classpath

2005-08-09 Thread Peter Reilly
please do not include .class files in the class path. Peter Bill Rich wrote: You need something like the following to define the classpath: !-- A class path for the Java compiler. -- path id=classpath.compile fileset dir=./${build.pkg} include name=**/*.class/ /fileset fileset

Re: How to test whether a particular environment variable is set or not

2005-08-09 Thread Antoine Levy-Lambert
hello Kumar, this is another alternative for the same : property environment=env/ property name=env.TEST_HOME value=TO_BE_REPLACED/ might work. Cheers, Antoine - Original Message - From: Pankaj Kumar [EMAIL PROTECTED] To: user@ant.apache.org Sent: Tuesday, August 09, 2005 4:41 PM

Re: AW: howto include files only - without dirtree

2005-08-09 Thread Antoine Levy-Lambert
Hello Sándor, it looks like you need to do the copy. Antoine - Original Message - From: Sándor Tamás [EMAIL PROTECTED] To: Ant Users List user@ant.apache.org Sent: Tuesday, August 09, 2005 11:17 AM Subject: Re: AW: howto include files only - without dirtree Thank Jan and thanks

Re: How to test whether a particular environment variable is set or not

2005-08-09 Thread Ninju Bohra
Using the if task (from the ant-contrib project) you can do it like this: if isset property=env.TEST_HOME/ then property name=test.home value=${env.TEST_HOME}/ /then else property name=test.home value=TO_BE_REPLACED/ /else /if Though I am not

RE: How to test whether a particular environment variable is set or not

2005-08-09 Thread Blagassie
This will trim down the previous post property name=test.home value=TO_BE_REPLACED/ if isset property=env.TEST_HOME/ then property name=test.home value=${env.TEST_HOME}/ /then /if -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09,

Re: How to test whether a particular environment variable is set or not

2005-08-09 Thread Alexey N. Solofnenko
The second property will not work, because the property is already set earlier. You may want to execute them in reverse order. - Alexey. [EMAIL PROTECTED] wrote: This will trim down the previous post property name=test.home value=TO_BE_REPLACED/ if isset property=env.TEST_HOME/

RE: How to test whether a particular environment variable is set or not

2005-08-09 Thread Blagassie
Sorry, was thinking of NAnt -Original Message- From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 1:09 PM To: Ant Users List Subject: Re: How to test whether a particular environment variable is set or not The second property will not work, because

Re: How to test whether a particular environment variable is set or not

2005-08-09 Thread Pankaj Kumar
On 8/9/05, Antoine Levy-Lambert [EMAIL PROTECTED] wrote: this is another alternative for the same : property environment=env/ property name=env.TEST_HOME value=TO_BE_REPLACED/ Hi Antoine, This works. It is also more compact and elegant (compared to my version). Thanks. /Pankaj. -

RE: Copy Question - Between UNIX and Mapped windows drive.

2005-08-09 Thread Anderson, Rob (Global Trade)
There are many options to accomplish this. Check out the manual pages for the copy, scp, ftp and zip tasks. -Rob Anderson -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:11 AM To: user@ant.apache.org Subject: Copy Question -

RE: Cannot get FTP to get/list files on RHEL3 machine

2005-08-09 Thread Anderson, Rob (Global Trade)
Copying the ant installation from another machine should be fine. Ant is platform independant and self contained within $ANT_HOME, so this should work fine. Check to make sure you have the dependant jars in $ANT_HOME/lib. See the dependency section of the manual to find out what dependencies

RE: HELP :javac classpath: Thankyou

2005-08-09 Thread Arti Singh
Thank you .It works __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Recursive ant builds

2005-08-09 Thread Geoffrey Mitchell
I have developed a build system architecture which uses one common, generic build.xml file to build each module in the project. This build file can then recursively call itself with a different basedir to build modules upon which the current module depends (dependencies are configured in a

Path does not support dir-structure

2005-08-09 Thread duvelbier-tsmets
Dear, I have the following part of a build file : path id=build.path pathelement location=${lib.dir}/jfreechart-1.0.0-rc1.jar/ pathelement location=${lib.dir}/gnujaxp.jar/ pathelement location=${lib.dir}/servlet.jar/ pathelement

Re: Path does not support dir-structure

2005-08-09 Thread Conor MacNeill
I can't see anything amiss in your code, although the -- in your description attribute did catch my eye :-). It's better if you can show the actual error printed by Ant in most cases and the corresponding line in your build. Ant usually includes line numbers and these can help know where to look.

Sticky Tag

2005-08-09 Thread Kai Hendry
I would like to get the CVS sticky tag of the source I am compiling. Anyone have a recipe to do that? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Path does not support dir-structure

2005-08-09 Thread Jan.Materne
The only place where you have a dir is in javac... src dir=${..}/ ... The manual to javac sais : javac's srcdir, ... attributes are path-like structures and can also be set via nested src... So src IS a path. And paths doesnt support any (besides id/refid) attributes. Use src