Re: converting ant from a make file

2009-09-18 Thread Stephen Connolly
Martin, This is the ANT list... and you suggest a Maven solution... I am not sure that that is what the OP is after... In moving from Makefile to a more modern build process I usually find that jumping as far as Maven is a "step too far" for most people... don't get me wrong, I am a Maven fan, b

Why Ant didn't compile my jsp's

2009-09-18 Thread Rafael Muneton
Hello everyone: I’m learning the Struts framework and in my first Web Application, that contains only a JSP with the classic Hello World! Message, I have some problems. I’m using Windows XP SP2 as the OS. Apache Tomcat 5.5 as the web server. Ant 1.7.1 and Java 1.6 SDK. In my first steps I de

Re: How To: Java Command to Ant

2009-09-18 Thread supareno
dr_pompeii, you should try this: [...] [...] (see http://ant.apache.org/manual/CoreTasks/java.html and http://ant.apache.org/manual/using.html#arg) i did it tonight on my linux box with a jdk6 and it works well :-) hope this help supareno Dear Members I have this java coma

RE: converting ant from a make file

2009-09-18 Thread Martin Gainty
you can implement *the majority* of what you're trying to accomplish using maven Native Archive Plugin http://java.freehep.org/freehep-nar-plugin/intro.html be aware this is a brand new plugin is attempting to emulate every make,compile and link tool available for every OS and library set so as

Re: converting ant from a make file

2009-09-18 Thread veena pandit
I read up about it and I wrote the script. While testing it I get an error. Cannot run perl.exe from the directory C:\Perl\bin; Thanks in advance, Veena On Fri, Sep 18, 2009 at 1:22 PM, Ernst de Haan wrote: > I think by now you should read up on Ant and understand the basic concepts > before

How To: Java Command to Ant

2009-09-18 Thread dr_pompeii
Dear Members I have this java comand (related with JMX) java -classpath D:\TR\...a.jar;D:\TR\b.jar; -Dcom.sun.management.jmxremote com.jordan.Main This work, then I can get a connection from jconsole (PID from Local Tab Pane) The point is that is a long classpath and work for windows, therefo

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
I think by now you should read up on Ant and understand the basic concepts before proceeding... Met een vriendelijke groet, Ernst de Haan PensioenPage B.V. www.pensioenpage.com tel. (026) 364 56 34 Op 18 sep 2009 om 18:53 heeft veena pandit het volgende geschreven:\ So how would I wri

Re: converting ant from a make file

2009-09-18 Thread veena pandit
So how would I write it in the build.xml for c in A B C D E; do perl -ibak process.pl abc.txt perl -ibak process.pl def.txt perl -ibak proces.pl xyz.txt - mkdir Backup mv *bak Backup Not clear what this is doing; but it is executing the same pl file against different

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
The Ant way to process multiple Perl files would be: See? It's a different way of thinking... Met een vriendelijke groet, Ernst de Haan PensioenPage B.V. www.pensioenpage.com tel. (026) 364 56 34 Op 18 sep 2009 om 17:12 heeft veena pandit het volgende geschreven:\ Do you mind posti

Re: converting ant from a make file

2009-09-18 Thread veena pandit
Do you mind posting a small example of the exec command with the script: for c in A B C D E; do? Thanks, Veena On Fri, Sep 18, 2009 at 10:38 AM, John Shott wrote: > Veena: > > for c in A B C D E; do >> perl ... >> perl ... >> perl... >> - mkdir Backup >> mv *bak Backup >>

Re: converting ant from a make file

2009-09-18 Thread John Shott
Veena: for c in A B C D E; do perl ... perl ... perl... - mkdir Backup mv *bak Backup How do I move this script over to ant build.xml. This is probably a bit hard to answer. In principle, you can simply call the existing script using something like the exec task

Re: converting ant from a make file

2009-09-18 Thread veena pandit
Great Thanks! Next I have a some kind of a script: for c in A B C D E; do perl ... perl ... perl... - mkdir Backup mv *bak Backup How do I move this script over to ant build.xml. Thanks, Veena On Fri, Sep 18, 2009 at 9:24 AM, Ernst de Haan wrote: > Based on what y

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
Based on what you said, I am looking to eliminate the OS- differenes. But this is what I have. In the makefile.linux: LOCAL = /usr/local/project_name In the makefile.Windows_NT LOCAL = C:/Project_name. How do I avoid this? If I removed the differences what would the universal LOCAL look l

Re: converting ant from a make file

2009-09-18 Thread veena pandit
Based on what you said, I am looking to eliminate the OS-differenes. But this is what I have. In the makefile.linux: LOCAL = /usr/local/project_name In the makefile.Windows_NT LOCAL = C:/Project_name. How do I avoid this? If I removed the differences what would the universal LOCAL look like?

Re: converting ant from a make file

2009-09-18 Thread Ernst de Haan
Veena, How does the operating system know when to execute makefile.linux and makefile.Windows_NT. How do I do this in ant? Normally, you should avoid any OS-differences. Really. Try to get rid of all OS-specific stuff as much as you can. So much for the theory. Now the practice is that t

converting ant from a make file

2009-09-18 Thread veena pandit
the first line of the makefile is makefile.${OSTYPE}${OS} How does the operating system know when to execute makefile.linux and makefile.Windows_NT. How do I do this in ant? Thanks, Veena

Re: use variable params in an antcall

2009-09-18 Thread EetieD
Ah thanks! That was an useful answer! EetieD wrote: > > I would like to put a variable set of params into a antcall, but > unfortunately, I got the message 'antcall doesn't support the nested "for" > element.' :-( I put my code below... > > Is there an other way to add a variable set of pa

Re: use variable params in an antcall

2009-09-18 Thread Francis GALIEGUE
On Fri, Sep 18, 2009 at 10:52, EetieD wrote: > > I would like to put a variable set of params into a antcall, but > unfortunately, I got the message 'antcall doesn't support the nested "for" > element.' :-(  I put my code below... > > Is there an other way to add a variable set of params into an a

use variable params in an antcall

2009-09-18 Thread EetieD
I would like to put a variable set of params into a antcall, but unfortunately, I got the message 'antcall doesn't support the nested "for" element.' :-( I put my code below... Is there an other way to add a variable set of params into an antcall? I hope someone can help. Thanks!