I'd use an ant task like the following:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>Delete the class files</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<delete>
<fileset dir="src">
<include name="**/*.class" />
</fileset>
</delete>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Change the directory and phase as appropriate for you.
Nick
-----Original Message-----
From: Malcolm Wong Ho [mailto:[EMAIL PROTECTED]
Sent: 02 February 2006 10:49
To: [email protected]
Subject: [M2] How to only delete .class files ?
How do i remove .class files if the sourceDirectory and outputDirectory
are the same ?
Thank you kindly
This message may contain privileged and/or confidential information. If
you have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any attachments,
delete it immediately from your system and notify the sender promptly by e-mail
that you have done so. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]