It's not a secret anymore!
The moose likes Ant, Maven and Other Build Tools and the fly likes Code Ant and Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Code Ant and Maven" Watch "Code Ant and Maven" New topic

Code Ant and Maven

sunil antil

Joined: Jul 23, 2009
Posts: 20
Hi, I am new to ant and maven. I come across the following code.
What I know about this code is?
1. It starts the jetty server.
2.It is ant code which used the maven.

<target name="jetty-demo" depends="start-db">
<delete dir="war/WEB-INF/lib"/>
<artifact:mvn mavenHome="${maven.home}" fork="true">
<jvmarg value="-XX:MaxPermSize=256M" />
<jvmarg value="-Xmx512M" />
<jvmarg value="-Xdebug" />
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n" />
<arg value="compile"/>
<arg value="war:exploded"/>
<arg value="jetty:run"/>

Suggest me correct learning path of this technology. I need the source where I can learn such type of code

Peter Johnson

Joined: May 14, 2008
Posts: 5852

This looks to be a Maven task (<artifact:mvn>) which is being used in an Ant target.
I'm not sure what you are asking for. Do you want to:

a) learn how to use Ant?

b) learn how to use Maven?

c) learn how to use the <artifact:mvn> task?

Or are you asking for some other information (for example, how to launch an app using Jetty)?

JBoss In Action
sunil antil

Joined: Jul 23, 2009
Posts: 20
Thanks Peter for reply

I want to learn "how to use the <artifact:mvn> task?" .Suggest me any idea
Vinod Tiwari
Ranch Hand

Joined: Feb 06, 2008
Posts: 466

Did you refer Maven site?

Vinod Tiwari | Twitter | Shikshanirman | Guftgu
subject: Code Ant and Maven
It's not a secret anymore!