You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jochen Wiedmann <jo...@softwareag.com> on 2005/11/30 15:18:16 UTC

Removing a source directory?

Hi,

I am about to convert a project from Ant to Maven 2. The project is 
typically compiled with Java 5. However, we have made very conservative 
use of Java 5 features, mainly warnings (@Override, @SuppressWarnings, 
...) This conservative use enables us to write a simple source code 
generator, that removes Java 5 features and converts to Java 1.4. In 
other words, we are able to create Java 1.4 compliant binaries.

My approach on porting this to Maven was as follows: Create a generator 
plugin, that does the conversion, removes the original source directory 
from the project and adds the new directory. Unfortunately, this won't 
work, because the MavenProject class only allows me to add source 
directories.

Any ideas?


Regards,

Jochen


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org