[ 
https://issues.apache.org/struts/browse/WW-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47249#action_47249
 ] 

Nuwan Chandrasoma commented on WW-2754:
---------------------------------------

Hi Benjamin McCann,

i used the below code in the pom.xml to generate gxp to java in my maven build, 
hope this will help you also.

<plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                  <taskdef name="gxpc" 
classname="com.google.gxp.compiler.ant.GxpcTask" 
classpathref="maven.compile.classpath" />
                  <gxpc srcdir="${basedir}\src\main\java" 
srcpaths="${basedir}\src\main\java" 
destdir="${basedir}\target\generated-sources" 
target="com.xxxss.s2.example.message" i18nwarn="false" />
                  <copy todir="${basedir}\src\main\java">
                        <fileset dir="${basedir}\target\generated-sources" />
                  </copy>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

Thanks,

Nuwan C.

> Source code for GXP result 
> ---------------------------
>
>                 Key: WW-2754
>                 URL: https://issues.apache.org/struts/browse/WW-2754
>             Project: Struts 2
>          Issue Type: Temp
>            Reporter: Musachy Barroso
>            Assignee: Lukasz Lenart
>             Fix For: Future
>
>         Attachments: gxp.webwork.tar.gz, struts-gxp-plugin.zip, 
> struts-gxp-plugin.zip, struts-gxp-plugin.zip, struts-gxp-plugin.zip, 
> struts-gxp-plugin.zip
>
>
> Thanks to the google and the GXP guys for sending us the code

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to