[ 
http://jira.codehaus.org/browse/MGWT-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Raible updated MGWT-117:
-----------------------------

    Attachment: multiple_source_directories.patch

I've managed to get this working, but I'm not sure if it's the best solution. 
Here's how I did it:

1. Modified AbstractGwtShellMojo and RunMojo to add a preProcessClassPath() 
method. 
2. Added an "additionalSources" property to RunMojo that adds additional 
sources.

I found that I couldn't use postProcessClassPath because the project that I 
want to read sources from is also a dependency in my classpath (needed for 
regular Java compile) and therefore, I needed to add the source directory 
*before* the JAR dependency.

Example usage in a project:

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>gwt-maven-plugin</artifactId>
                <version>1.2-SNAPSHOT</version>
                <configuration>
                    <runTarget>${entry.point}.html</runTarget>
                    <additionalSources>../jar/src/main/java</additionalSources>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

> Add support for multiple source directories to make modular GWT projects 
> easier
> -------------------------------------------------------------------------------
>
>                 Key: MGWT-117
>                 URL: http://jira.codehaus.org/browse/MGWT-117
>             Project: Maven 2.x GWT Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.1
>            Reporter: Matt Raible
>         Attachments: multiple_source_directories.patch
>
>
> In my experience, I've found that if I modularize a GWT application[1], I 
> have to "mvn install" my "core" application and restart hosted mode every 
> time I make changes.
> I'd like to see support for multiple source directories like the 
> jetty-maven-plugin has:
> http://docs.codehaus.org/display/JETTY/Multiple+WebApp+Source+Directory
> I believe this could be very useful for modularizing GWT applications.
> [1] http://raibledesigns.com/rd/entry/modularizing_gwt_applications_with_gwt 

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