Author: oheger
Date: Wed Feb 16 20:38:05 2011
New Revision: 1071389
URL: http://svn.apache.org/viewvc?rev=1071389&view=rev
Log:
Added a profile for excluding classes depending on Java 1.5 libraries when
building under Java 1.4.
Modified:
commons/proper/configuration/trunk/pom.xml
Modified: commons/proper/configuration/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/pom.xml?rev=1071389&r1=1071388&r2=1071389&view=diff
==============================================================================
--- commons/proper/configuration/trunk/pom.xml (original)
+++ commons/proper/configuration/trunk/pom.xml Wed Feb 16 20:38:05 2011
@@ -544,6 +544,46 @@
</build>
<profiles>
<profile>
+ <!-- A profile for building with JDK 1.4. This profile excludes some
+ classes with dependencies to libraries requiring Java 1.5+.
+ -->
+ <id>java-1.4</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/VFSFileSystem.java</exclude>
+ <exclude>**/VFSFileChangedReloadingStrategy.java</exclude>
+ </excludes>
+ <testExcludes>
+ <exclude>**/TestVFSFileChangedReloadingStrategy.java</exclude>
+ <exclude>**/TestVFSConfigurationBuilder.java</exclude>
+ <exclude>**/TestWebdavConfigurationBuilder.java</exclude>
+ </testExcludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>**/TestVFSFileChangedReloadingStrategy.java</exclude>
+ <exclude>**/TestVFSConfigurationBuilder.java</exclude>
+ <exclude>**/TestWebdavConfigurationBuilder.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
<id>webdav</id>
<activation>
<activeByDefault>false</activeByDefault>