cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1335200 - in /cxf/trunk/rt/management-web: pom.xml src/main/java/org/apache/cxf/management/web/browser/bootstrapping/SimpleXMLSettingsStorage.java
Date Mon, 07 May 2012 19:09:31 GMT
Author: dkulp
Date: Mon May  7 19:09:31 2012
New Revision: 1335200

URL: http://svn.apache.org/viewvc?rev=1335200&view=rev
Log:
Add gwt generated code into eclipse so "refresh" works reliably

Modified:
    cxf/trunk/rt/management-web/pom.xml
    cxf/trunk/rt/management-web/src/main/java/org/apache/cxf/management/web/browser/bootstrapping/SimpleXMLSettingsStorage.java

Modified: cxf/trunk/rt/management-web/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management-web/pom.xml?rev=1335200&r1=1335199&r2=1335200&view=diff
==============================================================================
--- cxf/trunk/rt/management-web/pom.xml (original)
+++ cxf/trunk/rt/management-web/pom.xml Mon May  7 19:09:31 2012
@@ -181,11 +181,61 @@
                     <gen>${project.build.directory}/generated-sources/gwt</gen>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>add-source-dir</id>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>${project.build.directory}/generated-sources/gwt</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 
     <profiles>
         <profile>
+            <id>setup.eclipse</id>
+            <build>
+                <defaultGoal>process-test-sources</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>setup.eclipse.project.sdo</id>
+                                <phase>process-test-sources</phase>
+                                <configuration>
+                                     <target>
+                                         <!-- GWT generated code is pretty crappy -->
+                                         <propertyfile file="${basedir}/.settings/org.eclipse.jdt.core.prefs">
+                                             <entry key="org.eclipse.jdt.core.compiler.problem.rawTypeReference"
value="ignore" />
+                                             <entry key="org.eclipse.jdt.core.compiler.problem.unusedImport"
value="ignore" />
+                                             <entry key="org.eclipse.jdt.core.compiler.problem.unusedLocal"
value="ignore" />
+                                             <entry key="org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation"
value="ignore" />
+                                         </propertyfile>
+                                     </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
             <id>dev</id>
             <build>
                 <plugins>
@@ -213,7 +263,6 @@
                     <plugin>
                         <groupId>org.codehaus.mojo</groupId>
                         <artifactId>build-helper-maven-plugin</artifactId>
-                        <version>1.4</version>
                         <executions>
                             <execution>
                                 <id>add-source</id>

Modified: cxf/trunk/rt/management-web/src/main/java/org/apache/cxf/management/web/browser/bootstrapping/SimpleXMLSettingsStorage.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management-web/src/main/java/org/apache/cxf/management/web/browser/bootstrapping/SimpleXMLSettingsStorage.java?rev=1335200&r1=1335199&r2=1335200&view=diff
==============================================================================
--- cxf/trunk/rt/management-web/src/main/java/org/apache/cxf/management/web/browser/bootstrapping/SimpleXMLSettingsStorage.java
(original)
+++ cxf/trunk/rt/management-web/src/main/java/org/apache/cxf/management/web/browser/bootstrapping/SimpleXMLSettingsStorage.java
Mon May  7 19:09:31 2012
@@ -154,7 +154,6 @@ public class SimpleXMLSettingsStorage im
     }
 
     @XmlRootElement(namespace = "http://cxf.apache.org/log")
-    @SuppressWarnings("unused")
     private static class Entry {
         private Settings settings;
         private String username;



Mime
View raw message