You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by pp...@apache.org on 2009/04/28 20:51:47 UTC

svn commit: r769497 - in /openjpa/trunk: openjpa-persistence-jdbc/pom.xml openjpa-persistence/pom.xml

Author: ppoddar
Date: Tue Apr 28 18:51:46 2009
New Revision: 769497

URL: http://svn.apache.org/viewvc?rev=769497&view=rev
Log:
EXclude JDK6 dependent source and test

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/pom.xml
    openjpa/trunk/openjpa-persistence/pom.xml

Modified: openjpa/trunk/openjpa-persistence-jdbc/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/pom.xml?rev=769497&r1=769496&r2=769497&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/pom.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/pom.xml Tue Apr 28 18:51:46 2009
@@ -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>

Modified: openjpa/trunk/openjpa-persistence/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/pom.xml?rev=769497&r1=769496&r2=769497&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/pom.xml (original)
+++ openjpa/trunk/openjpa-persistence/pom.xml Tue Apr 28 18:51:46 2009
@@ -60,10 +60,8 @@
 		            <configuration>
                     <excludes>
                         <exclude>**/AnnotationProcessor6.java</exclude>
+                        <exclude>**/SourceAnnotationHandler.java</exclude>
                     </excludes>
-                    <testExcludes>
-                        <testExclude>**/TestCanonicalMetamodelGeneration.java</testExclude>
-                    </testExcludes>
 		            </configuration>
 		        </plugin>
 		      </plugins>