Condition for two Parallel task

2006-05-10 Thread pritesh.saharey
Hi All, I am trying to use condition but not finding a good way to resolve my problem, problem goes like this: I had one build-properties.xml file which contains //-- build-properties.xml

Re: [SPAM-H] - Condition for two Parallel task - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-05-10 Thread Devaraj, Geethakrishnan
Hi pritesh, try this condition property=build.develop.value equals arg1=develop arg2=${type.build.name} / /condition condition property=build.ready.value equals arg1=develop arg2=${type.build.name} / /condition target name=release depends=develop,ready / target name=develop

Re: Memory Leak on Solaris?

2006-05-10 Thread Scot P. Floess
Ritesh: In just examining your code fragment, it wouldn't appear you are doing anything out of the ordinary (to cause a memory leak). At a high level, what does this app do specifically? Perhaps the failure is in another part of of your app (causing the out-of-memory issue)? Is it

Re: [SPAM-H] - Condition for two Parallel task - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-05-10 Thread Devaraj, Geethakrishnan
oops sorry..please change the second condition arg1 to 'ready' condition property=build.ready.value equals arg1=ready arg2=${type.build.name} / /condition Geethakrishnan - Original Message - From: Devaraj, Geethakrishnan [EMAIL PROTECTED] To: Ant Users List user@ant.apache.org Cc:

Re: Memory Leak on Solaris?

2006-05-10 Thread James Abley
Hi Ritesh, Have you profiled your application? Cheers, James Scot P. Floess wrote: Ritesh: In just examining your code fragment, it wouldn't appear you are doing anything out of the ordinary (to cause a memory leak). At a high level, what does this app do specifically? Perhaps the

Automated Cvs Merge

2006-05-10 Thread Row M, Vishal
Hi All Is there any task that merges multiple vendor branches in CVS into the main branch. Please let me know. Thanks Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Neither dirset nor fileset with type selector seem to select directories

2006-05-10 Thread Holger Rauch
Hi! I've created the following simple directory structure for testing purposes. I would like to see only dirs below test (blah and blubber) in my dirset/fileset. The Ant version I'm using is 1.6.5 in conjunction with JDK 1.5.0_06 on Linux: test(dir) |-- blah (dir) |-- blubber (dir)

Failed to execute task move in Windows

2006-05-10 Thread Leon Pu
Hi all, my build file with task move failed in Windows, but the same build file works in Linux. Could anybody tell me why? [build-script] project default=test target name=test move file=bi.jar tofile=Bi.jar / /target /project [build-script] [error-message] Apache Ant version 1.6.5

xslt extension question

2006-05-10 Thread Mary Milne
hi i'm trying to run the xslt task using saxon.jar - that bits fine ie xslt classpath=${lib}/saxon.jar.. the problem is the xslt script has an extension to make the output SGML ie xsl:output method=my.sgml.jar. so the question is: how do i pass the location of this

Re: xslt extension question

2006-05-10 Thread Robert Koberg
Mary Milne wrote: hi i'm trying to run the xslt task using saxon.jar - that bits fine ie xslt classpath=${lib}/saxon.jar.. the problem is the xslt script has an extension to make the output SGML ie xsl:output method=my.sgml.jar. This is not valid. Why not just

Re: Failed to execute task move in Windows

2006-05-10 Thread Leon Pu
--- Rhino [EMAIL PROTECTED] wrote: - Original Message - From: Leon Pu [EMAIL PROTECTED] To: Ant Usenet user@ant.apache.org Sent: Wednesday, May 10, 2006 10:13 AM Subject: Failed to execute task move in Windows Hi all, my build file with task move failed in Windows, but

Re: xslt extension question

2006-05-10 Thread Mary Milne
hi robert sadly i need sgml not html. running the script with saxon on a command line is fine ie java -cp saxon.jar:.:SGMLEmitter.jar icl.org.saxon.StyleSheet xslt input out (sorry haven't got the line at hand but its close enough) but now i want to invoke it from ant's xslt task and the doc

Re: Failed to execute task move in Windows

2006-05-10 Thread Scot P. Floess
Question, why are you including single quotes withing the double quotes? property name=old.name value='c:\Documents and Settings\Administrator\Desktop\bi.jar' description=The old name of the file./ property name=new.name value='c:\Documents and Settings\Administrator\Desktop\Bi.jar'

Re: Failed to execute task move in Windows

2006-05-10 Thread Jeffrey E Care
Windows file systems are case-insensitive while being case-preserving; if all you want to do is to change the case you'll need to use an intermediate file (i.e. move to temp_Bi.jar, then move to Bi.jar).

Re: Failed to execute task move in Windows

2006-05-10 Thread Leon Pu
Hi Scot, the result of Rhino's build script without single quotes is same with mine. Anyway, the old.name file will disappear after execution. Best regards, Leon --- Scot P. Floess [EMAIL PROTECTED] wrote: Question, why are you including single quotes withing the double quotes? property

Re: Failed to execute task move in Windows

2006-05-10 Thread Leon Pu
Hi Jeffrey, you are right, I shiped the build script from Linux to Windows without awaring the case-insensitive in Windows. Thanks a lot. Best regards, Leon --- Jeffrey E Care [EMAIL PROTECTED] wrote: Windows file systems are case-insensitive while being case-preserving; if all you want

Re: xslt extension question

2006-05-10 Thread Robert Koberg
Mary Milne wrote: hi robert sadly i need sgml not html. running the script with saxon on a command line is fine ie java -cp saxon.jar:.:SGMLEmitter.jar icl.org.saxon.StyleSheet xslt input out don't you need something like xsl:output/@method=myprefix:sgml ? I didn't know you could put

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
Thank you for the sanity check, Scot! You're right, the single quotes within the double quotes is probably not necessary after all. I found that I needed to add the single quotes for a task that tried to execute a VBScript so that Windows handed it to the VBScript engine correctly but this

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
Sorry, Leon, I'm not sure what you're saying. Is the script working now, either with or without the single quotes? Did you check to make sure that the file name and path name were exactly correct? Were they both correct? I'm sorry to have mentioned the single quotes; they are probably only

Re: xslt extension question

2006-05-10 Thread Dominique Devienne
don't you need something like xsl:output/@method=myprefix:sgml ? I didn't know you could put the jar file there. If you can, then would you need the path set correctly? Do you have it in the same directory as the XSL? Yeah, that's a funny syntaxt, isn't it? But note that @method read

Re: Neither dirset nor fileset with type selector seem to select directories

2006-05-10 Thread Scot P. Floess
Holger: Very odd indeed...I am looking at this and get back to you...but sure enough...dirset yields the file instead of the directories... Holger Rauch wrote: Hi! I've created the following simple directory structure for testing purposes. I would like to see only dirs below test (blah and

Re: Failed to execute task move in Windows

2006-05-10 Thread Leon Pu
Hi Rhino, the reason of my problem was the file and path name in Windows is case-insensitive, that's why Ant failed to move bi.jar to Bi.jar. It works with following build file. project default=test target name=test move file=bi.jar tofile=_bi.jar / move file=_bi.jar tofile=Bi.jar /

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
Jeffrey, Thank you for the insight: you are absolutely right! I'm still a bit mystified though. When my target and property were set like this: property name="path" value="C:\Documents and Settings\Administrator\Desktop" description="Path to jar which is to be renamed"/ target

Re: Neither dirset nor fileset with type selector seem to select directories

2006-05-10 Thread Scot P. Floess
Try this: ?xml version=1.0 encoding=iso-8859-1? project name=test basedir=. default=pretest target name=pretest path id = all-dir dirset dir=test/ /path property name=myprop refid=all-dir / echo message=myprop = ${myprop} / /target /project Not sure

Re: Neither dirset nor fileset with type selector seem to select directories

2006-05-10 Thread Matt Benson
Holger: the property refid= / notation you are using is not -really- recommended. IIRC is is noted as experimental in the code; while it is not going anywhere, in this case you can see it yields less-than-optimal results. It calls toString() on the referenced object. DirSet inherits its

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
- Original Message - From: Leon Pu [EMAIL PROTECTED] To: Ant Users List user@ant.apache.org Sent: Wednesday, May 10, 2006 11:43 AM Subject: Re: Failed to execute task move in Windows Hi Rhino, the reason of my problem was the file and path name in Windows is case-insensitive, that's

Re: Failed to execute task move in Windows

2006-05-10 Thread Scot P. Floess
I've not look at the code behind the move target...but I would guess it's java.io.File? If so...not sure why it would do that either confused ;) Rhino wrote: Jeffrey, Thank you for the insight: you are absolutely right! I'm still a bit mystified though. When my target and property were

Re: Failed to execute task move in Windows

2006-05-10 Thread Alexey N. Solofnenko
I think there was a bug with move that just changes character case on a case-insensitive file systems. move thought that the destination file already exists, so it deleted it, but instead the original file was deleted. I think it was fixed in 1.7. - Alexey. Leon Pu wrote: Hi all, my build

Re: Failed to execute task move in Windows

2006-05-10 Thread Anthony Goubard
Hi, Yes, I filled a bug about it 6 months ago. And then a few weeks later I fixed the bug. I've submitted the patch with the bug but the patch is not applied yet to the source code. http://issues.apache.org/bugzilla/show_bug.cgi?id=37701 Hope this help for the patch to be in 1.7. Anthony

Re: Failed to execute task move in Windows

2006-05-10 Thread Anthony Goubard
The problem is that the move task delete the destination before moving the file, so I let you guess what happens in this case. http://issues.apache.org/bugzilla/show_bug.cgi?id=37701 Anthony Scot P. Floess wrote: I've not look at the code behind the move target...but I would guess it's

Re: Failed to execute task move in Windows

2006-05-10 Thread Scot P. Floess
Ah...yeah...right :| Well the world would be a better place if everyone just ran Linux ;) Anthony Goubard wrote: The problem is that the move task delete the destination before moving the file, so I let you guess what happens in this case.

Re: Failed to execute task move in Windows

2006-05-10 Thread Scot P. Floess
When is 1.7 coming out? Anthony Goubard wrote: Hi, Yes, I filled a bug about it 6 months ago. And then a few weeks later I fixed the bug. I've submitted the patch with the bug but the patch is not applied yet to the source code. http://issues.apache.org/bugzilla/show_bug.cgi?id=37701 Hope

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
Thank you for shedding light on this, Anthony! Now I understand why the file disappeared. At the very least, there should be a big note in the article for the move task warning that the file will be deleted in these circumstances but I'd be a LOT happier if this behaviour were FIXED, not just

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
Do we know _for sure_ that this bug is fixed in 1.7? -- Rhino - Original Message - From: Scot P. Floess [EMAIL PROTECTED] To: Ant Users List user@ant.apache.org Sent: Wednesday, May 10, 2006 3:16 PM Subject: Re: Failed to execute task move in Windows When is 1.7 coming out?

Re: Failed to execute task move in Windows

2006-05-10 Thread Alexey N. Solofnenko
No, it is not. - Alexey. Rhino wrote: Do we know _for sure_ that this bug is fixed in 1.7? -- Rhino - Original Message - From: Scot P. Floess [EMAIL PROTECTED] To: Ant Users List user@ant.apache.org Sent: Wednesday, May 10, 2006 3:16 PM Subject: Re: Failed to execute task move in

Re: Failed to execute task move in Windows

2006-05-10 Thread Matt Benson
I'm about to commit it. File.equals() should be fine in this case. -Matt --- Alexey N. Solofnenko [EMAIL PROTECTED] wrote: No, it is not. - Alexey. Rhino wrote: Do we know _for sure_ that this bug is fixed in 1.7? -- Rhino - Original Message - From: Scot P. Floess

Re: Failed to execute task move in Windows

2006-05-10 Thread Matt Benson
duh... make that I'm about to commit it as soon as minotaur comes back up. -Matt --- Matt Benson [EMAIL PROTECTED] wrote: I'm about to commit it. File.equals() should be fine in this case. -Matt --- Alexey N. Solofnenko [EMAIL PROTECTED] wrote: No, it is not. - Alexey.

Re: Failed to execute task move in Windows

2006-05-10 Thread Alexey N. Solofnenko
Yes, I noticed that too... - Alexey. Matt Benson wrote: duh... make that I'm about to commit it as soon as minotaur comes back up. -Matt --- Matt Benson [EMAIL PROTECTED] wrote: I'm about to commit it. File.equals() should be fine in this case. -Matt --- Alexey N. Solofnenko [EMAIL

Re: Failed to execute task move in Windows

2006-05-10 Thread Rhino
How soon are we likely to be able to download 1.7? I'm not asking because of the renaming bug in the move task; I'm just curious about when we'll see 1.7. -- Rhino - Original Message - From: Matt Benson [EMAIL PROTECTED] To: Ant Users List user@ant.apache.org Sent: Wednesday, May

Re: Failed to execute task move in Windows

2006-05-10 Thread Alexey N. Solofnenko
You can do it now [after Apache servers are working again]: svn co http://svn.apache.org/repos/asf/ant/core/trunk ant But you will have to build it yourself. There is fetch.xml build file to load external dependencies (set JAVA_HOME and launch build -f fetch.xml) or load necessary

Define the logger in a properties file?

2006-05-10 Thread Steven Anderson
I'd like to use org.apache.tools.ant.XmlLogger for all my builds, so I'd like to have it in my build.properties file rather than having to call it as a command-line option. I couldn't find a property for doing this, though. Is it possible to define the logger in a properties file/

AW: Propogating properties up

2006-05-10 Thread Jan.Materne
Or just write the the return values (echoproperties) to a file and read them (property) in the calling file. Jan -Ursprüngliche Nachricht- Von: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 6. Mai 2006 15:13 An: Ant Users List Betreff: Re: Propogating properties up

Add html tags in a text file

2006-05-10 Thread Mikael Petterson \(KI/EAB\)
Hi, I have a plain text file. I need to insert html at the very beginning of the file and at the very end (/html). And then change the file extension. I shell script I could use something like: cat $1 | sed s/^/html/g | \ sed s/$/\/html/g $1.html Is there a similar function in ant?

AW: Define the logger in a properties file?

2006-05-10 Thread Jan.Materne
No. Loggers are attached while checking the command line arguments and _before_ Ant runs. Ant doesnt know anything about registered loggers - it just sends log messages to an interface. What you could do is setting the environment variable ANT_OPTS to your -logger ... setting. You could do

AW: Add html tags in a text file

2006-05-10 Thread Jan.Materne
concat with header and footer. move/copy with filterchainconcatfilter append= prepend=/ Jan -Ursprüngliche Nachricht- Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. Mai 2006 07:34 An: user@ant.apache.org Betreff: Add html tags in a text file Hi, I