ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saloucious <>
Subject Conflicts include exclude
Date Thu, 26 Apr 2007 14:14:02 GMT


I've got a problem wih a conflict include exclude :  

Here is my task : 

<copy todir="${classes.dir}" flatten="true" includeemptydirs="false">
 <fileset dir="${root.dir}">
  <include name="${config.path}/*.xml"/>
  <exclude name="${config.path}/*-mock.xml" />
  <exclude name="${config.path}/*-${value}.xml"/>
  <include name="${config.path}/*-${value}-mock.xml"/>

I desire to copy all XML files, 
Exclude XML files ended with mock.xml excepted pattern like
Exclude XML files ended  with something-${value}.xml

It seems to have a conflict between 

<exclude name="${config.path}/*-mock.xml" />
<include name="${config.path}/*-${value}-mock.xml"/>

Ant does not copy files with pattern *-${value}-mock.xml

I think there is a very trivial solution but can find it ... and I may be i
have not well understand exclude / include priority


View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message