[ http://issues.apache.org/jira/browse/BEEHIVE-413?page=all ]
     
Kenneth Tam resolved BEEHIVE-413:
---------------------------------

    Resolution: Fixed

So the root of the problem is that if there are sourcepaths rooted in subdirs 
of the srcdir, (for example, if the srcdir is <webapp-root> and 
<webapp-root>\WEB-INF\src is a sourcepath), then corresponding subdirs in the 
gendir need to be added to the sourcepath (ie, <gen-dir>\WEB-INF\src needs to 
be on the sourcepath).

This can get a little involved to cover comprehensively, because it really 
needs to loop over all srcdirs and all sourcepaths looking for overlap.  I've 
added code to handle the simple cases for webapps (single srcdir, all 
sourcepaths are subdirs of the srcdir).



> build failure resolving shared flow from jpf with a control
> -----------------------------------------------------------
>
>          Key: BEEHIVE-413
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-413
>      Project: Beehive
>         Type: Bug
>   Components: Controls
>     Versions: V1Beta
>     Reporter: Eddie O'Neil
>     Assignee: Kenneth Tam
>      Fix For: V1
>  Attachments: sfReproWeb.zip
>
> There seems to be a problem compiling a JPF with a public control bean field 
> that references a shared flow.  The build output is below.
> The control is declared as:
>     @Control
>     public pkg.HelloBean myHello;
> and if you switch the "public" to "private" the build works fine.
> Repro will be attached shortly.
>   
>       [apt] warning: Annotation types without processors: 
> [org.apache.beehive.netui.pageflow.annotat
> ions.Jpf.Catch]
>       [apt] 1 warning
>       [apt] 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\.tmpbeansrc\Controller.java
> :22: package shared does not exist
>       [apt]     private shared.SharedFlow sharedFlow;
>       [apt]                   ^
>       [apt] 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\.tmpbeansrc\Controller.java
> :15: package shared does not exist
>       [apt]         @Jpf.SharedFlowRef(name="shared", 
> type=shared.SharedFlow.class)
>       [apt]                                                      ^
>       [apt] Note: 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\.tmpbeansrc\pkg\Hello
> Bean.java uses unchecked or unsafe operations.
>       [apt] Note: Recompile with -Xlint:unchecked for details.
>      [echo] Copy all .properties files
>      [echo] Copy all .xml files
>      [copy] Copying 1 file to 
> D:\dev\apache\beehive\trunk\netui\tmp\sfReproWeb\web\WEB-INF\classes

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to