Skip to content

Commit 6652a57

Browse files
authored
Update java-gradle-bootstrap.sh
Signed-off-by: SimiHunjan <simi.hunjan.k@gmail.com>
1 parent 94d04cc commit 6652a57

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/scripts/java-gradle-bootstrap.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ tasks.register('runExample', JavaExec) {
5656
if (!project.hasProperty('exampleClass')) {
5757
throw new GradleException("Missing -PexampleClass=<fully.qualified.ClassName>")
5858
}
59-
}
60-
classpath = sourceSets.examples.runtimeClasspath
61-
mainClass.set({ project.property('exampleClass') })
59+
// Set it to a concrete String value at execution time
60+
mainClass.set(project.property('exampleClass').toString())
6261
}
6362
6463
// Create a JavaExec task per discovered example: run_<FQN with dots replaced by underscores>

0 commit comments

Comments
 (0)