mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +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']
|
||||
script = file('scriptDoesNotExists.js')
|
||||
doLast {
|
||||
def nodeDir = nodeSetup.getNodeDir()
|
||||
println nodeDir
|
||||
test.systemProperty 'node.dir', nodeDir
|
||||
if( node.download ) {
|
||||
def nodeDir = nodeSetup.getNodeDir() // dir is only valid if downloaded
|
||||
println nodeDir
|
||||
test.systemProperty 'node.dir', nodeDir
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user