ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Pettersen <>
Subject Splitting a <fileset>
Date Wed, 23 May 2007 06:44:50 GMT

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"/>

       <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}"/>
               <pathelement path="${}/lib/tools.jar"/>
               <pathelement path="${wl.home}/server/lib/weblogic.jar"/>
               <pathelement path="${wl.home}/common/lib/3rdparty.jar"/>


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 reliable 
method for splitting a fileset and then iterating through the resultant 


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:
For additional commands, e-mail:

View raw message