• 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

META-INF problems

Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there! I'm trying to add my own meta-inf to a war file, but it always get override by the default generated by ant. Here's my target definition:

<target name="retiradaEdital-war" depends="init">
<javac srcdir="${retiradaEdital.dir}/src" destdir="${retiradaEdital.webinf.dir}/classes" verbose="true" version="1.4">
<classpath refid="lib">
<war destfile="${temp.dir}/${retiradaEdital.war.file}" webxml="${retiradaEdital.dir}/web/WEB-INF/web.xml" >
<metainf file="${retiradaEdital.metainf.dir}/MANIFEST.MF"></metainf>
<webinf dir="${retiradaEdital.webinf.dir}">
<exclude name="**/web.xml" />
<exclude name="classes/**" />
<exclude name="lib/**" />
<include name="**/*.tld" />
<include name="**/*.xml" />
<classes dir="${retiradaEdital.webinf.dir}/classes" />
<fileset dir="${retiradaEdital.web.dir}">
<include name="**/*" />
<exclude name="WEB-INF/**/*" />
<exclude name="lib/**/*" />
<exclude name="classes/**/*" />


Any reasons why?


Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you're trying to add MANIFEST.MF.

From the ant manual on war task, blurb on metainf:

The nested metainf element specifies a FileSet. All files included in this fileset will end up in the META-INF directory of the war file. If this fileset includes a file named MANIFEST.MF, the file is ignored and you will get a warning.

[ October 04, 2005: Message edited by: Carol Enderlin ]
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic