GeeCON Prague 2014*
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


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Code Ant and Maven" Watch "Code Ant and Maven" New topic
Author

Code Ant and Maven

sunil antil
Greenhorn

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"/>
</artifact:mvn>
</target>

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

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

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
Greenhorn

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: 459
    
    1
Did you refer Maven site?


Vinod Tiwari | Twitter
 
GeeCON Prague 2014
 
subject: Code Ant and Maven