Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: Splitting a <fileset >

AW: Splitting a <fileset >

2007-05-23       - By Jan.Materne@(protected)
Reply:     1     2  

Could you compile all files at once?

   Recursively compiles all JSPs in the current directory, or in the
   directory specified with the -webapp flag. (See the listing for -webapp
   in this list of options.). JSPs in subdirectories are also compiled.


>-----Urspr?ngliche Nachricht-----
>Von: Tim Pettersen [mailto:tim@(protected)]
>Gesendet: Mittwoch, 23. Mai 2007 08:45
>An: user@(protected)
>Betreff: Splitting a <fileset>
>One of our build targets breaks on Windows systems due to a too-long
>command line problem.
>We're using a <fileset> with some include/exclude patterns to build a
>list of JSPs to compile, then passing the resulting set to java using
>the snippet below:
>       <path id="jsps.path">
>           <fileset dir="${build.war}">
>               <exclude name="**/includes/**/*.jsp"/>
>               <exclude name="**/manageyourkitprofiling.jsp"/>
>               <include name="**/*.jsp"/>
>           </fileset>
>       </path>
>       <pathconvert pathsep=" " property="jsps" refid="jsps.path"/>
>       <java classname="weblogic.jspc" fork="yes">
>           <arg line="-d ${build.weblogic}/WEB-INF/classes -k
>-g -webapp
>${build.war} ${jsps}"/>
>           <classpath>
>               <pathelement path="${}/lib/tools.jar"/>
>               <pathelement path="${wl.home}/server/lib/weblogic.jar"/>
>               <pathelement path="${wl.home}/common/lib/3rdparty.jar"/>
>           </classpath>
>       </java>
>By including ${jsps} in the <arg> element we walk off the end of the
>Windows command line's max character limit. Does anyone have a
>method for splitting a fileset and then iterating through the
>Tim Pettersen
>+61 431 270 753 mobile
>Our products help over 6,500 organisations in more than 88 countries
>collaborate brilliantly.
>To unsubscribe, e-mail: user-unsubscribe@(protected)
>For additional commands, e-mail: user-help@(protected)

To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.