Re: Unable to execute a command mysql with a < symbol

2007-06-14 Thread Chris Velevitch
Can't you just specify the filename without redirection? Is there a commandline option to specific the sql to execute? If not. look at the exec tasks I/O redirector. On 6/15/07, Kannan Ekanath <[EMAIL PROTECTED]> wrote: Hi, ANT - 1.6.5 I am trying to execute the following command line from ANT "

Unable to execute a command mysql with a < symbol

2007-06-14 Thread Kannan Ekanath
Hi, ANT - 1.6.5 I am trying to execute the following command line from ANT "D:\>mysql -u root -pwelcome --database=warranty < target/create-schema.sql" Basically the create-schema sql file has to be loaded using mysql command. I understand that there is a problem with "<" symbol in ant command li

Re: cvs export issue in ANT

2007-06-14 Thread Chris Velevitch
If you're trying to update an existing working directory use update. I use export whenever I'm building a system for deployment or testing, so I always create a new directory empty. Helps pickup issues like forgetting to check files I've changed. On 14 Jun 2007 08:18:08 -, query <[EMAIL PROT

RE: replaceregex

2007-06-14 Thread Erica A Ramsey
well, I give up hopefully someone out there can help me. this was my last try; I thought the pattern specified the following; lines that start with '#example' followed one or more of {whitespace OR (lines that do not start with '#') OR any char} followed by lines that start with '#' foll

Whats the best syntax to use for a directory copy?

2007-06-14 Thread Jim C.
I have directory X and I want to copy it such that the copy becomes a subdirectory of directory Y. What's the easiest way to accomplish this? Jim C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: replaceregex

2007-06-14 Thread Erica A Ramsey
Of course I tested it but it is failing. can someone tell me what is wrong? -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 3:57 PM To: Ant Users List Subject: Re: replaceregex I don't mean to sound smart...but have you tried it? Run a tes

Re: replaceregex

2007-06-14 Thread Scot P. Floess
I don't mean to sound smart...but have you tried it? Run a test? It might be time better spent if you run a test, it fails then email the list? Erica Ramsey wrote: hello, will the following example replace everything between '#example ' and '#end example.*' ? I am trying to strip the follow

replaceregex

2007-06-14 Thread Erica Ramsey
hello, will the following example replace everything between '#example ' and '#end example.*' ? I am trying to strip the following from a file; #example -- do not remove this line! test1 #comment test2 $ test3 #another comment . #end example -- do not remove this line! everything between '#examp

Re: replace an entry in a zip file?

2007-06-14 Thread Peter Reilly
Whats wrong is that he was using instead of . will create a manifest entry in the jarfile. The timestamp of this manifest entry will the time time that the task was run - (if there are updates to be done). One cannot mix and . Peter On 6/14/07, RADEMAKERS Tanguy <[EMAIL PROTECTED]> wrote: t

RE: replace an entry in a zip file?

2007-06-14 Thread RADEMAKERS Tanguy
that's weird, i'm using 1.6.5 as well. I think we have a misunderstanding. Here's what i did: 1) make three files a.txt, b.txt, c.txt, each with some text 2) create the following build.xml: 3) run that to get the first zip file: txtfiles.zip, conta

Re: replace an entry in a zip file?

2007-06-14 Thread Peter Reilly
Your build file *nearly* works! You are been defeated by the timestamp check. Zip will only update a zip file with files that are newer that the files that are in the zip file. For the manual page: """ Please note that ZIP files store file modification times with a granularity of two seconds. If

RE: replace an entry in a zip file?

2007-06-14 Thread Cyril Sagan
Thanks for your reponse. However, this does not work for me in Ant 1.6.5. Note that my goal is to *replace* a file that's already in the zip. Seems like the best solution would be for the duplicate attribute to support a "replace" option. FWIW, I'm doing this to control my jar manifest. I can'

Re: Copy property from a property-file into an Ant-property

2007-06-14 Thread David Weintraub
You only want a single property from the file? Why not simply: If you are concerned that you might overwrite properties you don't want to overwrite and you only want a select property, use a prefix to prepend to all of the properties in the property file first: On 6/14/07, [EMAIL

Re: ANT - copy file to network drive

2007-06-14 Thread Tommy Nordgren
On 14 jun 2007, at 08.00, sarancse wrote: 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

Re: ANT - copy file to network drive

2007-06-14 Thread Steve Loughran
sarancse wrote: 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. This means its not a valid network path.

Re: using '/' as the separator for the elements

2007-06-14 Thread Prashant Reddy
Is't it much easier to simply write a Java Program that uses String Tokenizer to process the input and launches these commands ? If you really really want to use ANT, just call up that Java class using task. On Wed, 2007-06-13 at 23:26 -0700, Pritesh Saharey wrote: > Hi All, >We had our

RE: replace an entry in a zip file?

2007-06-14 Thread RADEMAKERS Tanguy
Hello Cyril, >GOAL: To replace one entry in a zip file with an updated file. > >I cannot find an elegant way to do this, short of 'ing the >archive, replacing the file of interest and then re-. It seems >there should be a better way. Can anyone help? > >Thanks. > >--Cyril If you use the update

Copy property from a property-file into an Ant-property

2007-06-14 Thread JasDA
Hi, is it possible to copy the value from a property-file to an Ant-property? Regards, Jason __ Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach! Mehr Infos unter http://produkte.web.de

replace an entry in a zip file?

2007-06-14 Thread Cyril Sagan
GOAL: To replace one entry in a zip file with an updated file. I cannot find an elegant way to do this, short of 'ing the archive, replacing the file of interest and then re-. It seems there should be a better way. Can anyone help? Thanks. --Cyril FWIW, It looks like the Ant 1.6.5 source c

Re: flextasks anomalies

2007-06-14 Thread Varun Bhambri
Hello Martin, Sorry, had to remove your flex-config.xml from this message. ANT Mailing List was failing my reply with an error - too long message! From the error that you are getting, it seems like ANT is unable to locate the mxmlc Task in the flexTasks.jar. Just to be sure, try pasting the fo

RE: Problem

2007-06-14 Thread Rebhan, Gilbert
Hi, -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 10:03 AM To: user@ant.apache.org Subject: Problem /* How to prevent folders from getting deleted from todir by sync task ? */ ok found, that it's possible with ant 1.7

cvs export issue in ANT

2007-06-14 Thread query
  When I tried to export new revision file from cvs, it is not replacing old file with the new file. It is showing the below error and continues. [cvs] cvs export: move away E:\ANTBUILD\eg\sample.java; it is in the way [cvs] C E:\ANTBUILD\eg\sample.java To export the new file, old file needs to

Problem

2007-06-14 Thread Rebhan, Gilbert
Hi, a question related to sync task = dir = /srcdir /sub /tools /sub1 /tools /sub2 /subsub2 i want to exclude the /tools folder on first level from synchronize, but if i exclude it from fileset it get's deleted in todir /targetdir /sub /sub1 /tools /sub2 /subsub2

RE: How to add a file to existing zip archive into a existingfolder

2007-06-14 Thread Ravi Roy
Thanks Prashant. Excellent, it worked. Regards. Ravi. -Original Message- From: Prashant Reddy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 11:58 AM To: user@ant.apache.org Subject: Re: How to add a file to existing zip archive into a existingfolder Use and tasks.

Re: Re: javac task with classpath issue

2007-06-14 Thread query
Reformatted one is available in:  20070612125513.17951.qmail () webmail6 ! rediffmail ! com On Tue, 12 Jun 2007 Scot P.Floess wrote : >Can you reformat and show some samples? > >query wrote: >>Sorry for the mail format. >> >>The issue with recompilation is not with jar file, but with class files.

Re: Re: javac task with classpath issue

2007-06-14 Thread query
Reformatted one is available in:  20070612125513.17951.qmail () webmail6 ! rediffmail ! com On Tue, 12 Jun 2007 Scot P.Floess wrote : >Can you reformat and show some samples? > >query wrote: >>Sorry for the mail format. >> >>The issue with recompilation is not with jar file, but with class files.

Re: Re: javac task with classpath issue

2007-06-14 Thread query
Reformatted one is available in:  20070612125513.17951.qmail () webmail6 ! rediffmail ! com On Tue, 12 Jun 2007 Scot P.Floess wrote : >Can you reformat and show some samples? > >query wrote: >>Sorry for the mail format. >> >>The issue with recompilation is not with jar file, but with class files.

Re: Re: Classpath issue with task

2007-06-14 Thread query
  Definitions are as given below: On Tue, 12 Jun 2007 Scot P.Floess wrote : >First off what is the value of dst? > >Second, what is the definition of app.path? > >query wrote: >> Hi, >> >>I have been using ANT tool to compile java source files. >> >>>includes="**/*.jav

Re: Re: Classpath issue with task

2007-06-14 Thread query
  Definitions are as given below: On Tue, 12 Jun 2007 Scot P.Floess wrote : >First off what is the value of dst? > >Second, what is the definition of app.path? > >query wrote: >> Hi, >> >>I have been using ANT tool to compile java source files. >> >>>includes="**/*.jav