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 ad...@apache.org on 2016/03/29 10:25:52 UTC
[1/2] james-project git commit: remove eclipse warnings introduced
recently
Repository: james-project
Updated Branches:
refs/heads/master 4e92aefcc -> efed669b3
remove eclipse warnings introduced recently
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/233a71dc
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/233a71dc
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/233a71dc
Branch: refs/heads/master
Commit: 233a71dc2323e1ca3c91601aa50fe644e2af04b9
Parents: 4e92aef
Author: Antoine Duprat <ad...@linagora.com>
Authored: Thu Mar 24 14:53:09 2016 +0100
Committer: Antoine Duprat <ad...@linagora.com>
Committed: Thu Mar 24 14:53:09 2016 +0100
----------------------------------------------------------------------
.../store/mail/model/AbstractMessageMapperTest.java | 2 +-
.../mail/model/impl/SimpleMailboxMessageTest.java | 16 ++++++++++++----
2 files changed, 13 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/233a71dc/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java
index 30e261d..923c284 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/AbstractMessageMapperTest.java
@@ -444,7 +444,7 @@ public abstract class AbstractMessageMapperTest<Id extends MailboxId> {
message7.setModSeq(messageMapper.getHighestModSeq(benwaInboxMailbox));
assertThat(messageMapper.getLastUid(benwaInboxMailbox)).isGreaterThan(message6.getUid());
- MailboxMessage result = messageMapper.findInMailbox(benwaInboxMailbox,
+ MailboxMessage<Id> result = messageMapper.findInMailbox(benwaInboxMailbox,
MessageRange.one(messageMapper.getLastUid(benwaInboxMailbox)),
MessageMapper.FetchType.Full,
LIMIT)
http://git-wip-us.apache.org/repos/asf/james-project/blob/233a71dc/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java
index 17761a3..135dac4 100644
--- a/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java
+++ b/mailbox/store/src/test/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessageTest.java
@@ -60,15 +60,23 @@ public class SimpleMailboxMessageTest {
@Test
public void testInputStreamSize() throws IOException {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
- byteArrayOutputStream.write(MESSAGE.getFullContent());
- assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT.getBytes().length);
+ try {
+ byteArrayOutputStream.write(MESSAGE.getFullContent());
+ assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT.getBytes().length);
+ } finally {
+ byteArrayOutputStream.close();
+ }
}
@Test
public void testInputStreamSizeSpecialCharacters() throws IOException {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
- byteArrayOutputStream.write(MESSAGE_SPECIAL_CHAR.getFullContent());
- assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT_SPECIAL_CHAR.getBytes().length);
+ try {
+ byteArrayOutputStream.write(MESSAGE_SPECIAL_CHAR.getFullContent());
+ assertThat(byteArrayOutputStream.size()).isEqualTo(MESSAGE_CONTENT_SPECIAL_CHAR.getBytes().length);
+ } finally {
+ byteArrayOutputStream.close();
+ }
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[2/2] james-project git commit: Fix compilation error when no maven
profile given
Posted by ad...@apache.org.
Fix compilation error when no maven profile given
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/efed669b
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/efed669b
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/efed669b
Branch: refs/heads/master
Commit: efed669b3d02a75e1993fb52549909e13e8e8db2
Parents: 233a71d
Author: Antoine Duprat <ad...@linagora.com>
Authored: Thu Mar 24 15:07:28 2016 +0100
Committer: Antoine Duprat <ad...@linagora.com>
Committed: Tue Mar 29 10:25:03 2016 +0200
----------------------------------------------------------------------
mpt/impl/smtp/cassandra/pom.xml | 32 +++++++++++++++-
server/container/guice/cassandra-guice/pom.xml | 41 ++++++++++++++++-----
server/container/guice/pom.xml | 17 +--------
3 files changed, 65 insertions(+), 25 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/efed669b/mpt/impl/smtp/cassandra/pom.xml
----------------------------------------------------------------------
diff --git a/mpt/impl/smtp/cassandra/pom.xml b/mpt/impl/smtp/cassandra/pom.xml
index ab2e539..cc46cd1 100644
--- a/mpt/impl/smtp/cassandra/pom.xml
+++ b/mpt/impl/smtp/cassandra/pom.xml
@@ -13,6 +13,10 @@
<artifactId>apache-james-mpt-smtp-cassandra</artifactId>
<packaging>jar</packaging>
+ <properties>
+ <cassandra.includes>empty</cassandra.includes>
+ </properties>
+
<profiles>
<profile>
<id>noTest</id>
@@ -210,6 +214,12 @@
</build>
</profile>
<profile>
+ <id>cassandra</id>
+ <properties>
+ <cassandra.includes>**/*.java</cassandra.includes>
+ </properties>
+ </profile>
+ <profile>
<id>disable-animal-sniffer</id>
<activation>
<jdk>[1.6,)</jdk>
@@ -230,8 +240,28 @@
</build>
</profile>
</profiles>
- <build>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/suite/*.java</exclude>
+ <exclude>**/suite/**/*.java</exclude>
+ </excludes>
+ <includes>
+ <include>${cassandra.includes}</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>
http://git-wip-us.apache.org/repos/asf/james-project/blob/efed669b/server/container/guice/cassandra-guice/pom.xml
----------------------------------------------------------------------
diff --git a/server/container/guice/cassandra-guice/pom.xml b/server/container/guice/cassandra-guice/pom.xml
index 31d62da..b66fa2e 100644
--- a/server/container/guice/cassandra-guice/pom.xml
+++ b/server/container/guice/cassandra-guice/pom.xml
@@ -35,15 +35,9 @@
<name>Apache James :: Server :: Cassandra - guice injection</name>
<description>An advanced email server - Cassandra backend with guice injection</description>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- </plugin>
- </plugins>
- </build>
+ <properties>
+ <cassandra.includes>empty</cassandra.includes>
+ </properties>
<profiles>
<profile>
@@ -268,6 +262,12 @@
</dependencies>
</profile>
<profile>
+ <id>cassandra</id>
+ <properties>
+ <cassandra.includes>**/*.java</cassandra.includes>
+ </properties>
+ </profile>
+ <profile>
<id>disable-animal-sniffer</id>
<activation>
<jdk>[1.6,)</jdk>
@@ -288,4 +288,27 @@
</build>
</profile>
</profiles>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/suite/*.java</exclude>
+ <exclude>**/suite/**/*.java</exclude>
+ </excludes>
+ <includes>
+ <include>${cassandra.includes}</include>
+ </includes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
http://git-wip-us.apache.org/repos/asf/james-project/blob/efed669b/server/container/guice/pom.xml
----------------------------------------------------------------------
diff --git a/server/container/guice/pom.xml b/server/container/guice/pom.xml
index 8c695e8..14f774a 100644
--- a/server/container/guice/pom.xml
+++ b/server/container/guice/pom.xml
@@ -37,21 +37,8 @@
<modules>
<module>guice-common</module>
+ <module>cassandra-guice</module>
+ <module>memory-guice</module>
</modules>
-
- <profiles>
- <profile>
- <id>cassandra</id>
- <modules>
- <module>cassandra-guice</module>
- </modules>
- </profile>
- <profile>
- <id>inmemory</id>
- <modules>
- <module>memory-guice</module>
- </modules>
- </profile>
- </profiles>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org