ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Euan Guttridge <EGuttri...@buildonline.com>
Subject exec task with bad args
Date Tue, 19 Nov 2002 12:17:44 GMT
*This works fine:*

<target name="integrity_check">
	<exec executable="/usr/bin/find"
outputproperty="num_files_vss_fetched">
		<arg line="${cvs_output_dir} -type f"/>
	</exec>	
	<echo message = "${num_files_vss_fetched}"/>
</target>


*Add a pipe to wc -l and it falls over with error as below:*

<target name="integrity_check">
	<exec executable="/usr/bin/find"
outputproperty="num_files_vss_fetched">
		<arg line="${cvs_output_dir} -type f | wc -l"/>
	</exec>	
	<echo message = "${num_files_vss_fetched}"/>
</target>

*Error*
  [echo] /usr/bin/find: paths must precede expression
  [echo] Usage: /usr/bin/find [path...] [expression]


Any ideas?
Thanks



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