File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code Ant and Maven

 
sunil antil
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?
 
sunil antil
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for reply

I want to learn "how to use the <artifact:mvn> task?" .Suggest me any idea
 
Vinod Tiwari
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you refer Maven site?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic