METAGEN-11 Upgrade JPA dependency to hibernate-jpa-2.0-api-1.0.0-CR-1
This commit is contained in:
parent
41c79d533c
commit
33d734f33a
|
@ -15,9 +15,9 @@
|
|||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.java-persistence</groupId>
|
||||
<artifactId>jpa-api</artifactId>
|
||||
<version>2.0-cr-1</version>
|
||||
<groupId>org.hibernate.javax.persistence</groupId>
|
||||
<artifactId>hibernate-jpa-2.0-api</artifactId>
|
||||
<version>1.0.0-CR-1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
|
|
|
@ -58,6 +58,7 @@ public abstract class CompilationTest {
|
|||
compile();
|
||||
}
|
||||
catch ( Exception e ) {
|
||||
e.printStackTrace( );
|
||||
fail( "Unable to compile test sources. " + e.getMessage() );
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +115,11 @@ public abstract class CompilationTest {
|
|||
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 );
|
||||
}
|
||||
return javaFiles;
|
||||
|
|
Loading…
Reference in New Issue