File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
instrumentation/gwt-2.0/javaagent Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,17 @@ val launcher = javaToolchains.launcherFor {
6060 languageVersion.set(JavaLanguageVersion .of(8 ))
6161}
6262
63- class CompilerArgumentsProvider : CommandLineArgumentProvider {
63+ class CompilerArgumentsProvider (
64+ private val buildDir : Directory
65+ ) : CommandLineArgumentProvider {
6466 override fun asArguments (): Iterable <String > = listOf (
6567 // gwt module
6668 " test.gwt.Greeting" ,
67- " -war" , layout.buildDirectory. dir(" testapp/war" ).get( ).asFile.absolutePath,
69+ " -war" , buildDir. dir(" testapp/war" ).asFile.absolutePath,
6870 " -logLevel" , " INFO" ,
6971 " -localWorkers" , " 2" ,
7072 " -compileReport" ,
71- " -extra" , layout.buildDirectory. dir(" testapp/extra" ).get( ).asFile.absolutePath,
73+ " -extra" , buildDir. dir(" testapp/extra" ).asFile.absolutePath,
7274 // makes compile a bit faster
7375 " -draftCompile" ,
7476 )
@@ -87,7 +89,7 @@ tasks {
8789
8890 classpath(sourceSets[" testapp" ].java.srcDirs, sourceSets[" testapp" ].compileClasspath)
8991
90- argumentProviders.add(CompilerArgumentsProvider ())
92+ argumentProviders.add(CompilerArgumentsProvider (layout.buildDirectory.get() ))
9193
9294 if (findProperty(" testLatestDeps" ) as Boolean ) {
9395 javaLauncher.set(project.javaToolchains.launcherFor {
You can’t perform that action at this time.
0 commit comments