Clean up classpath for iajc Ant task
This commit is contained in:
parent
66735d01cf
commit
ef75bd8441
|
@ -56,6 +56,7 @@ compileTestJava {
|
||||||
|
|
||||||
ext.sourceCompatibility = project(":spring-core").compileTestJava.sourceCompatibility
|
ext.sourceCompatibility = project(":spring-core").compileTestJava.sourceCompatibility
|
||||||
ext.targetCompatibility = project(":spring-core").compileTestJava.targetCompatibility
|
ext.targetCompatibility = project(":spring-core").compileTestJava.targetCompatibility
|
||||||
|
ext.pathSeparator = System.getProperty('path.separator')
|
||||||
|
|
||||||
doLast{
|
doLast{
|
||||||
ant.taskdef(resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties",
|
ant.taskdef(resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties",
|
||||||
|
@ -66,8 +67,7 @@ compileTestJava {
|
||||||
destDir: outputDir.absolutePath,
|
destDir: outputDir.absolutePath,
|
||||||
aspectPath: jar.archivePath,
|
aspectPath: jar.archivePath,
|
||||||
inpath: configurations.ajInpath.asPath,
|
inpath: configurations.ajInpath.asPath,
|
||||||
classpath: sourceSets.test.runtimeClasspath.asPath + jar.archivePath +
|
classpath: sourceSets.test.runtimeClasspath.asPath + pathSeparator + jar.archivePath + pathSeparator + configurations.rt.asPath) {
|
||||||
System.getProperty("path.separator") + configurations.rt.asPath) {
|
|
||||||
sourceroots {
|
sourceroots {
|
||||||
sourceSets.test.java.srcDirs.each {
|
sourceSets.test.java.srcDirs.each {
|
||||||
pathelement(location:it.absolutePath)
|
pathelement(location:it.absolutePath)
|
||||||
|
|
Loading…
Reference in New Issue