[ 
http://jira.codehaus.org/browse/MCOMPILER-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kelly Davis updated MCOMPILER-41:
---------------------------------

    Attachment: MavenWebTest.zip

I am attaching a new test (MavenWebTest) which demonstrates the issue. 

I am running version 2.0.7 in MacOSX 10.5.6 with Jdk 1.5. 

Run 'mvn compile' multiple times and it will recompile the unchanged source 
file every time. If you comment out the sourceDirectory property (and move the 
java directory to src/main) it only compiles it the first time. Please test and 
reopen this bug.

> recompiling behaves differently when build.sourceDirectory is not set to the 
> default path src/main/java/
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MCOMPILER-41
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-41
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>         Environment: Linux, Windox XP
>            Reporter: akinokaze
>            Assignee: Olivier Lamy
>         Attachments: MavenWebTest.zip, MCOMPILER-41.zip
>
>
> the default build.sourceDirectory is at src/man/java
> When our code is located in this default directory, the first time we run mvn 
> compile all the source codes will be compiled as expected.
> When we run mvn compile again without any changes to the src code, the 
> message 
> "Nothing to compile - all classes are up to date", which is also the expected 
> behaviour.
> If we set build.sourceDirectory to another directory, the behaviour is 
> different.
> The first time we run mvn compile all the source codes will be compiled as 
> expected.
> But when we run mvn compile again without any changes to the src code, all 
> the source codes are compiled again.
> This will increase the rebuild time significantly.

-- 
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

        

Reply via email to