ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Lowery <>
Subject Trying to execute 'grep'
Date Wed, 15 Aug 2012 22:56:41 GMT
Have the following target:

<target name="test-failure-check">
		<exec executable="grep">
			<arg line="failure ${home.dir}/runtime/logs/test-results/*.xml" />
			<redirector outputproperty="grep.out" />
		<echo message="grep.out='${grep.out}'" />

		<fail message="Unit test failure(s)">
					<equals arg1="${grep.out}" arg2="" />  

and getting the following echo:

[echo] grep.out='grep: /Users/jeff.l/Documents/workspace/homedir/runtime/logs/test-results/*.xml:
No such file or directory'

yet if I execute "grep failure /Users/jeff.l/Documents/workspace/homedir/runtime/logs/test-results/*.xml",
from the command line, I get results back.

-- Jeff

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