mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
Use NodeDir from the nodeSetup only if downloaded.
This commit is contained in:
parent
e8e066506e
commit
b795215b9b
@ -43,9 +43,11 @@ task nodeVersion(type: NodeTask) {
|
|||||||
options = ['-v']
|
options = ['-v']
|
||||||
script = file('scriptDoesNotExists.js')
|
script = file('scriptDoesNotExists.js')
|
||||||
doLast {
|
doLast {
|
||||||
def nodeDir = nodeSetup.getNodeDir()
|
if( node.download ) {
|
||||||
println nodeDir
|
def nodeDir = nodeSetup.getNodeDir() // dir is only valid if downloaded
|
||||||
test.systemProperty 'node.dir', nodeDir
|
println nodeDir
|
||||||
|
test.systemProperty 'node.dir', nodeDir
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user