The following comment has been added to this issue:

     Author: John Casey
    Created: Thu, 5 Feb 2004 12:43 AM
       Body:
<quote>
The source and destination directory will be recursively scanned for Java source files 
to compile. Only Java files that have no corresponding .class file or where the class 
file is older than the .java file will be compiled.

Note: Ant uses only the names of the source and class files to find the classes that 
need a rebuild. It will not scan the source and therefore will have no knowledge about 
nested classes, classes that are named different from the source file, and so on. See 
the <depend> task for dependency checking based on other than just 
existence/modification times.
</quote>

That's from the javac task documentation. Maybe I'm misreading this, but it looks like 
it won't even attempt to find cascaded compile candidates (dependent upon a class in 
need of recompile) if you don't specify depend. To me, it looks like the only way ant 
will even attempt to recompile a source file that uses a constant from another source 
file is if the former's lastmod is older or the .class is missing. This would mean 
that a 

maven clean

would be required before recompiling with changed constant values...maybe I'm missing 
something.
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1149&page=comments#action_16465

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1149

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1149
    Summary: public static final value changes do not force a recompile of dependent 
modules
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core

   Assignee: 
   Reporter: Robin Morris

    Created: Wed, 4 Feb 2004 1:16 PM
    Updated: Thu, 5 Feb 2004 12:43 AM

Description:
public static final values are erplaced t compile time and put directly into the class 
files. See:

http://www.javaworld.com/javaqa/2003-03/02-qa-0328-constant_p.html

Dependent modules do not get recompiled if a public static final from one module gets 
chnaged.

This results in two differnt class files being generated (for the dependent modules) 
if the code was built from scratch verses built through maven.




---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to