ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cezariusz Marek" <cezariusz.ma...@comarch.pl>
Subject Exclude question
Date Tue, 16 Oct 2007 11:59:50 GMT
Hello,

Has exclude processing changed between Ant 1.6.5 and 1.7? I have the following test case:

<?xml version="1.0" encoding="utf-8"?>
<project name="Anttest" default="all" basedir=".">
	<target name="all">
		<copy todir="../XXX/WEB-INF">
			<fileset dir="${basedir}/WEB-INF">
				<exclude name="/src/**"/>
				<exclude name="/classes/**"/>
			</fileset>
		</copy>
	</target>
</project>

Ant 1.7 excludes /src and /classes as expected, but 1.6.5 doesn't exclude them. Is this a
bug in 1.6.5 or the meaning has changed?

Here are the results of testing:

c:\owf>c:\eclipse\plugins\org.apache.ant_1.6.5\bin\ant.bat -f anttest.xml
Buildfile: anttest.xml

all:
     [copy] Copying 6986 files to C:\XXX\WEB-INF

BUILD SUCCESSFUL
Total time: 5 minutes 57 seconds
c:\owf>c:\eclipse3\plugins\org.apache.ant_1.7.0.v200706080842\bin\ant.bat -f anttest.xml
Buildfile: anttest.xml

all:
     [copy] Copying 121 files to c:\Project\Albania\onlinesvn\XXX\WEB-INF

BUILD SUCCESSFUL
Total time: 1 second
The system cannot find the batch label specified - end

-- 
____________________________________________________________________
Cezariusz Marek                   mob: +48 608 646 494
http://www.comarch.com/           tel: +48 33 815 0734
____________________________________________________________________



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


Mime
View raw message