• 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

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">
</classpath>
</javac>
<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}">
<patternset>
<exclude name="**/web.xml" />
<exclude name="classes/**" />
<exclude name="lib/**" />
<include name="**/*.tld" />
<include name="**/*.xml" />
</patternset>
</webinf>
<classes dir="${retiradaEdital.webinf.dir}/classes" />
<fileset dir="${retiradaEdital.web.dir}">
<patternset>
<include name="**/*" />
<exclude name="WEB-INF/**/*" />
<exclude name="lib/**/*" />
<exclude name="classes/**/*" />
</patternset>
</fileset>

</war>
</target>

Any reasons why?

Regards

Vinicius
 
drifter
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 ]
 
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic