AW: Loading files into concat in a certain order

2007-07-23 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Alex Egg [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Juli 2007 04:57 >An: Ant Users List >Betreff: Re: Loading files into concat in a certain order > >I'm looking at the (dismal) ant docs on resources

Re: Extending org.apache.tools.ant.types.Path in Ant 1.7

2007-07-23 Thread Matt Benson
--- "Paul J. Morris" <[EMAIL PROTECTED]> wrote: > > Hi, > > I've a custom Path type that worked under ANT 1.6.5, > but not under 1.7. > > The method "public String[] list()" is not being > called. There is however > a get iterator type method from the > ResourceCollection contract. Is this

Re: How can I capture a file's date to a property?

2007-07-23 Thread Dale Anson
Hi Charles, There seems to be an issue with the antelope.taskdef file for a few tasks. Try using the antlib.xml instead. The example below works fine for me using the current AntelopeTasks_3.4.2.jar from http://antelope.tigris.org. I tested this on both Ant 1.6.5 and 1.7.0.

Extending org.apache.tools.ant.types.Path in Ant 1.7

2007-07-23 Thread Paul J. Morris
Hi, I've a custom Path type that worked under ANT 1.6.5, but not under 1.7. The method "public String[] list()" is not being called. There is however a get iterator type method from the ResourceCollection contract. Is this supposed to be over-ridden in 1.7? However it is marked as final (pub

Re: help with some conditional logic..

2007-07-23 Thread warhero
bill/wilandra wrote: > > Create a target named init which will define/set props.someprop to any > value. > > > HTH Bill > > -- > This would kind of work. But this will fail to execute all commands in a > "depends" chain. if one of the if tests isn't met then subsequent target's > won't execu

Re: help with some conditional logic..

2007-07-23 Thread Bill Rich
Create a target named init which will define/set props.someprop to any value. HTH Bill warhero wrote: ##how use some logic based on a property from the props file that will either execute the "exec" or just pass it?

Re: help with some conditional logic..

2007-07-23 Thread warhero
Hey Wascal, Thanks, this is good. I've got another question if you don't mind me asking. I've been looking into installation steps, and I'm looking for a way I can use these jar's without actually having to update any ant installation / configuration. We're distributing build systems to develop

Re: Loading files into concat in a certain order

2007-07-23 Thread Alex Egg
I'm looking at the (dismal) ant docs on resources and sort, but I can't figure out how to use it on my file set: I just want to sort those files by name so they go into concat alphabeticly. My files are named 1styles.css, 2styles.css, 3styles.css, etc... How can I do this? Alex On 7

Re: help with some conditional logic..

2007-07-23 Thread Wascally Wabbit
Try the flow control tasks that are in the AntXtras third party package @ antxtras.sf.net. For your example: If you'd like to make sure the property is "true" use: For multiple properties something like: HTH, -The Wabbit warhero wrote:

help with some conditional logic..

2007-07-23 Thread warhero
##how use some logic based on a property from the props file that will either execute the "exec" or just pass it?

Re: Loading files into concat in a certain order

2007-07-23 Thread Matt Benson
--- Alex Egg <[EMAIL PROTECTED]> wrote: > I need to load some CSS files into the concat task, > but they need to be a > certain order. How should I do this? Maybe number > the file names? Is there > any build in fileset functionality for this? > Alex > In Ant 1.7+, you can use any resource coll

Loading files into concat in a certain order

2007-07-23 Thread Alex Egg
I need to load some CSS files into the concat task, but they need to be a certain order. How should I do this? Maybe number the file names? Is there any build in fileset functionality for this? Alex

FINAL CHAPTER: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi It seems I got through. To recap, I am building ant 1.7.0 from source on redhat linux enterprise server (AMD 64). My destination $ANT_HOME environmental variable is set as /usr/local/home. Below's a successful procedure. My comments are in parentheses. cd /usr/local mkdir ant cd ant

Re: best practices - building on multiple os's

2007-07-23 Thread Alexey Solofnenko
should work. Something else is wrong. - Alexey. Loehr, Ruel wrote: Hoping some others might have some insight, I've googled around for 2 days but haven't yet found an answer that seems right. I have a project which is c++ based and have created an ant wrapper around it to checkout, build,

Source Code for the Java Development with Ant book...

2007-07-23 Thread Bob Aiello
Some of the links on the website do not seem to be working. Can anyone advise on the link to download the Source Code Java Development with Ant (2003)?? Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Ant help

2007-07-23 Thread Steve Loughran
Wayne Cannon wrote: I'll second that recommendation. It's an excellent tutorial and very well indexed so it also serves as an excellent reference. --Wayne Why thank you. It is always best to hear the opinions of unbiased readers. Incidentally, in the articles section i'm going to add some

Re: best practices - building on multiple os's

2007-07-23 Thread Steve Loughran
Loehr, Ruel wrote: Hoping some others might have some insight, I've googled around for 2 days but haven't yet found an answer that seems right. I have a project which is c++ based and have created an ant wrapper around it to checkout, build, build an installer, and publish the project. This

RE: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi Alexey, I am getting somewhere! Please stay with me just a bit longer. I bent your instruction just a bit and typed: bootstrap.sh -f fetch.xml -Ddest=optional all which downloaded some files and built a bunch of targets as specified by xml target "all". And it came back with BUILD

Re: repost: trooubled with ant from source install

2007-07-23 Thread Alexey Solofnenko
bootstrap.sh -f fetch.xml all I also see the error, but fetch.xml is executed normally. - Alexey. Tena Sakai wrote: Hi Alexey, What about "bootstrap.sh -f fetch.xml"? I just did that and got: ++ [EMAIL PROTECTED] apache-ant-1

best practices - building on multiple os's

2007-07-23 Thread Loehr, Ruel
Hoping some others might have some insight, I've googled around for 2 days but haven't yet found an answer that seems right. I have a project which is c++ based and have created an ant wrapper around it to checkout, build, build an installer, and publish the project. This part works pretty wel

RE: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi Alexey, > What about "bootstrap.sh -f fetch.xml"? I just did that and got: ++ [EMAIL PROTECTED] apache-ant-1.7.0]$ bootstrap.sh -f fetch.xml ... Bootstrapping Ant Distribution ... Compiling Ant Classes Note: Some input files use or overr

Re: repost: trooubled with ant from source install

2007-07-23 Thread Alexey Solofnenko
What about "bootstrap.sh -f fetch.xml"? - Alexey. Tena Sakai wrote: Hi Peter, I don't have ANT_SRC set. I supposed it is in $ANT_HOME/src, but I issued a command: find /usr/local/ant/apache-ant-1.7.0 -name ant and it came back with: /usr/local/ant/apache-ant-1.7.0/src/etc/poms/ant

RE: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi Alexey, I don't have bootstrap directory anywhere under the distribution tree. What I have is: /usr/local/ant/apache-ant-1.7.0/src/etc/poms/ant /usr/local/ant/apache-ant-1.7.0/src/etc/testcases/taskdefs/ant /usr/local/ant/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant /

RE: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi Peter, I don't have ANT_SRC set. I supposed it is in $ANT_HOME/src, but I issued a command: find /usr/local/ant/apache-ant-1.7.0 -name ant and it came back with: /usr/local/ant/apache-ant-1.7.0/src/etc/poms/ant /usr/local/ant/apache-ant-1.7.0/src/etc/testcases/taskdefs/ant /

Re: repost: trooubled with ant from source install

2007-07-23 Thread Alexey Solofnenko
Run as following: .\bootstrap\bin\ant -f fetch.xml - Alexey. Tena Sakai wrote: Hi Peter, I like what you mention. I located and looked at the file fetch.xml. I would like to pursue this avenue. But I am clueless as to how I can "invoke" this xml file. Would you please tell me how I can do s

Re: repost: trooubled with ant from source install

2007-07-23 Thread Peter Reilly
On 7/23/07, Tena Sakai <[EMAIL PROTECTED]> wrote: Hi Peter, I like what you mention. I located and looked at the file fetch.xml. I would like to pursue this avenue. But I am clueless as to how I can "invoke" this xml file. Would you please tell me how I can do so? Thank you. use ant. cd $AN

RE: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi Peter, I like what you mention. I located and looked at the file fetch.xml. I would like to pursue this avenue. But I am clueless as to how I can "invoke" this xml file. Would you please tell me how I can do so? Thank you. Tena Sakai [EMAIL PROTECTED] -Original Message- From: Pete

RE: repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi Alexey, Thanks for your reply. I would like to dispute what you mention. Here's what happens in a bit more detail demarcated by two lines of plus signs, within which my comments are in angular brackets. + [EMAIL PROTECTED] apach

Re: repost: trooubled with ant from source install

2007-07-23 Thread Peter Reilly
On 7/23/07, Alexey Solofnenko <[EMAIL PROTECTED]> wrote: I do not think you need to download any jars, if you are building ANT for yourself - you have to have all necessary jars already to run ANT. This is not quite correct. The optional tasks/types need jars to be downloaded and placed in $ANT

Re: repost: trooubled with ant from source install

2007-07-23 Thread Alexey Solofnenko
I do not think you need to download any jars, if you are building ANT for yourself - you have to have all necessary jars already to run ANT. I have an automated script to build ANT. First, the script empties CLASSPATH, sets JAVA_HOME and PATH. Then copies all necessary jars into $ANT_DIR/lib/

repost: trooubled with ant from source install

2007-07-23 Thread Tena Sakai
Hi, Sorry to repost, but I haven't got much response... I am having a problem with installing ant 1.7.0 from source on redhat enterprise server (amd-64). What happens is that when I issue a command: sh build.sh -Ddist.dir=/usr/local/ant dist it complains that a bunch of jar files were not bu

Re: Ant help

2007-07-23 Thread Wayne Cannon
I'll second that recommendation. It's an excellent tutorial and very well indexed so it also serves as an excellent reference. --Wayne Steve Loughran wrote: Sayed, Irfan (Irfan) wrote: Hi All, I am very new to the Ant world. Really want to learn ant scripting (build.xml) from scratch. I al

Re: 'get' decompressing tar.gz files on-the-fly, sometimes

2007-07-23 Thread Simon P. Ditner
It seems that apache2 was triggering it. I commented out 'AddEncoding x-gzip gz tgz' from my apache2.conf, and that seems to be enough for it to arrive still compressed. On Sat, 21 Jul 2007, Alex Egg wrote: > Could apache be doing it?? > > On 7/21/07, Simon P. Ditner <[EMAIL PROTECTED]> wrote: >

RE: Re: How can I capture a file's date to a property?

2007-07-23 Thread cknell
There are a number of problems with the example task: - The opening and closing tag names do not match ("fileutil" vs. "fileutils"). - The tag is not closed. Even after correcting for these, I get an error message from ant when I run the target: -

AW: Ant help

2007-07-23 Thread Jan.Materne
I also recommend the beginner tutorial "Hello World with Ant" http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html Jan >-Ursprüngliche Nachricht- >Von: Steve Loughran [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 23. Juli 2007 14:46 >An: Ant Users List >Betreff: Re: Ant help >

RE: Ant help

2007-07-23 Thread Pushkar Prasad
www.kasamba.com/Pushkar -Original Message- From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 6:03 PM To: user@ant.apache.org Subject: Ant help Hi All, I am very new to the Ant world. Really want to learn ant scripting (build.xml) from scratch. I already v

Re: Ant help

2007-07-23 Thread Steve Loughran
Sayed, Irfan (Irfan) wrote: Hi All, I am very new to the Ant world. Really want to learn ant scripting (build.xml) from scratch. I already visited to ant.apache.org but never find any procedure to write small scripts or basics about writing script.It's a very high level description. Can some

Re: Ant help

2007-07-23 Thread Roman Ivashin
Hello! Try http://ant.apache.org/manual/index.html Click "Using Ant" in menu on the left pane, then "Writing a Simple Buildfile". >>> Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> Monday, July 23, 2007, 7:33:20 PM >>> wrote: SII> Hi All, SII> I am very new to the Ant world. Really want to learn a

Ant help

2007-07-23 Thread Sayed, Irfan (Irfan)
Hi All, I am very new to the Ant world. Really want to learn ant scripting (build.xml) from scratch. I already visited to ant.apache.org but never find any procedure to write small scripts or basics about writing script.It's a very high level description. Can somebody has any ppt or good study

Re: AW: Regarding .policy file

2007-07-23 Thread Sameer Borwankar
Thanks. i tried It worked. Thanks sameer - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Monday, July 23, 2007 3:05:46 PM Subject: AW: Regarding .policy file Try a nested element. extends (as the manual sais at the beginning). Jan

AW: Regarding .policy file

2007-07-23 Thread Jan.Materne
Try a nested element. extends (as the manual sais at the beginning). Jan >-Ursprüngliche Nachricht- >Von: Sameer Borwankar [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 23. Juli 2007 11:25 >An: Ant Users List >Betreff: Regarding .policy file > >Hi All, >In my folder structure, .policy

Regarding .policy file

2007-07-23 Thread Sameer Borwankar
Hi All, In my folder structure, .policy file is present in root>application folder. After running the ANT script, i want this policy file in META-INF folder where application.xml file is lying. While creating EAR file, path for application.xml file is denoted as applxml = path Is there similar t

AW: random number generator

2007-07-23 Thread Jan.Materne
Jan >-Ursprüngliche Nachricht- >Von: Mario Madunic [mailto:[EMAIL PROTECTED] >Gesendet: Samstag, 21. Juli 2007 16:25 >An: Ant Users List >Betreff: Re: random number generator > >Thank you Gilbert, > >it works like a charm. > >Mario > >Quoting Gilbert Rebhan <[EMAIL PROTE