You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Oberlander <Je...@onename.com> on 2002/01/15 21:24:37 UTC

RE: JSPs under WEB-INF/pages/ -- how to include in WAR file using ANT?

You need to move your input directory up a level like:

 <webinf  dir="${deploy.home}/WEB-INF/" />   

If that upper dir has extra things you don't want in the distribution, use
includes:
      <webinf dir="${deploy.home}/WEB-INF/">
      <include name="pages/*.jsp"/>
      </webinf>




-----Original Message-----
From: Barry L. Kline [mailto:blkline@attglobal.net]
Sent: Tuesday, January 15, 2002 11:19 AM
To: struts-user@jakarta.apache.org
Subject: JSPs under WEB-INF/pages/ -- how to include in WAR file using
ANT?


I have taken to heart everyone's suggestions and have placed my JSPs
under the
WEB-INF/pages directory.  So far, no problem.  When I use ANT's war
task I can't
seem to get the directory structure to remain intact.

e.g.:

WEB-INF/pages/mypage.jsp
WEB-INF/pages/mypage2.jsp

becomes:
 
WEB-INF/mypage.jsp
WEB-INF/mypage2.jsp

I've tried:  

  <webinf  dir="${deploy.home}/WEB-INF/pages" />   

and 

  <webinf  dir="${deploy.home}/WEB-INF/pages/" />   

both with the same result.  The docs indicate that using the <webinf>
element is what I should use.  Any suggestions?

Thanks

Barry

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: JSPs under WEB-INF/pages/ -- how to include in WAR file usingANT?

Posted by "Barry L. Kline" <bl...@attglobal.net>.
Jeff Oberlander wrote:
> 
> You need to move your input directory up a level like:
> 
>  <webinf  dir="${deploy.home}/WEB-INF/" />
> 
> If that upper dir has extra things you don't want in the distribution, use
> includes:
>       <webinf dir="${deploy.home}/WEB-INF/">
>       <include name="pages/*.jsp"/>
>       </webinf>
> 

Thanks! 
Barry

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>