CleanCode v1.2.07 AntDoc

Press that icon in order to update AntDoc GUI

sourceforgeBuild
Target redirect-test

redirect-test

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ######################## SANDBOX ######################### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Detail:
<target name="redirect-test">

	<property
		name="testfile"
		value="/usr/tmp/test.dat"
	/>

	<echo file="${testfile}">line one ERR line two line three line ERR four</echo>

	<exec
		dir="."
		executable="perl"
	>
		<arg line="-ne 'print' ${testfile}"/>

		<redirector outputproperty="redirector.out">
			<outputfilterchain>
				<linecontains>
					<contains value="ERR"/>
				</linecontains>
			</outputfilterchain>
		</redirector>
	</exec>

	<delete file="${testfile}"/>
	<--<fail message="[[${redirector.out}]]" if="redirector.out"/>-->

	<fail message="[[${redirector.out}]]">
		<condition>
			<contains
				string="${redirector.out}"
				substring="ERR"
			/>
		</condition>
	</fail>
</target>


Edouard Mercier 2003.10.01 21:48:07 - AntDoc V0.8g - XSL Transformer Factory: org.apache.xalan.processor.TransformerFactoryImpl