Author: norman
Date: Sun Sep 13 17:01:52 2009
New Revision: 814348

URL: http://svn.apache.org/viewvc?rev=814348&view=rev
Log:
Some build improvements and more infos in README.txt. Thx to Manuel Carrasco 
(LABS-447)

Modified:
    labs/hupa/trunk/.classpath
    labs/hupa/trunk/README.txt
    labs/hupa/trunk/client/pom.xml

Modified: labs/hupa/trunk/.classpath
URL: 
http://svn.apache.org/viewvc/labs/hupa/trunk/.classpath?rev=814348&r1=814347&r2=814348&view=diff
==============================================================================
--- labs/hupa/trunk/.classpath (original)
+++ labs/hupa/trunk/.classpath Sun Sep 13 17:01:52 2009
@@ -1,13 +1,13 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-       <classpathentry kind="src" output="shared/target/classes" 
path="shared/src/main/java"/>
-       <classpathentry kind="src" output="server/war/WEB-INF/classes" 
path="server/src/main/java"/>
-       <classpathentry kind="src" output="server/target/test-classes" 
path="server/src/test/java"/>
-       <classpathentry kind="src" output="widgets/target/classes" 
path="widgets/src/main/java"/>
-       <classpathentry kind="src" output="client/war/WEB-INF/classes" 
path="client/src/main/java"/>
-       <classpathentry excluding="**" kind="src" 
output="client/war/WEB-INF/classes" path="client/src/main/resources"/>
-       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-       <classpathentry kind="con" 
path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
-       <classpathentry kind="con" 
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
-       <classpathentry kind="output" path="target/classes"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" output="shared/target/classes" 
path="shared/src/main/java"/>
+       <classpathentry kind="src" output="server/war/WEB-INF/classes" 
path="server/src/main/java"/>
+       <classpathentry kind="src" output="server/target/test-classes" 
path="server/src/test/java"/>
+       <classpathentry kind="src" output="widgets/target/classes" 
path="widgets/src/main/java"/>
+       <classpathentry kind="src" output="client/war/WEB-INF/classes" 
path="client/src/main/java"/>
+       <classpathentry excluding="**" kind="src" 
output="client/war/WEB-INF/classes" path="client/src/main/resources"/>
+       <classpathentry kind="con" 
path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
+       <classpathentry kind="con" 
path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+       <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="output" path="target/classes"/>
+</classpath>

Modified: labs/hupa/trunk/README.txt
URL: 
http://svn.apache.org/viewvc/labs/hupa/trunk/README.txt?rev=814348&r1=814347&r2=814348&view=diff
==============================================================================
--- labs/hupa/trunk/README.txt (original)
+++ labs/hupa/trunk/README.txt Sun Sep 13 17:01:52 2009
@@ -1,14 +1,28 @@
-###### Bulding ######
-Hupa use maven2 as build tool. To build hupa download maven2 
(http://maven.apache.org), unpack maven2 and install it.
-After that change to hupa directory and execute the following cmd:
-
-* mvn clean package
-
-
-
-###### Eclipse GWT Plugin notes ################
-
-If you want to run hupa in hosted mode be sure to add the following line as 
"vm argument" in the Run configuration:
-
--Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
-
+###### Bulding ######
+Hupa use maven2 as build tool. To build hupa download maven2 
(http://maven.apache.org), unpack maven2 and install it.
+After that change to hupa directory and execute the following cmd:
+
+* mvn clean package
+
+###### Eclipse GWT Plugin notes ################
+
+- If you want to run hupa in hosted mode be sure to add the following line as 
"vm argument" in the Run configuration:
+  
-Dhupa.config.file=${project_loc}/server/src/main/webapp/WEB-INF/conf/config.properties
+
+- If you receive this kind of errors in eclipse:
+  >> 'Access restriction: The constructor Data[...] is not accessible due to 
restriction on required library [...]/jre/lib/rt.jar'
+
+  Change the order of the libraries puting 'JRE System Library' at the bottom.
+
+- To avoid these gwt-pugin's messages
+  >> 'The output directory for the project should be set to 
/hupa/war/WEB-INF/classes'
+  >> 'The web.xml file does not exist'
+
+  In unix-like environments make these symbolic links: 
+       $ ln -s client/war war
+       $ ln -s ../../src/main/webapp/WEB-INF/web.xml war/WEB-INF/web.xml
+  In windows 
+       copy recursively 'client/war' to 'war'
+       copy 'client/src/main/webapp/WEB-INF/web.xml' to 'war/WEB-INF'
+  Then, set project's output directory to: /hupa/war/WEB-INF/classes
+       properties -> Java Build Path -> Source -> Default output folder

Modified: labs/hupa/trunk/client/pom.xml
URL: 
http://svn.apache.org/viewvc/labs/hupa/trunk/client/pom.xml?rev=814348&r1=814347&r2=814348&view=diff
==============================================================================
--- labs/hupa/trunk/client/pom.xml (original)
+++ labs/hupa/trunk/client/pom.xml Sun Sep 13 17:01:52 2009
@@ -1,116 +1,117 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <groupId>org.apache.hupa</groupId>
-       <artifactId>hupa-client</artifactId>
-       <name>hupa</name>
-       <version>0.0.1-SNAPSHOT</version>
-       <packaging>war</packaging>
-       <description>A GWT based IMAP webmail</description>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+       <modelVersion>4.0.0</modelVersion>
+       <groupId>org.apache.hupa</groupId>
+       <artifactId>hupa-client</artifactId>
+       <name>hupa</name>
+       <version>0.0.1-SNAPSHOT</version>
+       <packaging>war</packaging>
+       <description>A GWT based IMAP webmail</description>
        <parent>
                <groupId>org.apache.hupa</groupId>
                <artifactId>hupa-parent</artifactId>
                <version>0.0.1-SNAPSHOT</version>
-       </parent>
-       <build>
-               <outputDirectory>war/WEB-INF/classes
-               </outputDirectory>
-               <plugins>
-                       <plugin>
-                               <groupId>org.codehaus.mojo</groupId>
-                               <artifactId>gwt-maven-plugin</artifactId>
-                               <version>1.1</version>
-                               <configuration>
-                                       
<runTarget>org.apache.hupa.Hupa/Hupa.html
-                                       </runTarget>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <goals>
-                                                       <goal>compile</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-war-plugin</artifactId>
-                               <configuration>
-                                       <webXml>src/main/webapp/WEB-INF/web.xml
-                                       </webXml>
-                                       <webResources>
-                                               <resource>
-                                                       
<directory>war</directory>
-                                                       <excludes>
-                                                               
<exclude>**/hupa/*</exclude>
-                                                       </excludes>
-                                               </resource>
-                                               <!-- this is a ugly hack but 
I'm not sure howto solve it -->
-                                               <!-- This take care of 
including the config file within the war -->
-                                               <resource>
-                                                       
<directory>../server/src/main/webapp/</directory>
-                                               </resource>
-                                       </webResources>
-                                       <warName>${project.name}</warName>
-                               </configuration>
-                       </plugin>
-               </plugins>
-       </build>
-
-
-
-       <dependencies>
-               <dependency>
-                       <groupId>org.apache.hupa</groupId>
-                       <artifactId>hupa-server</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>org.apache.hupa</groupId>
-                       <artifactId>hupa-shared</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>org.apache.hupa</groupId>
-                       <artifactId>hupa-widgets</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>org.cobogw.gwt</groupId>
-                       <artifactId>cobogw</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>net.customware.gwt.dispatch
-                       </groupId>
-                       <artifactId>gwt-dispatch</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>net.customware.gwt.presenter
-                       </groupId>
-                       <artifactId>gwt-presenter</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>com.google.gwt</groupId>
-                       <artifactId>gwt-incubator</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>com.google.code.gwt-dnd</groupId>
-                       <artifactId>gwt-dnd</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>eu.maydu.gwt</groupId>
-                       <artifactId>gwt-vl</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>gwtupload</groupId>
-                       <artifactId>gwtupload</artifactId>
-               </dependency>
-               <dependency>
-                       <groupId>com.google.gwt</groupId>
-                       <artifactId>gwt-servlet</artifactId>
-                       <scope>runtime</scope>
-               </dependency>
-               <dependency>
-                       <groupId>com.google.gwt</groupId>
-                       <artifactId>gwt-user</artifactId>
-                       <scope>provided</scope>
-               </dependency>
-       </dependencies>
-</project>
\ No newline at end of file
+       </parent>
+       <build>
+               <outputDirectory>war/WEB-INF/classes
+               </outputDirectory>
+               <plugins>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>gwt-maven-plugin</artifactId>
+                               <version>1.1</version>
+                               <configuration>
+                                       
<runTarget>org.apache.hupa.Hupa/Hupa.html
+                                       </runTarget>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <phase>prepare-package</phase>
+                                               <goals>
+                                                       <goal>compile</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-war-plugin</artifactId>
+                               <configuration>
+                                       <webXml>src/main/webapp/WEB-INF/web.xml
+                                       </webXml>
+                                       <webResources>
+                                               <resource>
+                                                       
<directory>war</directory>
+                                                       <excludes>
+                                                               
<exclude>**/hupa/*</exclude>
+                                                       </excludes>
+                                               </resource>
+                                               <!-- this is a ugly hack but 
I'm not sure howto solve it -->
+                                               <!-- This take care of 
including the config file within the war -->
+                                               <resource>
+                                                       
<directory>../server/src/main/webapp/</directory>
+                                               </resource>
+                                       </webResources>
+                                       <warName>${project.name}</warName>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+
+
+
+       <dependencies>
+               <dependency>
+                       <groupId>org.apache.hupa</groupId>
+                       <artifactId>hupa-server</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.hupa</groupId>
+                       <artifactId>hupa-shared</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.hupa</groupId>
+                       <artifactId>hupa-widgets</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.cobogw.gwt</groupId>
+                       <artifactId>cobogw</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>net.customware.gwt.dispatch
+                       </groupId>
+                       <artifactId>gwt-dispatch</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>net.customware.gwt.presenter
+                       </groupId>
+                       <artifactId>gwt-presenter</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>com.google.gwt</groupId>
+                       <artifactId>gwt-incubator</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>com.google.code.gwt-dnd</groupId>
+                       <artifactId>gwt-dnd</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>eu.maydu.gwt</groupId>
+                       <artifactId>gwt-vl</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>gwtupload</groupId>
+                       <artifactId>gwtupload</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>com.google.gwt</groupId>
+                       <artifactId>gwt-servlet</artifactId>
+                       <scope>runtime</scope>
+               </dependency>
+               <dependency>
+                       <groupId>com.google.gwt</groupId>
+                       <artifactId>gwt-user</artifactId>
+                       <scope>provided</scope>
+               </dependency>
+       </dependencies>
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to