You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Kyle Marvin (JIRA)" <be...@incubator.apache.org> on 2005/02/28 16:26:49 UTC

[jira] Created: (BEEHIVE-372) Change AptTask to do up-front copying of all files

Change AptTask to do up-front copying of all files
--------------------------------------------------

         Key: BEEHIVE-372
         URL: http://issues.apache.org/jira/browse/BEEHIVE-372
     Project: Beehive
        Type: Improvement
  Components: Controls  
    Versions: V1Beta    
    Reporter: Kyle Marvin
    Priority: Minor
     Fix For: TBD


If the ANT AptTask uses the "compileByExtension" flag, it incrementally processes each file extension on the input list one by one. For each extension, it will copy all input sources files of that extension to a .java file, then process/compile all files w/ the same extension as a group. (The copy is needed because apt will only take .java files as input)

The rub comes if a file w/ one extension wants to reference a type declared in a file w/ a different non-java extension that is processed after it. Because the copy-to-java doesn't happen until the latter extension is reached in the list, the source parser can't find it and will ultimately give unresolved type errors.

A better algorithm would be to do the copy-to-java step for all input files as a precursor to attempting to process any of them. This will offer much more flexibility in cross-extension type references.

As a workaround, the user is always able to handle dependency ordering more directly by breaking a project build down into a series of <apt> invocations based upon dependency ordering requirements.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira