how can I use an ANT task inside my maven.xml
Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can I use an ANT task inside my maven.xml
You can try the following ... project xmlns:deploy=deploy xmlns:ant=jelly:ant goal name=get-deps deploy:copy-deps todir=${basedir}/lib/ /goal preGoal name=runtest attainGoal name=get-deps/ /preGoal goal name=runtest ant:ant dir=${basedir} antfile=build.xml target=runtest/ /goal /project -Original Message- From: Feilpe Vieira Silva [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 1:07 PM To: [EMAIL PROTECTED] Subject: how can I use an ANT task inside my maven.xml Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I use an ANT task inside my maven.xml
Hey Feilpe Yes, you can, as long as they are ant 1.5 compatible, no problem. I personnaly migrated a lot of Ant legacy code to a new maven.xml and it did workout nicely. Hope it helps. Eric. Feilpe Vieira Silva wrote: Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can I use an ANT task inside my maven.xml
All Ant tasks are first class citizens in Maven. So when maven does a copy/ it is using the Ant copy task. For examples on scripting in Maven, look in maven-plugins in CVS. Look for ant: to find lots of examples. Here's an article about writing a plugin, which is representative of writing a maven.xml as well: http://www.onjava.com/pub/a/onjava/2004/03/17/maven.html It links to a good howto to get started as well.. Eric -Original Message- From: Feilpe Vieira Silva [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 7:07 PM To: [EMAIL PROTECTED] Subject: how can I use an ANT task inside my maven.xml Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I use an ANT task inside my maven.xml
Hi Feilpe Using ant within maven is relly simple: for example: ant:copy todir=${maven.build.dir}/${project.id}/WEB-INF/classes ant:fileset dir=${dir.project}/src include name=**/*.xml / /ant:fileset /ant:copy just use the ant namespace prefix however to use the full strength of maven you should consider migrating to maven and using maven plugins to do your build jobs martin Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I use an ANT task inside my maven.xml
Thank you all for the frindly support. The issue is about culture of my project members. My new project is growing up very quick and now we have several members expert in ANT and some members optimist about MAVEN (including me). I need arguments to convince these people about the gain in using MAVEN - at least convince them to try :). From my point of view, maven is a step ahead of ANT, but I need to post it in a convincent and elegant way :) to avoid team stress. Your tips will help me a lot, thank you very much, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net On Thu, 04 Nov 2004 19:23:51 +0100, martin ruff [EMAIL PROTECTED] wrote: Hi Feilpe Using ant within maven is relly simple: for example: ant:copy todir=${maven.build.dir}/${project.id}/WEB-INF/classes ant:fileset dir=${dir.project}/src include name=**/*.xml / /ant:fileset /ant:copy just use the ant namespace prefix however to use the full strength of maven you should consider migrating to maven and using maven plugins to do your build jobs martin Dear members, I have an ANT build.xml files, with several well tested tasks and now I´m trying to migrate to maven. can I just copy these tasks inside of the maven.xml? and how can I call them? if not, what I must do instead? regards, Felipe Gaúcho Schoolbus owner https://schoolbus.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]