[ http://issues.apache.org/jira/browse/BEEHIVE-413?page=history ]

Rich Feit updated BEEHIVE-413:
------------------------------

    Assign To: Kenneth Tam  (was: Rich Feit)
    Component: Controls
                   (was: NetUI)

I think this actually turns out to be a general issue with the Controls 
AptTask.  What's happening is that this task is copying 
WEB-INF/src/shared/SharedFlow.jpfs to 
WEB-INF/.tmpbeansrc/WEB-INF/src/shared/SharedFlow.java, when it should really 
be copying it to WEB-INF/.tmpbeansrc/shared/SharedFlow.java.  This is because 
it sees only one source directory (<webapp-root>).

To fix this, we'd need to be able to pass multiple source directories to it, 
namely <webapp-root> and <webapp-root>/WEB-INF/src.  And unless we give it the 
ability to exclude certain subdirectories per source directory, it would have 
to be smart enough to do the exclusion automatically (e.g., 
<webapp-root>/WEB-INF/src would be excluded from <webapp-root>).

Ken, is this one yours?

> 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
>  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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to