Re: For loop

2006-06-09 Thread Scot P. Floess
Yes, I am using 1.6.5. I never tested using an inner for loop - did it work? Guru Balse wrote: Awesome, Scot. It works well! Can't wait for the "better" solution that you are about to create :-) You must use 1.6.5 for this (for example, 1.6.2 did not work) classpath="/apache-ant-1.6.5ant

Re: For loop

2006-06-09 Thread Guru Balse
Awesome, Scot. It works well! Can't wait for the "better" solution that you are about to create :-) You must use 1.6.5 for this (for example, 1.6.2 did not work) classpath="/apache-ant-1.6.5ant1.6.2/lib/ant-contrib-1.0b1.jar"/>

Re: Implementing a loop in ANT

2006-06-09 Thread Scot P. Floess
Well this works...for under 500 iterations. I get a StackOverflow exception so...this is certainly not an "ideal" solution ;) Scot P. Floess wrote: Phew, I finally got a preliminary version working - took some time...

Re: Implementing a loop in ANT

2006-06-09 Thread Scot P. Floess
Phew, I finally got a preliminary version working - took some time... operation = "+" operand1 = "[EMAIL PROTECTED]" ope

RE: Implementing a loop in ANT

2006-06-09 Thread Anderson, Rob (Global Trade)
I had a similar need. I bassically created a shell script that would generate a LIST property that contained a comma delimited list of numbers. Here is the script... #!/bin/bash echo "How many POs?" read NUM X=0 echo -n "LIST=" >list.txt while [ $X -lt $NUM ] ; do if [ $X -lt 10 ] ; then

RE: Building a fileset from an arbitrary list (task)

2006-06-09 Thread Sommers, Elizabeth
Because we have a huge repository of jars and subversion info. Scanning it can take upwards of a minute or more. Instead we are building paths from a maven2 pom (a perfectly reasonable way of describing artifacts, even if we don't use maven). -Original Message- From: Jeffrey E Care [mai

Re: Implementing ant task which extends ExecTask

2006-06-09 Thread Scot P. Floess
That's fine...just reply then and I'll see if I can help you :) Enjoy your time away ;) Markusin wrote: Hello Scot I will be awy for 2 weeks. I hope it is ok, if I will answer you when I am back again. Markus <-Original Message- mailto:[EMAIL PROTECTED] < < < Hi Scot <> <>

RE: Implementing ant task which extends ExecTask

2006-06-09 Thread Markusin
Hello Scot I will be awy for 2 weeks. I hope it is ok, if I will answer you when I am back again. Markus <-Original Message- mailto:[EMAIL PROTECTED] Hi Scot <> <> Ok, sorry for the small description. <> <> My intention is to execute shp2pgsql as an ant target. <> So first I tried to

Re: Building a fileset from an arbitrary list (task)

2006-06-09 Thread Jeffrey E Care
If I may ask, why don't you want to use DirectoryScanner? Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer "Sommers, E

Building a fileset from an arbitrary list (task)

2006-06-09 Thread Sommers, Elizabeth
I am writing an ant task that does something like eclipseclasspath - but not quite. For some reason I am having trouble finding the code that will allow me to build a fileset from a list. I do NOT want to use directoryScanner - does anybody have some code they can help me out with. Thanks Liz S

Re: UNSUBSCRIBE ME PLEASE

2006-06-09 Thread Keith Hall
jason suplizio wrote: have you tried To remove your address from the list, send a message to: <[EMAIL PROTECTED]> ?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Importing files

2006-06-09 Thread glenn opdycke-hansen
Another option/solution is below: ... ... ...should be changed to... ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Importing files

2006-06-09 Thread Scot P. Floess
This is a test I did: jdoc.xm --- build.xml --- http://jplate.sourceforge.net";> It worked fine for me. When running against build.xml: prepare: [echo] In prepare test-echo: [echo] in test-echo test: [echo] In t

Re: Importing files

2006-06-09 Thread M V Chetan
My main project build file(build.xml) is here(shot_1.jpg) The other project file is here(shot_2.jpg), In the second file where the javadoc doc says it depends on prepare eclipse keeps telling me "Target prepare doesn't exist in this project" Actually this is just a snippet,in this case ja

Re: Importing files

2006-06-09 Thread Scot P. Floess
Silly question, what happens if you run ant against your build.xml from the command line? Another silly question, you are using correct? I know I am using 's galore with no issues... Can we get a peek at your XML files? Scot M V Chetan wrote: I am trying to split up some targets and place

Re: Implementing ant task which extends ExecTask

2006-06-09 Thread Scot P. Floess
Markusin: Well you can certainly do all the finds and string compares within ant. In fact, you can probably do your sql work as well from ant as well. I'm not clear as to what isn't working. You mention using the Exec task... Are you using ant to call out to the OS to find all files and

Re: Implementing a loop in ANT

2006-06-09 Thread Scot P. Floess
They do, but unfortunately not exactly what Guru needs. They support for-loops over lists or file sets. Really, he needs something like: ... I'm trying to figure out a way to do this using ant/ant-contrib but its not readily apparent to me (I though it'd be trivial) to make it happen. Wh

Re: macrodef and uri

2006-06-09 Thread Scot P. Floess
Peter: Thanks for the reply... I had found the answer shortly after I posted...For some reason it never "clicked" about adding the namespace at the level...I sorta felt silly once I realized that ;) Regardless, I appreciate you responding...thanks again :) Scot Peter Reilly wrote: In par

Importing files

2006-06-09 Thread M V Chetan
I am trying to split up some targets and place them as seperate projects for ease of use and include these in my main build.xml to make use of the targets in these files(the included files). I have this scenario, Buid.xml has two targets build and Main_1 The default target build (in build.xml) d

Re: calling maven2 files from ant

2006-06-09 Thread Steve Loughran
EJ Ciramella wrote: I'm trying with the task, but I keep getting this: Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments: '-classpath' 'E:\buildtools\maven-2.0.3\core\boot\classworlds-1.1.jar;E:\buildtools\maven-2.0.3\bin\m2.conf' 'or

RE: Implementing ant task which extends ExecTask

2006-06-09 Thread Markusin
Hi Scot Ok, sorry for the small description. My intention is to execute shp2pgsql as an ant target. So first I tried to do this using the existing ant target exec, but because of small functionality in stringparsing (need to pass as arguments the name of the file (shapefile), the name of the targ

Re: macrodef and uri

2006-06-09 Thread Peter Reilly
In particular a uri is not a namespace prefix. One needs to map a prefix to a uri using the xmlns attribute. Hello world Peter On 6/8/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: OK, someone feel free to kick me and call me a newbie! I found my problem...