Add jwsFileSet.setIncludes to JwscMojo in order that src files can be filtered
------------------------------------------------------------------------------

                 Key: MOJO-1560
                 URL: http://jira.codehaus.org/browse/MOJO-1560
             Project: Mojo
          Issue Type: Improvement
          Components: weblogic
         Environment: weblogic 9.2.3.0
            Reporter: Michael Waloschek
         Attachments: patch_ JwscMojo.java

With weblogic JWS files annotated using javax.jws.HandlerChain annotation (e.g. 
@HandlerChain(name = "AuthHandler", file = "handler-chain.xml"), JWSC task 
needs the referenced xml file to reside in source folder. However awkward it is 
to have xml file in src/main/java, this is where JWSC expects it. 
On the other hand, when I put the file into the folder, JWSC fails with this 
error:
java.lang.IllegalArgumentException: file must be a java source file.
        at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:190)
        at org.codehaus.mojo.weblogic.JwscMojo.execute(JwscMojo.java:175)

The solution is to use something like this:
                                <jwsfileset srcdir="${ws-src}">
                                        <include name="**/*.java" />
                                </jwsfileset>
I have added this to JwscMojo (after l. 162) - see patch attached:
jwsFileSet.setIncludes("**/*.java");

Alternatively, the includes string can be added as a parameter.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to