Re: tools.jar missing?

2006-05-08 Thread Oliver Schalch
On Sunday 07 May 2006 02:44, aaron smith wrote: I just installed the latest ant build with the latest Java jdk/jre. when I try and run ant it says this: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_06\lib\tools.jar Only the JDK has the tools.jar and if

Setting Xalan to junitreport

2006-05-08 Thread Weston, Toby
Hi Folks, I'm having problems with junitreport... its picking up every other transformation engine than the default Xalan one (via the javax.xml.transform.TransformerFactory=xxx mechanism). So basically, I get; - Could not find a valid processor version implementation from xxx I've got

Re: manifest file wrapping with ant jar or manifest task

2006-05-08 Thread Steve Loughran
Narahari 'n' Savitha wrote: Oops. Mr. Stephen you are correct. Let me re write how the MANIFEST.MF inside the jar file looks like. Class-Path: commonscollections3.1.jar commons-lang.jar axis.jar anothe rverylong.jar reallycoolfile.jar Thanks for correcting me. In that case Ant is working

RE: Unix commads behaving different in Ant task

2006-05-08 Thread Meshram, Tushar
Hi, Can you help? How can I download an empty folder from FTP? Or is there any way to zip the folders on Ftp using ANT? Tushar Meshram SCM / Build Lionbridge 6 Spectra Building, Hiranandani Business park Powai, Mumbai - 400 076, India. +91-22-55567000

Properties in xml file

2006-05-08 Thread Manisha Mauni
Hello, Is there any way we can use xml configuration file in place of .properties file with ant. Thanks Manisha

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Scot P. Floess
I don't think FTP in and of itself will let you grab a folder. You can certainly grab individual files... I don't think this is ant specific but FTP related. FTP only supports a fixed number of commands - of which zip is not one of them... Meshram, Tushar wrote: Hi, Can you help? How

Re: Properties in xml file

2006-05-08 Thread Scot P. Floess
Have you looked at the xmlproperty task? Manisha Mauni wrote: Hello, Is there any way we can use xml configuration file in place of .properties file with ant. Thanks Manisha -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect

RE: Properties in xml file

2006-05-08 Thread Manisha Mauni
Thanks Scot!!! It solved my task :) -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 11:15 AM To: Ant Users List Subject: Re: Properties in xml file Have you looked at the xmlproperty task? Manisha Mauni wrote: Hello, Is there any way we

Re: Properties in xml file

2006-05-08 Thread Scot P. Floess
Anytime :) Glad to help ;) Manisha Mauni wrote: Thanks Scot!!! It solved my task :) -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 11:15 AM To: Ant Users List Subject: Re: Properties in xml file Have you looked at the xmlproperty task?

Ant nested calls.

2006-05-08 Thread Peter Scmsvn
Hi, I am using Ant (runant.pl) with a custom wrapping Perl script (that does some validation, fetch some build options etc, that are then passed to runAnt.pl). The problem is that I need to make a call to that same script inside my Ant (I have redirectors to subprojects), using the exec task.

RE: Unix commads behaving different in Ant task

2006-05-08 Thread Anderson, Rob (Global Trade)
Your usage of the find command is incorrect. To find all the jars in ./myDir you would run the following: Find ./myDir -name *.jar You should change the arg line to: arg line=$basedir}/myDir -name *.jar/ -Rob A -Original Message- From: Venkat Kotu [mailto:[EMAIL PROTECTED] Sent:

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Scot P. Floess
That won't work as a shell expands the asterisk Anderson, Rob (Global Trade) wrote: Your usage of the find command is incorrect. To find all the jars in ./myDir you would run the following: Find ./myDir -name *.jar You should change the arg line to: arg line=$basedir}/myDir -name

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Dominique Devienne
On 5/8/06, Scot P. Floess [EMAIL PROTECTED] wrote: That won't work as a shell expands the asterisk exec is not a shell, so there's no need to escape the asterisk, unless one uses vmlauncher=false or use a shell in 'executable'. --DD Anderson, Rob (Global Trade) wrote: Your usage of the

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Alexey N. Solofnenko
There are many ways to do that. I like this: ?xml version=1.0 encoding=UTF-8? project name=Test default=all basedir=. scriptdef name=file-list language=jython element name=fileset type=fileset/ attribute name=name/ ![CDATA[ #file-list property=str(attributes.get(name))

RE: Unix commads behaving different in Ant task

2006-05-08 Thread Anderson, Rob (Global Trade)
Not in this case. The shell does not need to expand the asterisk for the find command to work. In fact, the shell can often times cause an error when running the find command because it expands the asterisk when it should not. For example: $ touch something.txt antherthing.txt yetanother.txt $

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Dominique Devienne
$ rm *.txt # be carefull to run this in some temp dir $ mkdir newdir $ touch newdir/something.txt newdir/anotherthing.txt newdir/yetanother.txt $ find ./ -name *.txt ./newdir/something.txt ./newdir/anotherthing.txt ./newdir/yetanother.txt It works as expected because the shell does not expand

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Scot P. Floess
I stand corrected ;) Now can anyone help me get both feet out of my mouth :) Anderson, Rob (Global Trade) wrote: Not in this case. The shell does not need to expand the asterisk for the find command to work. In fact, the shell can often times cause an error when running the find command

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Scot P. Floess
No, bash is the same way... You have to really do a find dir \*.jar I was sorta wrong in what I was saying...find in this case is doing the expansion (in the case where one escapes the asterisk)... Dominique Devienne wrote: $ rm *.txt # be carefull to run this in some temp dir $ mkdir

Re: Unix commads behaving different in Ant task

2006-05-08 Thread Alexey N. Solofnenko
At least on Cygwin, Bash does not expand asterisk, if there are no matching files. I thought this is a new standard behaviour. - Alexey. Scot P. Floess wrote: No, bash is the same way... You have to really do a find dir \*.jar I was sorta wrong in what I was saying...find in this case is

Re: Property Task's timestamp

2006-05-08 Thread Vinny
Thanks for the suggestion. Unfortunately that only produces this at the top of the file : # #Mon May 08 15:57:42 EDT 2006 ant 1.6.2 OSX jdk 1.5 Are timestamps part of the Properties spec or something? On 4/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Maybe with an empty comment

Re: Property Task's timestamp

2006-05-08 Thread Jeffrey E Care
Not part of the spec per-se, but IIRC yes: writing out a properties file using the APIs in java.util.Properties will put a timestamp in the serialized output. Jeffrey E. (Jeff) Care [EMAIL

Recursive Text Replacement in Files with no Extension

2006-05-08 Thread joe
Hi, I'm trying to use a replace task to recursively replace a string in a set of files, but it only seems to work if the file names have an extension (e.g. **/*.java). In my case, I am trying to recursively edit the set of files named Root that exist with the CVS subdirectories of project

Re: Recursive Text Replacement in Files with no Extension

2006-05-08 Thread Robert Clark
On Monday May 8, 2006 16:18, [EMAIL PROTECTED] wrote: I'm trying to use a replace task to recursively replace a string in a set of files, but it only seems to work if the file names have an extension (e.g. **/*.java). In my case, I am trying to recursively edit the set of files named Root

Re: Recursive Text Replacement in Files with no Extension

2006-05-08 Thread joe
That was the problem. Thanks, Joe On Mon, 8 May 2006 16:31:34 -0400 Robert Clark [EMAIL PROTECTED] wrote: On Monday May 8, 2006 16:18, [EMAIL PROTECTED] wrote: I'm trying to use a replace task to recursively replace a string in a set of files, but it only seems to work if the file names

Re: Setting Xalan to junitreport

2006-05-08 Thread Antoine Levy-Lambert
Hello Toby, I am thinking of changing junitreport to make it wrap around ant's style task. Regards, Antoine Weston, Toby wrote: Hi Folks, I'm having problems with junitreport... its picking up every other transformation engine than the default Xalan one (via the

Re: Memory Leak on Solaris?

2006-05-08 Thread Ritesh Trivedi
Hi, I am using j2sdk 1.4.2_10 and Ant 1.6.5. I am using Ant Java API and calling and executing Ant target from within my java program. I am seeing Out Of Memory errors on Solaris on Windows 2000 it works perfectly fine - no leaks. Any advise or pointers? Thanks Ritesh On 7/18/05, Ritesh

Re: trouble with inheritrefs in version 1.5.4

2006-05-08 Thread Stefan Bodewig
On Mon, 08 May 2006, Grant Lewis [EMAIL PROTECTED] wrote: In my child project I have the following path definition: path id=module.classpath path refid=global.classpath/ /path Is that inside or outside of a target? I vaguely recall that only one of the alternatives worked, so if it is