changeset 112:2f35e8a84004

The common package is now ready to be included as module in a GWT based client application. artifacts/trunk@1308 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 10 Feb 2011 07:40:09 +0000
parents 901f384ddad9
children 0344a20f8a93
files ChangeLog artifacts-common/pom.xml artifacts-common/src/main/resources/de/intevation/artifacts/common/Common.gwt.xml
diffstat 3 files changed, 58 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Feb 10 07:36:51 2011 +0000
+++ b/ChangeLog	Thu Feb 10 07:40:09 2011 +0000
@@ -1,3 +1,13 @@
+2011-02-10  Ingo Weinzierl <ingo@intevation.de>
+
+	* artifacts-common/src/main/resources/de/intevation/artifacts/common/Common.gwt.xml:
+	  A module description that is used by GWT.
+
+	* artifacts-common/pom.xml: The resulting jar archive of the 'package'
+	  target will now contain the compiled classes as well as the source files.
+	  Furthermore, the sources are compiled with Java-1.6. These two things are
+	  required for the jar to be included by GWT as module.
+
 2011-02-10  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifacts-common/src/main/java/de/intevation/artifacts/common/model/User.java,
--- a/artifacts-common/pom.xml	Thu Feb 10 07:36:51 2011 +0000
+++ b/artifacts-common/pom.xml	Thu Feb 10 07:40:09 2011 +0000
@@ -27,4 +27,47 @@
       <version>1.2.14</version>
     </dependency>
   </dependencies>
+
+  <build>
+   <resources>
+    <resource>
+      <directory>src/main/resources</directory>
+    </resource>
+    <resource>
+      <directory>src/main/java</directory>
+      <includes>
+        <include>**/*.java</include>
+        <include>**/*.gwt.xml</include>
+      </includes>
+    </resource>
+  </resources>
+  <plugins>
+      <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-compiler-plugin</artifactId>
+         <configuration>
+            <source>1.6</source>
+            <target>1.6</target>
+         </configuration>
+      </plugin>
+   </plugins>
+    <!--
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <version>2.1.2</version>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar-no-fork</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+    -->
+  </build>
+
 </project>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts-common/src/main/resources/de/intevation/artifacts/common/Common.gwt.xml	Thu Feb 10 07:40:09 2011 +0000
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module rename-to="common">
+
+    <source path="model/"/>
+</module>

http://dive4elements.wald.intevation.org