Re: "Variable" Macros Properties

2006-04-13 Thread trad-ex
Hi Fletcher, I recommend to use Ant-Contrib. See Variable Task, and If-Then task Regards, trad-ex >I would like to be able to take a macro parameter such as "devel" and >use this information to compute the actual path where the data is stored >(ex \\pca001\mypath). Unfortunately I cannot use pr

copying files

2006-04-13 Thread Stan Ou
Hi all, I've a situation here hope someone could give me some guidance. In my build script, I need to copy some files like this: from: c:\from\qaz\123\common\some.xml c:\from\wsx\345\common\some.xml c:\from\edc\678\common\some.xml to: c:\to\123\common\some.xml c:\to\456\common\some.xml c:\to\67

Problem with XSLT URI resolution for docbook

2006-04-13 Thread Adam Perry-Pelletier
I'm trying to get docbook up and running under Ant. Following some instructions on the web, I got it to work by directly invoking the Saxon XSLT processor via the task. However, all the docbooks is just XSLT, so I'd like to use the task instead of . However, I can't seem to get the combination

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
thanks Matt, works great! Matt Benson wrote: You talk about keeping your file indented correctly... I wouldn't consider that necessary anyway... In any event, the attached buildfile shows how to use concat or echo, sacrificing formatting, then using a task per line. -Matt --- Rakesh Patel <[E

RE: Unzip Question

2006-04-13 Thread Fenlason, Josh
That worked like a charm. Thanks for the quick response. , Josh. > -Original Message- > From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 13, 2006 9:49 AM > To: Ant Users List > Subject: RE: Unzip Question > > Hello Josh, > > It's a two step process: > > 1) ext

RE: Unzip Question

2006-04-13 Thread RADEMAKERS Tanguy
Hello Josh, It's a two step process: 1) extract the .js files from the archive to a temp location using the task with a nested 2) use the task with a nested to copy the js files from the temp location to a new destination /t >-Original Message- >From: Fenlason, Josh [mailto:[EMAI

Unzip Question

2006-04-13 Thread Fenlason, Josh
I'm trying to extract only js files from a zip file and not retain the folder structure from the zip file. For example the zip file might look like this: /foo/bar/test.js /foo/test2.js I want to extract so they come out like this: C:\test\test.js C:\test\test2.js Hope that make se

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Matt Benson
You talk about keeping your file indented correctly... I wouldn't consider that necessary anyway... In any event, the attached buildfile shows how to use concat or echo, sacrificing formatting, then using a task per line. -Matt --- Rakesh Patel <[EMAIL PROTECTED]> wrote: > Hi Matt, > > can you

Re: Multiple JVM

2006-04-13 Thread Antoine Levy-Lambert
Jaysheel, Actually, I would expect ant -verbose to be enough. You should see some messages of the java command launcher of ant showing which command line is being passed to the shell. Or am I mistaken ? Regards, Antoine Bandaru, Jaysheel wrote: Hi - Following is the snippet of what it i

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
Hi Matt, can you give me an example of using ? I am already using fixlastline=true with no result. Thanks Rakesh Matt Benson wrote: --- Rakesh Patel <[EMAIL PROTECTED]> wrote: Hi, almost there with the concat task but am having problems with keeping my build.xml file formatted corre

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Matt Benson
--- Rakesh Patel <[EMAIL PROTECTED]> wrote: > Hi, > > almost there with the concat task but am having > problems with keeping my > build.xml file formatted correctly and giving the > text to pass in ie if > each line is indented, the indents go into the file. > > I tried individual staements b

RE: Multiple JVM

2006-04-13 Thread Bandaru, Jaysheel
Hi - Following is the snippet of what it is printing on the console [Loaded org.apache.tools.ant.taskdefs.Execute] [Loaded org.apache.tools.ant.taskdefs.Execute$CommandLauncher] [Loaded org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher] [Loaded org.apache.tools.ant.taskdefs.Execute$Comm

Re: AW: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
Hi, almost there with the concat task but am having problems with keeping my build.xml file formatted correctly and giving the text to pass in ie if each line is indented, the indents go into the file. I tried individual staements but i can't seem to generate a new line. Here's what i have s

Re: Multiple JVM

2006-04-13 Thread Antoine Levy-Lambert
Antoine Levy-Lambert wrote: > Martijn Kruithof wrote: > >> Hi >> >> Is it an option to use JDK 1.5 completely and specify the source ant >> target attributes >> > Martijn, Jaysheel wants to use , not ;-) > >> Martijn >> >> >> >>> >>> >>> >>> >>> >>> >>>

Re: Multiple JVM

2006-04-13 Thread Antoine Levy-Lambert
Martijn Kruithof wrote: > Hi > > Is it an option to use JDK 1.5 completely and specify the source ant > target attributes Martijn, Jaysheel wants to use , not ;-) > > > Martijn > > >> >> >> >> >> >> >> >> >> >> >> >> >> >> Hello Jaysheel, I would be

AW: Creating a file programmaticaly

2006-04-13 Thread Jan.Materne
user scott tiger put *.war quit or with use of properties user ${db.user} ${db.pwd} put *.war quit Jan >that seems to only produce name value pairs. Unfortunately, >the file i want to create looks more like this: > >user >scott >tiger >put *.war >quit ---

Re: Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
that seems to only produce name value pairs. Unfortunately, the file i want to create looks more like this: user scott tiger put *.war quit Cheers Rakesh Steve Loughran wrote: Rakesh Patel wrote: Hi, looking at the core ant tasks, i couldn't see any obvious way to create a text file on

Re: Creating a file programmaticaly

2006-04-13 Thread Steve Loughran
Rakesh Patel wrote: Hi, looking at the core ant tasks, i couldn't see any obvious way to create a text file on the fly and put text in it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Creating a file programmaticaly

2006-04-13 Thread Rakesh Patel
Hi, looking at the core ant tasks, i couldn't see any obvious way to create a text file on the fly and put text in it. Any ideas? Cheers Rakesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

RE: tasks -- how to specify location of cvs.exe

2006-04-13 Thread Rebhan, Gilbert
Hi, if cvs ain't on path , you might try the task, f.e. = Regards, Gilbert -Original Message- From: Michael Giroux [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 5:25 PM To: Ant Users List Subject: tasks -- how to specify location of cvs.exe The CVS related