METAGEN-11 Upgrade JPA dependency to hibernate-jpa-2.0-api-1.0.0-CR-1

This commit is contained in:
Steve Ebersole 2009-12-13 00:17:33 +00:00 committed by Strong Liu
parent 41c79d533c
commit 33d734f33a
2 changed files with 9 additions and 4 deletions

View File

@ -15,9 +15,9 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.hibernate.java-persistence</groupId> <groupId>org.hibernate.javax.persistence</groupId>
<artifactId>jpa-api</artifactId> <artifactId>hibernate-jpa-2.0-api</artifactId>
<version>2.0-cr-1</version> <version>1.0.0-CR-1</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.testng</groupId> <groupId>org.testng</groupId>

View File

@ -58,6 +58,7 @@ public abstract class CompilationTest {
compile(); compile();
} }
catch ( Exception e ) { catch ( Exception e ) {
e.printStackTrace( );
fail( "Unable to compile test sources. " + e.getMessage() ); fail( "Unable to compile test sources. " + e.getMessage() );
} }
} }
@ -114,7 +115,11 @@ public abstract class CompilationTest {
return name.endsWith( ".java" ) && !name.endsWith( "Test.java" ); return name.endsWith( ".java" ) && !name.endsWith( "Test.java" );
} }
}; };
for ( File file : packageDir.listFiles( javaFileFilter ) ) { final File[] files = packageDir.listFiles( javaFileFilter );
if (files == null) {
throw new RuntimeException( "Cannot find package directory (is your base dir correct?): " + packageDirName );
}
for ( File file : files ) {
javaFiles.add( file ); javaFiles.add( file );
} }
return javaFiles; return javaFiles;