ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Ziller" <alexander.zil...@highqsoft.de>
Subject Using <intersect> on FileSets
Date Mon, 12 Oct 2009 09:47:44 GMT
Hey there

Im desperatly trying to get an intersection of 2 directories but it doesn't
work.

The situation:
--------------

Dir1 contains a set of JARs: a.jar b.jar c.jar d.jar e.jar
Dir2 contains a subset of the JARs in Dir1: b.jar e.jar
I want to get the negative intersection (the stuff from Dir1 that's NOT in
Dir2) and figured
I tried this with an intersect and then try to invert the result somehow...

My attempt in ant:

<copy todir="${root.dir}/intersect">
	<intersect>
		<fileset dir="Dir1">
			<include name="*.jar"/>
		</fileset>
		<fileset dir="Dri2">
			<include name="*.jar"/>
		</fileset>
	<intersect>
</copy>


Problem:
Nothing get copied :-(

Thanks for your help.

Alex




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


Mime
View raw message