• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help in creating war/jar file

 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Im trying to make a jar file with ant. Eventhough no errors are showing up
jar file is not created.

This is ant script. Any help appreciated.

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


<target name="createwar" depends="init">
<jar jarfile="${root}/myapp.jar" basedir="${root}">
<fileset dir="${root}"/>
</jar>
</target>
<target name="all" depends="init" description="buildeverything">
<echo message="application build"/>
</target>



Hey, you are not calling the createwar target at all !!
Maybe you want to change the "all" target as

<target name="all" depends="createwar" description="buildeverything">
<echo message="application build"/>
</target>
 
Amber Vaidya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
unless ofcourse you are calling it with

"ant createwar"

Try running the ant -debug or ant -verbose commands to see the flow of execution.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic