ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Waugh" <ptwa...@gmail.com>
Subject Re: Optional <entry/> if and only if properties file exists?
Date Thu, 13 Nov 2008 14:58:10 GMT
My first version (which works) is:

<macrodef name="my.rapc">
		<element name="altEntries" optional="true"/>
			<sequential>
			<rapc output="${cod.name}" srcdir="${src.dir}" destdir="${build.dir}">
				<jdp file="project.properties">
					<altEntries/>
				</jdp>
				<import>
					<fileset dir="${common.basedir}/.." includes="${deps.list}/build/*.jar" />
				</import>
				<src>
					<fileset dir="${src.dir}">
						<include name="**/*.java" />
						<include name="**/*.png" />
						<include name="resources/**/*.*" />
					</fileset>
				</src>
	       </rapc>
	   </sequential>
	</macrodef>

but I'm still looking at this construct.  I can't use the implicit tag
because their might be nothing (ie no file), and then this wouldn't
work, so I went with optional.

Patrick

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


Mime
View raw message