james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1607759 - in /james/bond/trunk: ./ manual_images/ src/main/java/org/apache/james/bond/ src/main/java/org/apache/james/bond/client/ src/main/java/org/apache/james/bond/client/event/ src/main/java/org/apache/james/bond/client/presenter/ src/...
Date Thu, 03 Jul 2014 22:24:36 GMT
Author: emma
Date: Thu Jul  3 22:24:35 2014
New Revision: 1607759

URL: http://svn.apache.org/r1607759
Log:
Bond version from git repository in apache extras

Added:
    james/bond/trunk/manual_images/
    james/bond/trunk/manual_images/apacheOff.png   (with props)
    james/bond/trunk/manual_images/dns.png   (with props)
    james/bond/trunk/manual_images/dnsDelete.png   (with props)
    james/bond/trunk/manual_images/domains.png   (with props)
    james/bond/trunk/manual_images/imap.png   (with props)
    james/bond/trunk/manual_images/lmtp.png   (with props)
    james/bond/trunk/manual_images/mappings.png   (with props)
    james/bond/trunk/manual_images/menu.png   (with props)
    james/bond/trunk/manual_images/monitor.png   (with props)
    james/bond/trunk/manual_images/pop3.png   (with props)
    james/bond/trunk/manual_images/problemWrongFolder.png   (with props)
    james/bond/trunk/manual_images/smtp.png   (with props)
    james/bond/trunk/manual_images/users.png   (with props)
Removed:
    james/bond/trunk/src/main/java/org/apache/james/bond/client/event/
    james/bond/trunk/src/main/java/org/apache/james/bond/client/presenter/
    james/bond/trunk/src/main/java/org/apache/james/bond/client/view/
Modified:
    james/bond/trunk/README.txt
    james/bond/trunk/pom.xml
    james/bond/trunk/src/main/java/org/apache/james/bond/Bond.gwt.xml
    james/bond/trunk/src/main/java/org/apache/james/bond/client/Bond.java
    james/bond/trunk/src/main/webapp/WEB-INF/web.xml
    james/bond/trunk/src/main/webapp/index.html
    james/bond/trunk/src/test/java/org/apache/james/bond/client/BondTest.java

Modified: james/bond/trunk/README.txt
URL: http://svn.apache.org/viewvc/james/bond/trunk/README.txt?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/README.txt (original)
+++ james/bond/trunk/README.txt Thu Jul  3 22:24:35 2014
@@ -1,6 +1,6 @@
 
 
-This is the project Bond which uses the GwtQuery Library.
+This is the project Bond: The admin console for James.
 
 - Assuming you have installed maven, compile and install it just running:
 $ mvn clean install
@@ -20,6 +20,10 @@ $ mvn gwt:run
 
     * File -> Import -> Existing Projects into Workspace 
 
+ You have to configure 'Annotation Processing' in order to validate Request Factory services
+    * Right click on the project -> Java Compiler -> Annotation Processing -> Enable
-> Enable processing in Editor -> source folder: target/generated/apt
+    * Right click on the project -> Java Compiler -> Annotation Processing -> Factory
Path -> Add External Jar -> requestfactory-apt-2.5.1.jar
+
  Finally you should be able to run the project in development mode and to run the gwt test
unit.
 
     * Right click on the project -> Run as -> Web Application
@@ -30,3 +34,24 @@ $ mvn gwt:run
 
 $ mvn eclipse:m2eclipse  (if you like to use m2eclipse)
 $ mvn eclipse:eclipse    (to use the project without m2eclipse)
+
+- Package and run in production. Run the following command to produce a .war file
+
+$ mvn clean package -Dmaven.test.skip
+
+ Then you can run the project adding it to a servlet container (tomcat, jetty, glassfish
etc)
+ o running it from command line:
+
+$ java -jar target/bond-{version}.war
+
+ To indicate the range of ips authorized to use the app run bond with the 'ip.range' parameter:
+
+$ java -Dip.range=10.0.0 -jar target/bond-{version}.war
+
+ To indicate the folder with the james configuration files use the 'james.conf' parameter:
+
+$ java -Djames.conf=/opt/apache-james-3.0-beta4/conf -jar target/bond-{version}.war
+
+ To indicate the JMX server/port running james
+
+$ java -Djames.jmx=127.0.0.1:9999 -jar target/bond-{version}.war

Added: james/bond/trunk/manual_images/apacheOff.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/apacheOff.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/apacheOff.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/dns.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/dns.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/dns.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/dnsDelete.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/dnsDelete.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/dnsDelete.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/domains.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/domains.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/domains.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/imap.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/imap.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/imap.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/lmtp.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/lmtp.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/lmtp.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/mappings.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/mappings.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/mappings.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/menu.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/menu.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/menu.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/monitor.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/monitor.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/monitor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/pop3.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/pop3.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/pop3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/problemWrongFolder.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/problemWrongFolder.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/problemWrongFolder.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/smtp.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/smtp.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/smtp.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: james/bond/trunk/manual_images/users.png
URL: http://svn.apache.org/viewvc/james/bond/trunk/manual_images/users.png?rev=1607759&view=auto
==============================================================================
Binary file - no diff available.

Propchange: james/bond/trunk/manual_images/users.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: james/bond/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/bond/trunk/pom.xml?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/pom.xml (original)
+++ james/bond/trunk/pom.xml Thu Jul  3 22:24:35 2014
@@ -1,197 +1,374 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project>
-    <modelVersion>4.0.0</modelVersion>
+	<modelVersion>4.0.0</modelVersion>
 
-    <name>Bond gwtquery project</name>
-    <groupId>org.apache.james</groupId>
-    <artifactId>bond</artifactId>
-    <packaging>war</packaging>
-    <version>1.0-SNAPSHOT</version>
-
-    <properties>
-      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-      <maven.compiler.source>1.6</maven.compiler.source>
-      <maven.compiler.target>1.6</maven.compiler.target>
-      <gQueryVersion>1.3.2</gQueryVersion>
-      <gwtversion>2.5.1</gwtversion>
-      <gwtmaven>2.5.1</gwtmaven>
-    </properties>
-
-    <repositories>
-       <repository>
-         <id>central</id>
-         <url>http://repo1.maven.org/maven2</url>
-       </repository>
-       <repository>
-         <id>gwtquery-plugins</id>
-         <url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
-       </repository>
-       <repository>
-         <id>sonatype</id>
-         <url>http://oss.sonatype.org/content/repositories/snapshots</url>
-         <snapshots><enabled>true</enabled></snapshots>
-         <releases><enabled>false</enabled></releases>
-       </repository>
-       <repository>
-         <id>m.g.o</id>
-         <url>http://maven.glassfish.org/content/groups/public/</url>
-       </repository>
-    </repositories>
-
-    <scm>
-    </scm>
-
-    <issueManagement>
-    </issueManagement>
-
-    <dependencies>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>3.8.1</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.google.gwt</groupId>
-            <artifactId>gwt-user</artifactId>
-            <version>${gwtversion}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.google.gwt</groupId>
-            <artifactId>gwt-dev</artifactId>
-            <version>${gwtversion}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.google.gwt</groupId>
-            <artifactId>gwt-servlet</artifactId>
-            <version>${gwtversion}</version>
-            <scope>runtime</scope>
-        </dependency>
-        <dependency>
-            <groupId>com.googlecode.gwtquery</groupId>
-            <artifactId>gwtquery</artifactId>
-            <version>${gQueryVersion}</version>
-            <scope>provided</scope>
-        </dependency>
-        <!-- GWT 2.3.0 depends on these -->
-        <dependency>
-            <groupId>javax.validation</groupId>
-            <artifactId>validation-api</artifactId>
-            <version>1.0.0.GA</version>
-        </dependency>
-        <dependency>
-            <groupId>javax.validation</groupId>
-            <artifactId>validation-api</artifactId>
-            <version>1.0.0.GA</version>
-            <classifier>sources</classifier>
-        </dependency>
-    </dependencies>
-    <build>
-        <plugins>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-compiler-plugin</artifactId>
-              <version>2.1</version>
-              <configuration>
-                <source>1.6</source>
-                <target>1.6</target>
-              </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>gwt-maven-plugin</artifactId>
-                <version>${gwtmaven}</version>
-                <configuration>
-                    <logLevel>${gwt.loglevel}</logLevel>
-                    <style>${gwt.outputstyle}</style>
-                    <gwtVersion>${gwtversion}</gwtVersion>
-                    <compileReport>true</compileReport>
-                    <runTarget>Bond/Bond.html</runTarget>
-                    <hostedWebApp>${project.build.directory}/${project.build.finalName}</hostedWebApp>
-                </configuration>
-                <executions>
-                    <execution>
-                        <phase>prepare-package</phase>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-               <artifactId>maven-surefire-plugin</artifactId>
-               <version>2.8.1</version>
-               <configuration>
-                 <additionalClasspathElements>
-                   <additionalClasspathElement>\${project.build.sourceDirectory}</additionalClasspathElement>
-                   <additionalClasspathElement>\${project.build.testSourceDirectory}</additionalClasspathElement>
-                 </additionalClasspathElements>
-                 <useManifestOnlyJar>false</useManifestOnlyJar>
-                 <forkMode>always</forkMode>
-                 <systemProperties>
-                   <property>
-                     <name>gwt.args</name>
-                     <value>-out target/gwt-tests</value>
-                   </property>
-                   <property>
-                     <!-- Setting this to true (default) causes a exception first time
test are run Gwt issue_6443 -->
-                     <name>gwt.persistentunitcache</name>
-                     <value>false</value>
-                   </property>
-                 </systemProperties>
-               </configuration>
-            </plugin>
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-eclipse-plugin</artifactId>
-              <version>2.7</version>
-              <configuration>
-                 <downloadSources>true</downloadSources>
-                 <downloadJavadocs>false</downloadJavadocs>
-                 <additionalBuildcommands>
-                   <buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildcommand>
-                   <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
-                   <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
-                   <buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>
-                 </additionalBuildcommands>
-                 <additionalProjectnatures>
-                   <projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
-                   <projectnature>org.eclipse.jdt.core.javanature</projectnature>
-                   <projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
-                 </additionalProjectnatures>
-                 <classpathContainers>
-                   <classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>
-                   <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
-                   <classpathContainer>org.eclipse.jdt.junit.JUNIT_CONTAINER/3</classpathContainer>
-                </classpathContainers>
-              </configuration>
-            </plugin>
-            <!-- GWT plugin does not copy the webapp folder in hosted mode -->
-            <plugin>
-              <artifactId>maven-resources-plugin</artifactId>
-              <version>2.5</version>
-              <executions>
-                <execution>
-                  <id>copy-resources</id>
-                  <phase>generate-sources</phase>
-                  <goals>
-                    <goal>copy-resources</goal>
-                  </goals>
-                  <configuration>
-                    <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
-                    <resources>
-                      <resource>
-                       <directory>src/main/webapp</directory>
-                       <filtering>true</filtering>
-                      </resource>
-                    </resources>
-                  </configuration>
-                </execution>
-              </executions>
-            </plugin>
-        </plugins>
-        <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
-    </build>
+	<name>Bond gwtquery project</name>
+	<groupId>org.apache.james</groupId>
+	<artifactId>bond</artifactId>
+	<packaging>war</packaging>
+	<version>1.0-SNAPSHOT</version>
+
+	<properties>
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+		<maven.compiler.source>1.6</maven.compiler.source>
+		<maven.compiler.target>1.6</maven.compiler.target>
+		<gQueryVersion>1.3.2</gQueryVersion>
+		<gwtversion>2.5.1</gwtversion>
+		<gwtmaven>2.5.1</gwtmaven>
+		<jetty.version>7.6.9.v20130131</jetty.version>
+	</properties>
+
+	<repositories>
+		<repository>
+			<id>central</id>
+			<url>http://repo1.maven.org/maven2</url>
+		</repository>
+		<repository>
+			<id>gwtquery-plugins</id>
+			<url>http://gwtquery-plugins.googlecode.com/svn/mavenrepo</url>
+		</repository>
+		<repository>
+			<id>sonatype</id>
+			<url>http://oss.sonatype.org/content/repositories/snapshots</url>
+			<snapshots>
+				<enabled>true</enabled>
+			</snapshots>
+			<releases>
+				<enabled>false</enabled>
+			</releases>
+		</repository>
+	</repositories>
+
+	<scm>
+	</scm>
+
+	<issueManagement>
+	</issueManagement>
+
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.8.1</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.google.gwt</groupId>
+			<artifactId>gwt-user</artifactId>
+			<version>${gwtversion}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.google.gwt</groupId>
+			<artifactId>gwt-dev</artifactId>
+			<version>${gwtversion}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.google.gwt</groupId>
+			<artifactId>gwt-servlet</artifactId>
+			<version>${gwtversion}</version>
+			<scope>runtime</scope>
+		</dependency>
+		<dependency>
+			<groupId>com.googlecode.gwtquery</groupId>
+			<artifactId>gwtquery</artifactId>
+			<version>${gQueryVersion}</version>
+			<scope>provided</scope>
+		</dependency>
+		<!-- GWT 2.3.0 depends on these -->
+		<dependency>
+			<groupId>javax.validation</groupId>
+			<artifactId>validation-api</artifactId>
+			<version>1.0.0.GA</version>
+		</dependency>
+		<dependency>
+			<groupId>javax.validation</groupId>
+			<artifactId>validation-api</artifactId>
+			<version>1.0.0.GA</version>
+			<classifier>sources</classifier>
+		</dependency>
+		<dependency>
+			<groupId>org.hibernate</groupId>
+			<artifactId>hibernate-validator</artifactId>
+			<version>4.2.0.Final</version>
+		</dependency>
+		<dependency>
+			<groupId>org.json</groupId>
+			<artifactId>json</artifactId>
+			<version>20090211</version>
+		</dependency>
+
+		<!-- JSR 303 -->
+		<dependency>
+			<groupId>org.hibernate</groupId>
+			<artifactId>hibernate-validator-annotation-processor</artifactId>
+			<version>4.2.0.Final</version>
+		</dependency>
+
+		<!-- To use james-cli functions for JMX connection -->
+		<dependency>
+			<groupId>org.apache.james</groupId>
+			<artifactId>james-server-cli</artifactId>
+			<version>3.0-beta4</version>
+		</dependency>
+		<!-- To have xml templates in our classpath -->
+		<dependency>
+			<groupId>org.apache.james</groupId>
+			<artifactId>apache-james</artifactId>
+			<version>3.0-beta4</version>
+			<exclusions>
+				<exclusion>
+					<groupId>*</groupId>
+					<artifactId>*</artifactId>
+				</exclusion>
+			</exclusions>
+			<scope>provided</scope>
+		</dependency>
+		<!-- Dependencies to run Bond from command line -->
+		<dependency>
+			<groupId>org.eclipse.jetty</groupId>
+			<artifactId>jetty-server</artifactId>
+			<version>${jetty.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.eclipse.jetty</groupId>
+			<artifactId>jetty-webapp</artifactId>
+			<version>${jetty.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.eclipse.jetty</groupId>
+			<artifactId>jetty-websocket</artifactId>
+			<version>${jetty.version}</version>
+			<scope>provided</scope>
+		</dependency>
+
+		<!--For Guava cache -->
+		<dependency>
+			<groupId>com.google.guava</groupId>
+			<artifactId>guava</artifactId>
+			<version>11.0.1</version>
+		</dependency>
+
+		<!-- To parse xml -->
+		<dependency>
+			<groupId>commons-configuration</groupId>
+			<artifactId>commons-configuration</artifactId>
+			<version>1.7</version>
+		</dependency>
+		<dependency>
+			<groupId>commons-io</groupId>
+			<artifactId>commons-io</artifactId>
+			<version>2.0.1</version>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
+
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>2.1</version>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+				<dependencies>
+					<dependency>
+						<groupId>com.google.web.bindery</groupId>
+						<artifactId>requestfactory-apt</artifactId>
+						<version>${gwtversion}</version>
+					</dependency>
+				</dependencies>
+			</plugin>
+
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>gwt-maven-plugin</artifactId>
+				<version>${gwtmaven}</version>
+				<configuration>
+					<logLevel>${gwt.loglevel}</logLevel>
+					<style>${gwt.outputstyle}</style>
+					<gwtVersion>${gwtversion}</gwtVersion>
+					<compileReport>true</compileReport>
+					<runTarget>Bond/Bond.html</runTarget>
+					<hostedWebApp>${project.build.directory}/${project.build.finalName}</hostedWebApp>
+				</configuration>
+				<executions>
+					<execution>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>compile</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+
+			<plugin>
+				<artifactId>maven-surefire-plugin</artifactId>
+				<version>2.8.1</version>
+				<configuration>
+					<additionalClasspathElements>
+						<additionalClasspathElement>\${project.build.sourceDirectory}</additionalClasspathElement>
+						<additionalClasspathElement>\${project.build.testSourceDirectory}</additionalClasspathElement>
+					</additionalClasspathElements>
+					<useManifestOnlyJar>false</useManifestOnlyJar>
+					<forkMode>always</forkMode>
+					<systemProperties>
+						<property>
+							<name>gwt.args</name>
+							<value>-out target/gwt-tests</value>
+						</property>
+						<property>
+							<name>gwt.persistentunitcache</name>
+							<value>false</value>
+						</property>
+					</systemProperties>
+				</configuration>
+			</plugin>
+
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-eclipse-plugin</artifactId>
+				<version>2.7</version>
+				<configuration>
+					<downloadSources>true</downloadSources>
+					<downloadJavadocs>false</downloadJavadocs>
+					<additionalBuildcommands>
+						<buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildcommand>
+						<buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilder</buildcommand>
+						<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
+						<buildcommand>org.eclipse.wst.common.modulecore.ComponentStructuralBuilderDependencyResolver</buildcommand>
+					</additionalBuildcommands>
+					<additionalProjectnatures>
+						<projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
+						<projectnature>org.eclipse.jdt.core.javanature</projectnature>
+						<projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
+					</additionalProjectnatures>
+					<classpathContainers>
+						<classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>
+						<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
+						<classpathContainer>org.eclipse.jdt.junit.JUNIT_CONTAINER/3</classpathContainer>
+					</classpathContainers>
+				</configuration>
+			</plugin>
+
+			<plugin>
+				<artifactId>maven-resources-plugin</artifactId>
+				<version>2.5</version>
+				<executions>
+					<execution>
+						<!-- GWT plugin does not copy the webapp folder in hosted mode -->
+						<id>copy-resources</id>
+						<phase>generate-sources</phase>
+						<goals>
+							<goal>copy-resources</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
+							<resources>
+								<resource>
+									<directory>src/main/webapp</directory>
+									<filtering>true</filtering>
+								</resource>
+							</resources>
+						</configuration>
+					</execution>
+					<execution>
+						<!-- Copy the Jetty Launcher -->
+						<id>copy-launcher</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>copy-resources</goal>
+						</goals>
+						<configuration>
+							<outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
+							<resources>
+								<resource>
+									<directory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</directory>
+									<include>org/apache/james/bond/Launcher.class</include>
+								</resource>
+							</resources>
+						</configuration>
+					</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>
+					<archive>
+						<manifest>
+							<mainClass>org.apache.james.bond.Launcher</mainClass>
+						</manifest>
+					</archive>
+				</configuration>
+			</plugin>
+
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>jetty-classpath</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>unpack-dependencies</goal>
+						</goals>
+						<configuration>
+							<includeGroupIds>org.eclipse.jetty,javax.servlet</includeGroupIds>
+							<excludeArtifactIds>jsp-api,jstl</excludeArtifactIds>
+							<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
+							<excludes>**\/*.SF,**\/*.DSA,**\/*.RSA</excludes>
+						</configuration>
+					</execution>
+					<execution>
+						<id>james-templates</id>
+						<phase>prepare-package</phase>
+						<goals>
+							<goal>unpack-dependencies</goal>
+						</goals>
+						<configuration>
+							<includeGroupIds>org.apache.james</includeGroupIds>
+							<includeArtifactIds>apache-james</includeArtifactIds>
+							<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
+							<includes>**\/conf\/*.conf</includes>
+						</configuration>
+					</execution>
+				</executions>
+
+
+			</plugin>
+
+			<plugin>
+				<!-- Process RequestFactory validations -->
+				<groupId>org.bsc.maven</groupId>
+				<artifactId>maven-processor-plugin</artifactId>
+				<version>2.0.5</version>
+				<dependencies>
+					<dependency>
+						<groupId>com.google.web.bindery</groupId>
+						<artifactId>requestfactory-apt</artifactId>
+						<version>${gwtversion}</version>
+					</dependency>
+				</dependencies>
+				<executions>
+					<execution>
+						<id>process</id>
+						<goals>
+							<goal>process</goal>
+						</goals>
+						<phase>generate-sources</phase>
+					</execution>
+				</executions>
+			</plugin>
+
+		</plugins>
+	</build>
 </project>

Modified: james/bond/trunk/src/main/java/org/apache/james/bond/Bond.gwt.xml
URL: http://svn.apache.org/viewvc/james/bond/trunk/src/main/java/org/apache/james/bond/Bond.gwt.xml?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/src/main/java/org/apache/james/bond/Bond.gwt.xml (original)
+++ james/bond/trunk/src/main/java/org/apache/james/bond/Bond.gwt.xml Thu Jul  3 22:24:35
2014
@@ -1,10 +1,50 @@
-<module rename-to='Bond'>
-    <inherits name='com.google.gwt.query.Query'/>
-    <inherits name='com.google.gwt.user.theme.standard.Standard' />
+<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+ -->
+<module rename-to='bond'>
+	<inherits name='com.google.gwt.user.User' />
+	<inherits name='com.google.gwt.query.Query' />
+<!-- 	<inherits name='com.google.gwt.user.theme.chrome.Chrome' /> -->
+    <inherits name='com.google.gwt.user.theme.clean.Clean' />
 	<inherits name="com.google.web.bindery.requestfactory.RequestFactory" />
+
+	<inherits name="com.google.gwt.validation.Validation" />
+
+	<inherits name="com.google.gwt.activity.Activity" />
+	<inherits name="com.google.gwt.place.Place" />
+
+	<entry-point class='org.apache.james.bond.client.Bond' />
+
+
+	<inherits name="org.hibernate.validator.HibernateValidator" />
+	<replace-with
+		class="org.apache.james.bond.client.serverconnection.ClientValidatorFactory">
+		<when-type-is class="javax.validation.ValidatorFactory" />
+	</replace-with>
+
+	<!-- Use ClientFactoryImpl by default -->
+	<replace-with class="org.apache.james.bond.client.ioc.ClientFactoryImpl">
+		<when-type-is class="org.apache.james.bond.client.ioc.ClientFactory" />
+	</replace-with>
 	
-    <entry-point class='com.apache.james.bond.client.Bond'/>
+	<set-property name="ClientBundle.enableInlining" value="false" /> 
+    <set-configuration-property name="ClientBundle.enableRenaming" value="true" />
     
-    <source path="client"/>
-</module>
-
+	<source path="client" />
+</module>
\ No newline at end of file

Modified: james/bond/trunk/src/main/java/org/apache/james/bond/client/Bond.java
URL: http://svn.apache.org/viewvc/james/bond/trunk/src/main/java/org/apache/james/bond/client/Bond.java?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/src/main/java/org/apache/james/bond/client/Bond.java (original)
+++ james/bond/trunk/src/main/java/org/apache/james/bond/client/Bond.java Thu Jul  3 22:24:35
2014
@@ -1,27 +1,66 @@
-package org.apache.james.bond.client;
-
-import com.google.gwt.dom.client.Element;
-import com.google.gwt.query.client.Function;
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.RootPanel;
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
 
-import static com.google.gwt.query.client.GQuery.*;
+package org.apache.james.bond.client;
 
+import org.apache.james.bond.client.ioc.ClientFactory;
+import org.apache.james.bond.client.manage.ManagePlace;
+import org.apache.james.bond.client.mvp.AppActivityMapper;
+import org.apache.james.bond.client.mvp.AppPlaceHistoryMapper;
 
+import com.google.gwt.activity.shared.ActivityManager;
+import com.google.gwt.activity.shared.ActivityMapper;
 import com.google.gwt.core.client.EntryPoint;
-import com.google.gwt.core.shared.GWT;
-import com.google.web.bindery.event.shared.SimpleEventBus;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.place.shared.Place;
+import com.google.gwt.place.shared.PlaceController;
+import com.google.gwt.place.shared.PlaceHistoryHandler;
+import com.google.gwt.user.client.ui.RootLayoutPanel;
+import com.google.gwt.user.client.ui.SimpleLayoutPanel;
+import com.google.web.bindery.event.shared.EventBus;
 
 /**
- * Example code for a GwtQuery application
+ * Entry point classes define <code>onModuleLoad()</code>.
  */
 public class Bond implements EntryPoint {
+  private Place defaultPlace = new ManagePlace("0");
+  private SimpleLayoutPanel appWidget = new SimpleLayoutPanel();
 
+  /**
+   * This is the entry point method.
+   */
   public void onModuleLoad() {
-	  Factory factory = GWT.create(Factory.class);
-	  factory.initialize(new SimpleEventBus());
-	  AppController appViewer = new AppController(factory);
-	  appViewer.go(RootPanel.get());
-  }
+    ClientFactory clientFactory = GWT.create(ClientFactory.class);
+    EventBus eventBus = clientFactory.getEventBus();
+    PlaceController placeController = clientFactory.getPlaceController();
+
+    ActivityMapper activityMapper = new AppActivityMapper(clientFactory);
+    ActivityManager activityManager = new ActivityManager(activityMapper,
+        eventBus);
+    activityManager.setDisplay(appWidget);
+
+    AppPlaceHistoryMapper historyMapper = GWT
+        .create(AppPlaceHistoryMapper.class);
+    PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
+    historyHandler.register(placeController, eventBus, defaultPlace);
 
+    RootLayoutPanel.get().add(appWidget);
+    historyHandler.handleCurrentHistory();
+  }
 }

Modified: james/bond/trunk/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/james/bond/trunk/src/main/webapp/WEB-INF/web.xml?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/src/main/webapp/WEB-INF/web.xml (original)
+++ james/bond/trunk/src/main/webapp/WEB-INF/web.xml Thu Jul  3 22:24:35 2014
@@ -1,16 +1,57 @@
 <web-app>
-  <welcome-file-list>
-    <welcome-file>Bond/Bond.html</welcome-file>
-  </welcome-file-list>
-  
-  <servlet>
-  	<servlet-name>requestFactoryServlet</servlet-name>
-  	<servlet-class>
-  		com.google.web.bindery.requestfactory.server.RequestFactoryServlet
-  	</servlet-class>
-  </servlet>
-  <servlet-mapping>
-  	<servlet-name>requestFactoryServlet</servlet-name>
-  	<url-pattern>/gwtRequest</url-pattern>
-  </servlet-mapping>
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+	</welcome-file-list>
+
+	<servlet>
+		<servlet-name>gwtRequest</servlet-name>
+		<servlet-class>com.google.web.bindery.requestfactory.server.RequestFactoryServlet
+		</servlet-class>
+	</servlet>
+
+	<servlet-mapping>
+		<servlet-name>gwtRequest</servlet-name>
+		<url-pattern>/gwtRequest</url-pattern>
+		<url-pattern>/bond/gwtRequest</url-pattern>
+	</servlet-mapping>
+
+        <!-- Bond is configurable via either web.xml properties or system properties
+             james.conf: folder containing james configuration files, defatult: /opt/apache-james-3.0-beta4/conf
+             james.jmx:  server:port running james, default: localhost:9999
+             ip.range:   authorized browser addresses, default: 127.0.0.1
+
+        -->
+        <!--
+	<env-entry>
+		<env-entry-name>james.jmx</env-entry-name>
+		<env-entry-value>localhost:9999</env-entry-value>
+		<env-entry-type>java.lang.String</env-entry-type>
+	</env-entry>
+	<env-entry>
+		<env-entry-name>james.conf</env-entry-name>
+		<env-entry-value>/opt/apache-james-3.0-beta4/conf</env-entry-value>
+		<env-entry-type>java.lang.String</env-entry-type>
+	</env-entry>
+	<env-entry>
+		<env-entry-name>ip.range</env-entry-name>
+		<env-entry-value>127.0.0.1</env-entry-value>
+		<env-entry-type>java.lang.String</env-entry-type>
+	</env-entry>
+        -->
+	
+	 <filter>
+		   <filter-name>JamesBondFilter</filter-name>
+		   <filter-class>org.apache.james.bond.server.servlet.JamesBondFilter</filter-class>
+	 </filter>
+	 <filter-mapping>
+		   <filter-name>JamesBondFilter</filter-name>
+		   <url-pattern>/*</url-pattern>
+	 </filter-mapping>	
+
+	<context-param>
+		<param-name>
+			javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
+		</param-name>
+		<param-value>true</param-value>
+	</context-param>
 </web-app>

Modified: james/bond/trunk/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/james/bond/trunk/src/main/webapp/index.html?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/src/main/webapp/index.html (original)
+++ james/bond/trunk/src/main/webapp/index.html Thu Jul  3 22:24:35 2014
@@ -7,9 +7,9 @@
        function goTo(location) {
          window.location = location + window.location.search;
        }
-       goTo('Bond/Bond.html');
+       goTo('bond/bond.html');
      </script>
-     <h2>Loading the demo of the Bond gwtquery application</h2>
+     <h2>Loading ...</h2>
   </body>
 </html>
 

Modified: james/bond/trunk/src/test/java/org/apache/james/bond/client/BondTest.java
URL: http://svn.apache.org/viewvc/james/bond/trunk/src/test/java/org/apache/james/bond/client/BondTest.java?rev=1607759&r1=1607758&r2=1607759&view=diff
==============================================================================
--- james/bond/trunk/src/test/java/org/apache/james/bond/client/BondTest.java (original)
+++ james/bond/trunk/src/test/java/org/apache/james/bond/client/BondTest.java Thu Jul  3 22:24:35
2014
@@ -1,59 +1,35 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
 package org.apache.james.bond.client;
 
-import static com.google.gwt.query.client.GQuery.*;
 import com.google.gwt.junit.client.GWTTestCase;
-import com.google.gwt.query.client.GQuery;
-import com.google.gwt.query.client.plugins.Effects.Speed;
-import com.google.gwt.user.client.Event;
-import com.google.gwt.user.client.Timer;
+
 /**
  * Test class for Bond entry-point
  */
 public class BondTest extends GWTTestCase {
 
   public String getModuleName() {
-    return "org.apache.james.bond.Bond";
-  }
-
-  private double fontSize(GQuery g) {
-    return $(g).cur("fontSize", true);
+    return null; // "org.apache.james.bond.Bond";
   }
 
   public void testOnModuleLoad() {
-
-    // Create a container in the document
-    final GQuery g =  $("<div></div>").appendTo(document);
-
-    // run onModuleLoad
-    Bond a = new Bond();
-    a.onModuleLoad();
-
-    // delay the test
-    delayTestFinish(Speed.DEFAULT * 5);
-
-    // trigger mouse over event
-    final double size1 = fontSize(g);
-    g.trigger(Event.ONMOUSEOVER);
-    new Timer() {
-      public void run() {
-        // assert that the font size increases
-        assertTrue(fontSize(g) > size1);
-
-        // trigger mouse out event
-        final double size2 = fontSize(g);
-        g.trigger(Event.ONMOUSEOUT);
-        new Timer() {
-          public void run() {
-            // assert that the font size decreases
-            assertTrue(fontSize(g) < size2);
-            g.remove();
-
-            // finish the test
-            finishTest();
-          }
-        }.schedule(Speed.DEFAULT);
-      }
-    }.schedule(Speed.DEFAULT);
   }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message