kaprasi wrote:


The war should include :
<pre>
WEB-INF/classes/*.class
WEB-INF/lib/*.jar
WEB-INF/jsp/*.jsp
</pre>
I am very well able to achieve first two. That's because war task has
classes and lib as nested elements. And that puts classes and lib
directories automatically into WEB-INF I am not able to place the directory
jsp in WEB-INF. I tried to do so using the webinf nested element of war
task. According to manual, it specifies FileSet. This is how my target looks
like :

<target name="war">
    <war destfile="${warfile}" webxml="${webxml}">
        <webinf dir="${metadata}" includes="*.xml">
            <fileset dir="jsp" />
        </webinf>
    </war>
</target>

When I use it I get this error : build.xml:32: only single argument resource
collections are supported as archives. What should I be doing?
Thanks.



the thing to know is that webinf is a fileset of its own; it was getting confused. add another fileset with the full prefix:


 <target name="war">
     <war destfile="${warfile}" webxml="${webxml}">
         <webinf dir="${metadata}" includes="*.xml">
         </webinf>
         <zipfileset dir="jsp" prefix="WEB-INF/jsp" />
     </war>
 </target>


--
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to