• 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

WAR task

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
my WAR task does create a war, but does not create the web-inf directory along with the /lib and all others. It just makes a .war file and throws everything in it.
how can i make it create the directory structure that i want?
this is what my task looks like. if you have any suggestions or other sites, please post them, thanks in advance.
<target name="deploy" depends="copy">
<war destfile="servlet.war" webxml="${web-inf.dir}/web.xml">
<webinf dir="${web-inf.dir}" />
<fileset dir="${jsp.dir}" />
<lib dir="${lib.dir}"/>
</war>
<copy file="servlet.war" todir="../../server/default/deploy" />
</target>
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have files in whatever is defined by ${web-inf.dir}? Are you sure? They should show up in WEB-INF directory in the war file. You should also get a warning because web.xml is included by that file set. Is ${web-inf.dir}, as defined, a subdirectory of ${jsp.dir}? If so you will to exclude it in the "fileset" file set.

I would try echoing the variables to make sure they are set as you think. You could also echo the filesets, but that involves more work, and is sort of tricky. You might try making some explicit includes in the webinf file set to see if that helps.
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic