EXclude JDK6 dependent source and test

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2009-04-28 18:51:46 +00:00
parent 7adb7932e8
commit d86b15e30d
2 changed files with 27 additions and 4 deletions

View File

@ -374,7 +374,32 @@
</releases>
</repository>
</repositories>
</profile>
</profile>
<profile>
<!-- =============================================================== -->
<!-- Compiling with JDK5 compiler excludes classes that explicitly -->
<!-- import and use JDK6 classes/packages for annotation processing -->
<!-- =============================================================== -->
<id>jdk5-compiler</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<testExcludes>
<testExclude>**/TestCanonicalMetamodelGeneration.java</testExclude>
</testExcludes>
</configuration>
</plugin>
</plugins>
</build>
<activation>
<jdk>1.5</jdk>
</activation>
</profile>
</profiles>
<dependencies>

View File

@ -60,10 +60,8 @@
<configuration>
<excludes>
<exclude>**/AnnotationProcessor6.java</exclude>
<exclude>**/SourceAnnotationHandler.java</exclude>
</excludes>
<testExcludes>
<testExclude>**/TestCanonicalMetamodelGeneration.java</testExclude>
</testExcludes>
</configuration>
</plugin>
</plugins>