RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread cknell
Thanks to all who replied. That's the answer I needed. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Grant Lewis <[EMAIL PROTECTED]> Sent: Fri, 12 May 2006 21:01:35 -0400 To: Ant Users List Subject: Re: Iterate over "filelist" with java task? I gen

compiler References in task

2006-05-12 Thread jason heddings
Hello- I have the following build file and I'm not sure what I'm missing: When I try to run this, I get an error saying: build.xml:12: my-compiler doesn't denote a ProcessorDef This is my first attempt to factor out the compiler types, so thank

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Grant Lewis
I generally define macrodef under project but it's also legal under target. Where you put the definition defines the scope of the macro. If you so choose, you can define macros in a project by themselves and use the import task to pull them into the current build file. Import and macros are a power

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread Varadarajan, Srivathsan
You can place the and resulting task in a . For example, ... -- Srivathsan > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 4:43 PM > To: user@ant.apache.org > Subject: RE: Re: Iterate over

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Scot P. Floess
Once you define the macrodef...you can use it like any other target... For instance - if you define a macrodef named foo, you can use it like This of course is dependent upon attributes (if you define them) and default values... [EMAIL PROTECTED] wrote: Thank you for your reply, but it

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread cknell
Thank you for your reply, but it answered a question I didn't ask. I want to know what element can be the parent of a , not which elements a can contain. Let me list some examples: Is a a child of ? Is a a child of ? Is a the child of some other element? -- Charles Knell [EMAIL PROTECTED] -

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Grant Lewis
A macrodef can pretty much include any other ant task between its sequential tag. Below is an example from the docs showing the macro definition and a call to the macro. Pay close attention to the tag and replace it with a tag named and you get the general idea of a macro. When the macro is exec

RE: Are there ANT tasks for SFTP?

2006-05-12 Thread Anderson, Rob (Global Trade)
Get the latest snapshot from source control and build the whole dist... http://cvs.apache.org/snapshots/ant/ -Rob A > -Original Message- > From: Shailesh Sharma [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 12:38 PM > To: Ant Users List > Subject: RE: Are there ANT tasks for SF

RE: Re: Iterate over "filelist" with java task?

2006-05-12 Thread cknell
Thanks, I am using 1.6.5. I'v checked the docs but there's something missing. What is/are the parent element/s of the and the resulting task? -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Grant Lewis <[EMAIL PROTECTED]> Sent: Fri, 12 May 2006 15:35:37 -04

RE: Are there ANT tasks for SFTP?

2006-05-12 Thread Shailesh Sharma
latest build of ant.jar ? "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> wrote: The scp task now supports sftp protocol. The changes have yet to be released, but are checked in to svn. Get the latest nightly build and see the scp task documentation. -Rob A > -Original Messag

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Grant Lewis
If you are using 1.6.x, define a macro using macrodef and call the macro with each file. I used a similar approach to automate xdoclet tasks for different groups of files. Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: First time user getting odd Ant message

2006-05-12 Thread Tim Hutcheson
After a little reading of some docs, I fixed it by deleting the old CLASSPATH. tnx, Tim Hutcheson Florida Institute for Human & Machine Cognition 40 S. Alcaniz St. Pensacola, FL 32502 [EMAIL PROTECTED] -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Friday, May

Re: First time user getting odd Ant message

2006-05-12 Thread Scot P. Floess
Can you cut and paste the exact line as you entered it like: ant foo or whatever...sorta tough to tell... Tim Hutcheson wrote: When I run Ant, with a valid build.xml, I get the single line message containing ". was unexpected at this time." Anyone seen that and knows why? thanks, Tim Hutche

RE: Are there ANT tasks for SFTP?

2006-05-12 Thread Anderson, Rob (Global Trade)
There is also a proposed sftp task that has been submitted to the bug database. http://issues.apache.org/bugzilla/show_bug.cgi?id=39532 This is dependent on the enhancements to the scp task mentioned in my other email, so you will want the latest nightly build to run this also. -Rob A > -O

RE: Are there ANT tasks for SFTP?

2006-05-12 Thread Anderson, Rob (Global Trade)
The scp task now supports sftp protocol. The changes have yet to be released, but are checked in to svn. Get the latest nightly build and see the scp task documentation. -Rob A > -Original Message- > From: Shailesh Sharma [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 9:49 AM > T

First time user getting odd Ant message

2006-05-12 Thread Tim Hutcheson
When I run Ant, with a valid build.xml, I get the single line message containing ". was unexpected at this time." Anyone seen that and knows why? thanks, Tim Hutcheson Florida Institute for Human & Machine Cognition 40 S. Alcaniz St. Pensacola, FL 32502 [EMAIL PROTECTED] -- No virus found in t

Re: Are there ANT tasks for SFTP?

2006-05-12 Thread Shailesh Sharma
can somebody please answer SFTP is new to me ...and iam not been able to find documentation how to implement SFTP ? Please help if you can. Shailesh Sharma <[EMAIL PROTECTED]> wrote: Iam working on implementing SFTP server="${server}" userid="${userid}" password="${passwo

Re: Iterate over "filelist" with java task?

2006-05-12 Thread Scot P. Floess
Ant contrib has a really nice loop where you can iterate over a fileset/etc. I am actually doing something like that to apply javacc (not javac - javacc) to all my .jj files so I don't have to include each and every one in a javacc target. [EMAIL PROTECTED] wrote: I have a project that requ

Iterate over "filelist" with java task?

2006-05-12 Thread cknell
I have a project that requires me to do post-processing after an XSLT transformation on a list of files. I accomplish this (for a single file) by defining a "target" for each post-processing step. Each target contains a "java" task that performs the processing. Will it be necessary for me to cr

Re: Are there ANT tasks for SFTP?

2006-05-12 Thread Shailesh Sharma
Iam working on implementing SFTP But it does not seems to work as it throws ... what jar file i need to download and put it in CLASSPATH ? Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the

Re: Outputting file sets that do not exist...

2006-05-12 Thread Matt Benson
Scot: A "fileset that does not exist" is a contradiction in terms. A fileset, by definition, consists of existing files accessible from an existing directory. Nonexistence of the parent directory yields a build error, as you have seen. If no child files can be matched by the fileset's (explici

Re: Outputting file sets that do not exist...

2006-05-12 Thread Scot P. Floess
Uhm and please disregard the comment pertaining to javacc ;) I cut 'n pasted into a new build.xml to hack away on the part I needed :) I just noticed I left the comment in place ;) Scot P. Floess wrote: Help...this is driving me nuts ;) Let's say I want to define a path - but for "whatever"

Outputting file sets that do not exist...

2006-05-12 Thread Scot P. Floess
Help...this is driving me nuts ;) Let's say I want to define a path - but for "whatever" reason parts of the path do not exist as specified in a fileset or dirset. Below is an example (please note - I have no /foo directory on my harddrive):

Re: problem with junit ant task and class loading

2006-05-12 Thread Lorenzo Bettini
Lorenzo Bettini wrote: Hi there I've just started using ant and junit task I have a test suite that I usually run from within eclipse and always worked one of these tests uses a custom class loader now I see that if I try to run the test with custom class loader from console (i.e., using ju

Re: Ordered fileset

2006-05-12 Thread Scot P. Floess
Great! That's good to hear :) Actually, I hadn't had a need for this kind of thing...so it was nice to see its available and works ;) Allwicher, Klaus wrote: Sorry, my previous answer seems to be too short. With the timestampselector everythings works fine :-) My current solution looks somet

RE: Ordered fileset

2006-05-12 Thread Allwicher, Klaus
Sorry, my previous answer seems to be too short. With the timestampselector everythings works fine :-) My current solution looks something like:

problem with junit ant task and class loading

2006-05-12 Thread Lorenzo Bettini
Hi there I've just started using ant and junit task I have a test suite that I usually run from within eclipse and always worked one of these tests uses a custom class loader now I see that if I try to run the test with custom class loader from console (i.e., using junit.textui.TestRunner) eve

Re: Counting lines in a file

2006-05-12 Thread Patrick Martin
Indeed: Patrick On 5/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: And maybe there are some existing tasks you could use, like http://antcount.sourceforge.net/ ;-) Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PRO

statup.bat execute II

2006-05-12 Thread Alberto Marquÿffffe9s
Perfect it is what since looked for but I can do now so that once sent build it finishes and it leaves tomcat started. Since the execution in cmd must ahcer more things. [EMAIL PROTECTED] escribió: see http://ant.apache.org/faq.html#batch-shell-execute Jan >-Ursprüngliche Nachricht--

Re: Ordered fileset

2006-05-12 Thread Scot P. Floess
Klaus: So did that work or do you need another solution? Scot Allwicher, Klaus wrote: Hi Scot, thanks, I had read over the additional 'count' attribute, sorry :-( With this everything works fine. @Matt: Thanks also for the suggestion, but we want only to used "offically" released versions ..

Re: deploy by ant

2006-05-12 Thread Steve Loughran
Raghuveer wrote: I need to delpoy on OC4J and runs with LDAP SQL server. LDAP,LOG 4J,DATABASE datsource configration properties changes based on environment like TEST,DEVELOPMENT,PRODUCTION Ant can help with -the logistics of copying files from place to place -starting and stopping servers

Re: deploy by ant

2006-05-12 Thread Steve Loughran
Raghuveer wrote: My customer requirement is to use ANT. i.e - Application must use ANT to build and deploy I have written build.xml for build. What does "deploy" means. "deployment" is the act of getting your program up and running on the server. It could mean 1. to get your war fi

AW: statup.bat execute

2006-05-12 Thread Jan.Materne
see http://ant.apache.org/faq.html#batch-shell-execute Jan >-Ursprüngliche Nachricht- >Von: Alberto Marquÿe9s [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 12. Mai 2006 11:45 >An: user@ant.apache.org >Betreff: statup.bat execute > >as it is possible to execute a file bat I am t

statup.bat execute

2006-05-12 Thread Alberto Marquÿffffe9s
as it is possible to execute a file bat I am trying to take tomcat with these lines and it does not work? - LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.

RE: Ordered fileset

2006-05-12 Thread Allwicher, Klaus
Hi Scot, thanks, I had read over the additional 'count' attribute, sorry :-( With this everything works fine. @Matt: Thanks also for the suggestion, but we want only to used "offically" released versions ... Klaus > -Original Message- > From: Scot P. Floess [mailto:[EMAIL PROTECTED] >