ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anakreon Mejdi <ame...@ertonline.gr>
Subject Apply/Exec
Date Fri, 08 Nov 2002 14:12:35 GMT
It seems that apply  does not take under consideration the limitations 
the OS implies on the number of parameters a program can receive.

I discovered this when called tidy.exe (on Windows 2000) when the
the files which will tide up are more then 13000.

If parallel attribute is set  to true apply task fails to create the 
process.

I did what I wanted by setting parallel to false but in this way it 
takes longer since the process should be created 13000 times.

Here is the target's code:
     <target name="tidy"  description="Tides the html files">
         <apply
               dir="${cTemp}"
               executable="C:/tidy/tidy.exe"
               failonerror="false"
               skipemptyfilesets="true"
               parallel="false"
               type="file"
		  relative="false"
		  output="err.txt"		
         >
             <arg value="-config"/>
             <arg value="C:/tidy.conf"/>
             <arg value="-m"/>
             <srcfile/>
             <fileset casesensitive="false" dir="${cTemp}">
                 <patternset includes="**/*.asp"/>
                 <patternset includes="**/*.html"/>
                 <patternset includes="**/*.htm" />
                 <patternset includes="**/*.inc" />
                 <patternset includes="**/*.templ" />
             </fileset>
         </apply>
     </target>




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message