ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: problems with <fileset> with <include>
Date Wed, 02 Jul 2003 10:40:33 GMT
1) You don┬┤t have to use attribute 'includes' AND nested element 'include'.
2) Use **/*.jsp as include pattern
   The '**' means 'in any directory somewhere under ${webapp.root}'
   Your '*.jsp' means 'jsp files only in ${webapp.root}'


Jan


> -----Urspr├╝ngliche Nachricht-----
> Von: Maris Orbidans [mailto:M.Orbidans@datapro.lv]
> Gesendet am: Mittwoch, 2. Juli 2003 12:36
> An: Ant Users List
> Betreff: problems with <fileset> with <include>
> 
> 
> Hello
> 
> I created a task to deploy JSP files, however it's not 
> working as I expect.
> 
> If I use <fileset> with <include> or <exclude> tag, then 
> sometimes files aren't copied.
> 
> For example, this task doesnt copy JSP files properly.
> 
> <target name="deployJSPfiles">
>     <copy todir="${tomcat.home}/webapps/iaks">
>         <fileset dir="${webapp.root}" includes="*.jsp">
>             <include name="*.jsp"/>
>         </fileset>
>     </copy>
> </target>
> 
> Sometimes there is a new JSP file in ${webapp.root}/tiles 
> which doesnt exist in ${tomcat.home}/webapps/iaks/tiles,
> however the task doesnt copy the file.
> 
> could someone help me ?
> 
> Maris Orbidans
> J2EE developer
> www.datapro.lv
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message