Re: How to add a file to existing zip archive into a existing folder

2007-06-13 Thread Prashant Reddy
Use and tasks. More here : http://ant.apache.org/manual/CoreTypes/zipfileset.html HTH -Prashant On Thu, 2007-06-14 at 11:26 +0530, Ravi Roy wrote: > Hi All, > > > > I have a zip archive, which I want to update with adding a new file

using '/' as the separator for the elements

2007-06-13 Thread Pritesh Saharey
Hi All, We had our product, whose one of command line tool is "mkranch", now if I use this command "mkbranch" it will create a branch for me on our server, its usage is like this Usage: mkbranch [flags] parent brname comment rooted [ownerid [groupid]] for example if I want to create a bra

ANT - copy file to network drive

2007-06-13 Thread sarancse
Hi I am trying to copy my war file from local drive[Windows] to network drive[Linux] using my ANT script. My network drive path is \\usr\\local\\java\\jboss-4.2.0-GA I got "the network path was not found" error. Please help on this. -- View this message in context: http://www.nabble.com/ANT

RE: ant regex

2007-06-13 Thread snenkov
Hi Gilbert, thank you for the example. It works for me as well. I will use propertyregex in that case Stefan Rebhan, Gilbert wrote: > > > Hi, > > > -Original Message- > From: snenkov [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 13, 2007 12:01 AM > To: user@ant.apache.org > S

Re: Rename directories in Ant

2007-06-13 Thread Gilbert Rebhan
Cesar Martinez Izquierdo wrote: Sorry, it doesn't seem to work. [...] Probably, something similar can be performed using the glob mapper as you suggested, but it will fail when there is a 'search' directory inside another 'search' directory (as far as I understand...). you're right, /search

RE: AW: how to get a process id from a spawned task?

2007-06-13 Thread Kajsa.Anderson
This snippet doesn't exactly give you the PID, but it gives something that's close enough for what I needed (and may be sufficient for the OP's use case, I'm not sure): import java.lang.management.ManagementFactory; ... ManagementFactory.getRuntimeMXBean().getName(); // gets PID of c

RE: Malformed error

2007-06-13 Thread Anderson, Rob (Global Trade)
I suggest using only forward slashes for paths, to avoid things like this. Also, it looks like you are attempting to use an environment variable on Windows. I suggest you look at the property tasks' environment attribute. I hope this helps. -Rob Anderson > -Original Message- > From: ar

Re: flextasks anomalies

2007-06-13 Thread Martin Gainty
yes.. works at command line (produces *.swf file) but doesnt as standalone Ant mxlmc task so for now Im going to use the with mxlmc classpath="C:/ANT/APACHE~1.5/lib/flexTasks.jar" /> value="C:/flexTasks/FlexBuilder2/frameworks"/>

Re: Malformed error

2007-06-13 Thread arijit
oops... got the problem... \u in the line mentioned below.. replaced it with \\u :) arijit wrote: > > Can anyone see any problem with this line ? > > UDDI4j_WSIGCP=%LIB_WSIGCP%\uddi4j-2.0.5.jar > > This line is present in the test.properties file. Now when I remove this > line, it works. I

Re: Malformed error

2007-06-13 Thread arijit
Can anyone see any problem with this line ? UDDI4j_WSIGCP=%LIB_WSIGCP%\uddi4j-2.0.5.jar This line is present in the test.properties file. Now when I remove this line, it works. I have written this line manually and not copy-paste arijit wrote: > > i was hoping that would be the case.. :( >

Re: Malformed error

2007-06-13 Thread Cesar Martinez Izquierdo
arijit wrote: > i was hoping that would be the case.. :( > > but I wrote the code manually instead of copy-paste but still the same > problem > > > Cesar Martinez Izquierdo-3 wrote: >> arijit wrote: >>> I am unable to detect why this code is throwing malformed exception. >>> >>> >>> >>> Error

Re: Malformed error

2007-06-13 Thread arijit
i was hoping that would be the case.. :( but I wrote the code manually instead of copy-paste but still the same problem Cesar Martinez Izquierdo-3 wrote: > > arijit wrote: >> I am unable to detect why this code is throwing malformed exception. >> >> >> >> Error shown is > >> java.lang

Re: Malformed error

2007-06-13 Thread Cesar Martinez Izquierdo
arijit wrote: > I am unable to detect why this code is throwing malformed exception. > > > > Error shown is > > java.lang.IllegalArgumentException: Malformed \u encoding. > > any clue ? I would say you have an strange hidden character in that line. Try deleting the whole line and writ

Malformed error

2007-06-13 Thread arijit
I am unable to detect why this code is throwing malformed exception. Error shown is > java.lang.IllegalArgumentException: Malformed \u encoding. any clue ? -- View this message in context: http://www.nabble.com/Malformed-error-tf3915115.html#a11100914 Sent from the Ant - Users maili

Re: Rename directories in Ant

2007-06-13 Thread Cesar Martinez Izquierdo
Rebhan, Gilbert wrote: > > > > Hi, > > sorry, the mapper is wrong = > /> > > must be = > > > the glob mapper seems to handle only single ' * ' > > Regards, Gilbert > > > -Original Message- > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 13, 2007 2:50 P

Re: flextasks anomalies

2007-06-13 Thread Paul Barnes-Hoggett
Hi Martin, it sounds like you need to get hold of the Flex SDK: http://www.adobe.com/products/flex/downloads/ Download this, and set FLEX_HOME to point to this folder and you should be good to go... Cheers PBH On 6/13/07 9:35 AM, "Martin Gainty" <[EMAIL PROTECTED]> wrote: > Good Morning Varu

Re: flextasks anomalies

2007-06-13 Thread Martin Gainty
Good Morning Varun the only flex-config.xml I have is supplied from CFUSION ..23260 bytes dated 06/12/2007 ..I dont see any other copies Would you know where I can obtain the flex-config.xml which works with flextasks.jar mxlmc task? Thanks! M- This email message and any files transmitted wit

RE: Rename directories in Ant

2007-06-13 Thread Rebhan, Gilbert
Hi, sorry, the mapper is wrong = must be = the glob mapper seems to handle only single ' * ' Regards, Gilbert -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 2:50 PM To: Ant Users List Subject: RE: Rename directories in Ant H

Re: Rename directories in Ant

2007-06-13 Thread David Weintraub
There's a slight problem in that the java.util.regex.Pattern class used by Ant doesn't support what in Perl would be the "g" flag. That Java class is the java.util.regex.Matcher and I don't know how the regexmapper would call this particular class. You might have to run this multiple times until

AW: Edit XML-Files with Ant

2007-06-13 Thread Christoph.Paschedag
Thanks for your hints. I guess with your documentation I will handle it. Regards, C.P. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 3:08 PM To: user@ant.apache.org Subject: Edit XML-Files with Ant Hi, /* Any ideas how I can modi

RE: Edit XML-Files with Ant

2007-06-13 Thread Rebhan, Gilbert
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 3:08 PM To: user@ant.apache.org Subject: Edit XML-Files with Ant Hi, /* Any ideas how I can modify these files? */ xml task recommended http://www.oopsconsultancy.com/software/xmlt

RE: Edit XML-Files with Ant

2007-06-13 Thread cknell
Use the task. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: <[EMAIL PROTECTED]> Sent: Wed, 13 Jun 2007 15:08:15 +0200 To: Subject: Edit XML-Files with Ant Hi, I'm using Ant to generate an update site from my RCP-project. In this project I have

Edit XML-Files with Ant

2007-06-13 Thread Christoph.Paschedag
Hi, I'm using Ant to generate an update site from my RCP-project. In this project I have different XML-files with version numbers in it. My ant task asks the user to type in this version number so I have to update these files with the given version number. The file "site.xml" of an update site

RE: Rename directories in Ant

2007-06-13 Thread Rebhan, Gilbert
Hi, -Original Message- From: Cesar Martinez Izquierdo [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 12:57 PM To: Ant Users List Subject: Re: Rename directories in Ant /* Hi Qazwart, thanks for your reply. The problem is that I don't want to rename ONE directory, but ALL the

Disabling Continnum URL

2007-06-13 Thread Ashwin E
I'm using Ant with Continuum. I already have a CVS url specified in the Ant Build.xml, now I dont want to specify the url in Continuum. Can this be done? is there anyway to prevent this happenning? -- View this message in context: http://www.nabble.com/Disabling-Continnum-URL-tf3914110.html#a110

Re: Rename directories in Ant

2007-06-13 Thread Cesar Martinez Izquierdo
Qazwart wrote: > What version of Ant are you using? You seem to take the hard way: > > If you're using at least version 1.3, you can simply do this: > > todir="/tmp/myDir/test/hello/search_"/> > > If it's earlier than version 1.3: > > > > > > No need to use a mapper or anything: >

Re: Rename directories in Ant

2007-06-13 Thread Qazwart
What version of Ant are you using? You seem to take the hard way: If you're using at least version 1.3, you can simply do this: If it's earlier than version 1.3: No need to use a mapper or anything: BTW, the problem you're running into is that regex is naturally greedy, so it always

Re: Mail failing in build.xml file

2007-06-13 Thread Sann Maung
Hi, I just read this message. If you already have the solution, sorry. I think you need the (activation.jar) as well. rgds, --- David Weintraub <[EMAIL PROTECTED]> wrote: > I just tried that. I downloaded mail-1.4.jar from > Sun, put it in > ~ant/lib, created a symbolic link from mail.jar -

RE: [solved] Re: Running .app on Mac OSX

2007-06-13 Thread RADEMAKERS Tanguy
happy to help! Regs, /t >-Original Message- >From: Paul Barnes-Hoggett [mailto:[EMAIL PROTECTED] >Sent: Tuesday, June 12, 2007 9:25 PM >To: Ant Users List >Subject: [solved] Re: Running .app on Mac OSX > >Hi there, > your solution worked great, thanks! I actually needed to add >a littl

Rename directories in Ant

2007-06-13 Thread Cesar Martinez Izquierdo
Hi, I'm trying to rename every "search" directory in a tree to "search_", but I'm not able to find the right way to do it. For example, if I have the files: /tmp/myDir/test/hello/search/Hello.html /tmp/myDir/test/hello/search/nice/lists/search/Greetings.html /tmp/myDir/test/hello/searchstrings/He