You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2012/03/22 10:13:04 UTC
svn commit: r1303694 - in /james/hupa/trunk: client/pom.xml
client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
client/src/test/java/org/apache/hupa/client/mock/MockUploader.java
mock/pom.xml server/pom.xml
Author: manolo
Date: Thu Mar 22 09:13:04 2012
New Revision: 1303694
URL: http://svn.apache.org/viewvc?rev=1303694&view=rev
Log:
Update gwt-upload version
Modified:
james/hupa/trunk/client/pom.xml
james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockUploader.java
james/hupa/trunk/mock/pom.xml
james/hupa/trunk/server/pom.xml
Modified: james/hupa/trunk/client/pom.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/pom.xml?rev=1303694&r1=1303693&r2=1303694&view=diff
==============================================================================
--- james/hupa/trunk/client/pom.xml (original)
+++ james/hupa/trunk/client/pom.xml Thu Mar 22 09:13:04 2012
@@ -28,7 +28,7 @@
<version>0.0.2-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
- <artifactId>hupa-client</artifactId>
+ <artifactId>hupa</artifactId>
<packaging>war</packaging>
<name>Apache James Hupa</name>
<description>A GWT based IMAP webmail</description>
@@ -66,7 +66,7 @@
<artifactId>gwt-vl</artifactId>
</dependency>
<dependency>
- <groupId>gwtupload</groupId>
+ <groupId>com.googlecode.gwtupload</groupId>
<artifactId>gwtupload</artifactId>
</dependency>
<dependency>
@@ -92,14 +92,6 @@
<artifactId>validation-api</artifactId>
<scope>provided</scope>
</dependency>
-<!-- Adding java.validation:validation-api with classifier source breaks the maven build
- and makes the project unsable in eclipse -->
-<!-- <dependency> -->
-<!-- <groupId>javax.validation</groupId> -->
-<!-- <artifactId>validation-api</artifactId> -->
-<!-- <classifier>sources</classifier> -->
-<!-- <scope>provided</scope> -->
-<!-- </dependency> -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
@@ -137,6 +129,9 @@
<compileReport>true</compileReport>
<disableClassMetadata>true</disableClassMetadata>
<disableCastChecking>true</disableCastChecking>
+ <modules>
+ <module>org.apache.hupa.Hupa</module>
+ </modules>
</configuration>
<executions>
<execution>
@@ -148,6 +143,13 @@
</executions>
</plugin>
<!-- maven-sure-fire-plugin configurations commented - Why was this needed ? -->
+<!-- - response by manolo: -->
+<!-- This is needed when running gwt tests, the gwt compiler needs to access to -->
+<!-- java source files so as it can parse them an compile into javascript -->
+<!-- Because we like fast tests, so far, all our tests are run in jvm instead of -->
+<!-- in browser emulator, we can do that because we use MVP pattern in hupa -->
+<!-- Maybe we needed this in a future when testing our widgets or stuff which only -->
+<!-- run in browser. -->
<!-- <plugin> -->
<!-- <groupId>org.apache.maven.plugins</groupId> -->
<!-- <artifactId>maven-surefire-plugin</artifactId> -->
@@ -171,7 +173,7 @@
<directory>../server/src/main/webapp/</directory>
</resource>
</webResources>
- <warName>${project.name}</warName>
+ <warName>${artifactId}</warName>
</configuration>
</plugin>
<plugin>
Modified: james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java?rev=1303694&r1=1303693&r2=1303694&view=diff
==============================================================================
--- james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java (original)
+++ james/hupa/trunk/client/src/main/java/org/apache/hupa/client/mvp/MessageSendView.java Thu Mar 22 09:13:04 2012
@@ -34,6 +34,7 @@ import com.google.inject.Inject;
import eu.maydu.gwt.validation.client.DefaultValidationProcessor;
import eu.maydu.gwt.validation.client.ValidationProcessor;
import eu.maydu.gwt.validation.client.i18n.ValidationMessages;
+import gwtupload.client.IFileInput.FileInputType;
import gwtupload.client.BaseUploadStatus;
import gwtupload.client.IUploadStatus;
import gwtupload.client.IUploader;
@@ -98,7 +99,7 @@ public class MessageSendView extends Com
BaseUploadStatus uploadStatus = new BaseUploadStatus();
uploadStatus.setCancelConfiguration(IUploadStatus.GMAIL_CANCEL_CFG);
- uploader = new MultiUploader(uploadStatus);
+ uploader = new MultiUploader(FileInputType.ANCHOR, uploadStatus);
uploader.setServletPath(GWT.getModuleBaseURL() + SConsts.SERVLET_UPLOAD);
uploader.avoidRepeatFiles(true);
uploader.setI18Constants(constants);
Modified: james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockUploader.java
URL: http://svn.apache.org/viewvc/james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockUploader.java?rev=1303694&r1=1303693&r2=1303694&view=diff
==============================================================================
--- james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockUploader.java (original)
+++ james/hupa/trunk/client/src/test/java/org/apache/hupa/client/mock/MockUploader.java Thu Mar 22 09:13:04 2012
@@ -175,4 +175,8 @@ public class MockUploader implements IUp
return null;
}
+ public Widget getWidget() {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
Modified: james/hupa/trunk/mock/pom.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/mock/pom.xml?rev=1303694&r1=1303693&r2=1303694&view=diff
==============================================================================
--- james/hupa/trunk/mock/pom.xml (original)
+++ james/hupa/trunk/mock/pom.xml Thu Mar 22 09:13:04 2012
@@ -77,7 +77,7 @@
<artifactId>gwt-dispatch</artifactId>
</dependency>
<dependency>
- <groupId>gwtupload</groupId>
+ <groupId>com.googlecode.gwtupload</groupId>
<artifactId>gwtupload</artifactId>
</dependency>
<dependency>
Modified: james/hupa/trunk/server/pom.xml
URL: http://svn.apache.org/viewvc/james/hupa/trunk/server/pom.xml?rev=1303694&r1=1303693&r2=1303694&view=diff
==============================================================================
--- james/hupa/trunk/server/pom.xml (original)
+++ james/hupa/trunk/server/pom.xml Thu Mar 22 09:13:04 2012
@@ -77,7 +77,7 @@
<artifactId>gwt-dispatch</artifactId>
</dependency>
<dependency>
- <groupId>gwtupload</groupId>
+ <groupId>com.googlecode.gwtupload</groupId>
<artifactId>gwtupload</artifactId>
</dependency>
<dependency>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org