Create properties that defines what should be included/excluded in the 
compilation
----------------------------------------------------------------------------------

         Key: MPJAVA-36
         URL: http://jira.codehaus.org/browse/MPJAVA-36
     Project: maven-java-plugin
        Type: Improvement
    Versions: 1.5    
    Reporter: Felipe Leme


Right now the java:compile task includes everything (except .html files):

        <ant:javac
          destdir="${maven.build.dest}"
          excludes="**/package.html"
          ...

I propose we add a maven.compile.src.includes and maven.compile.src.excludes 
properties, so the plugin.jelly would be something like:

        <ant:javac
          destdir="${maven.build.dest}"
          excludes="${maven.compile.src.excludes}"
          includes="${maven.compile.src.includes}"
          ...

And then on the plugin.properties:

maven.compile.src.excludes=**/package.html
maven.compile.src.includes=

I could do these changes, but I like to ask 2 questions before:

1.Would that be compatible with the "Maven way" or shouldn't a project be 
selective on what should be compiled or not?

2.Is it ok to use the properties that way on the plugin.jelly or should we use 
indirection (for instance, calling pom.getPluginContext() or something like 
that).

-- Felipe








-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to