test need to be compiled in UTF-8

This commit is contained in:
Strong Liu 2011-11-21 10:16:30 +08:00
parent 62d50aa987
commit ff9eb6d1b2
4 changed files with 5 additions and 1 deletions

View File

@ -193,6 +193,7 @@ subprojects { subProject ->
compileJava.dependsOn generateMainLoggingClasses
compileJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
compileTestJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
manifest.mainAttributes(
provider: 'gradle',

View File

@ -30,6 +30,7 @@ dependencies {
testRuntime( 'jaxen:jaxen:1.1' )
testRuntime( libraries.javassist )
}
compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
manifest.mainAttributes(
'Main-Class': 'org.hibernate.Version'

View File

@ -26,6 +26,7 @@ sourceSets.test {
generatedJpaMetamodelSrcDir = file( "${buildDir}/generated-src/jpamodelgen/${name}" )
java.srcDir generatedJpaMetamodelSrcDir
}
compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
sourceSets {
matrix {
java {

View File

@ -28,6 +28,7 @@ sourceSets {
}
}
}
compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
ideaModule {
testSourceDirs += file( 'src/matrix/java')
testSourceDirs += file( 'src/matrix/resources')