Hello Mikael,

-------- Original-Nachricht --------
Datum: Fri, 16 Feb 2007 14:40:22 +0100
Von: "Mikael Petterson \\(KI/EAB\\)" <[EMAIL PROTECTED]>
An: "Ant Users List" <user@ant.apache.org>
CC: 
Betreff: RE: Exclude list of files with fileset

> Hi,
> 
> I need to exclude specific file names since these are clearcase elements
> and cannot ( should not ) be removed. I don't want the error message to
> show so I thought excluding them from the fileset would do it.
> 
> <target name="test:clean" depends="init" description="clean all build
> products.">
>    <echo message="cleaning test ..."/> 
>    <delete quiet="false" failonerror="false">
>     <fileset dir="${classes.dir}"/>
>     <fileset dir="${out.instr.dir}"/>
>     <fileset dir="${test.classes.dir}"/>
>     <fileset dir="${coverage.dir}"/>
>     <fileset dir="${test.reports.dir}"/>
>     <fileset dir="${test.alarm.dir}">
>      <!--<include name="**/*.java"/>-->
>       <exclude name="AlarmListInfoTest.java,
> AlarmsDefinitionsConsistencyTest.java,
> AlmDeviceWithAlarmsTestVobEdition.java,
> NbapCommonWithAlarmsTestVobEdition.java,SectorWithAlarmsTestVobEdition.j
> ava, TestAlarmBase.java,XxMoWithAlarmsTestTemplate.java"/>

this is wrong

the right way is

      <exclude name="AlarmListInfoTest.java"/>
      <exclude name="AlarmsDefinitionsConsistencyTest.java"/>

...

     the exclude nested element does not expect a comma separated list in the 
name attribute.

Regards,

Antoine


>     </fileset>
>     <fileset dir="${test.function.dir}">
>      <include name="**/*.java"/>
>      <!-- only vob objects -->
>      <exclude name="**/manual/*"/>
>     </fileset>
>     <fileset dir="${qrank.dir}"/>
>    </delete>
>   </target>
> 
> Here is the output that I still get. How can I get rid of the
> 
> [delete] Unable to delete file ... 
> 
> It seems like the exclude does not work!
> 
> What am I missing out?
> 
> Cheers,
> 
> //mikael 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to