Commit c13971ee authored by Noric Couderc's avatar Noric Couderc
Browse files

Made Plugin only set property

Instead of trying to manipulate tasks directly, the plugin just sets
and extra property you should have access to.
parent 3278e571
......@@ -63,17 +63,9 @@ class PAPIPlugin implements Plugin<Project> {
// We want to define some properties...
void apply(Project project) {
def testTask = project.getTasks().getByName('test');
def library_path = "$papi_path:../papi-java/".toString()
testTask.systemProperty('java.library.path', library_path)
def runTask = project.getTasks().findByName('run');
if (runTask != null) {
println(runTask)
// runTask.systemProperty('java.library.path', library_path)
runTask.setApplicationDefaultJvmArgs(["-Djava.library.path=$library_path"])
}
project.ext.papi_library_path = library_path
}
}
......@@ -97,6 +89,7 @@ subprojects {
test {
useJUnitPlatform()
systemProperty "java.library.path", papi_library_path
testLogging {
exceptionFormat = 'full'
......@@ -104,8 +97,6 @@ subprojects {
dependsOn cleanTest
}
}
project(':benchmarking-synthetic') {
......@@ -132,6 +123,17 @@ project(':benchmarking-traces') {
}
}
project(':core') {
apply plugin: PAPIPlugin
apply plugin: 'application'
run {
systemProperty 'java.library.path', papi_library_path
mainClassName = 'se.lth.cs.Main'
workingDir = '..'
}
}
def jmhOptionsMap = [
"resultFormat": "-rf",
"benchmarkParameters" : "-p",
......
......@@ -15,11 +15,6 @@ compileJava {
targetCompatibility = 8
}
run {
mainClassName = 'se.lth.cs.Main'
workingDir = '..'
}
dependencies {
implementation 'junit:junit:4.13.1'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment