mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-26 07:49:28 +01:00
Add task nodeVersion and set system property node.dir
This commit is contained in:
parent
7d0f42c225
commit
b2e17e272b
17
build.gradle
17
build.gradle
@ -32,9 +32,18 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test.dependsOn 'nodeSetup'
|
|
||||||
|
|
||||||
node {
|
node {
|
||||||
version = '7.7.4'
|
version = '7.8.0'
|
||||||
// download = true
|
download = true
|
||||||
|
}
|
||||||
|
|
||||||
|
task nodeVersion(type: NodeTask) {
|
||||||
|
test.dependsOn it
|
||||||
|
options = ['-v']
|
||||||
|
script = file('scriptDoesNotExists.js')
|
||||||
|
doLast {
|
||||||
|
def nodeDir = nodeSetup.getNodeDir()
|
||||||
|
println nodeDir
|
||||||
|
test.systemProperty 'node.dir', nodeDir
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user