Add file in ANT build (Tomcat server)
Posted
by Shaded
on Stack Overflow
See other posts from Stack Overflow
or by Shaded
Published on 2010-05-12T13:53:12Z
Indexed on
2010/05/12
14:14 UTC
Read the original article
Hit count: 202
Hey everyone,
I have an ANT build that I need to setup so on deployment of the .war a certain file will be placed in a specific location. Currently my ant builds the war as follows...
<target name="war" depends="jar">
<war destfile="${deploy}/file.war" webxml="${web-inf}/web.xml">
<fileset dir="${WebRoot}">
<include name="**/*.vm" />
<include name="**/*.js" />
<include name="**/*.jsp" />
<include name="**/*.html" />
<include name="**/*.css" />
<include name="**/*.gif" />
<include name="**/*.jpg" />
<include name="**/*.png" />
<include name="**/*.tld" />
<include name="**/applicationContext*.xml" />
<include name="**/jpivot/**" />
<include name="**/wcf/**" />
<include name="**/platform/**" />
<include name="**/Reports/**" />
</fileset>
<lib dir="${web-inf.lib}" />
</war>
</target>
The file I need is called Scriptlet.class and it needs to be in WebRoot/WEB-INF/classes/
I've tried several things to get this to work and have yet to find one that works... if anyone can point me in the right direction I'd appreciate it!
© Stack Overflow or respective owner