• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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 ]
Paper jam tastes about as you would expect. Try some on this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic