Skip to content

Commit

Permalink
LPS-56906 Fix NodeJS downloading process
Browse files Browse the repository at this point in the history
When checking shall we download 32 or 64 bit Node,
we will use "sun.arch.data.model" property instead "arch"
  • Loading branch information
ipeychev committed Jul 7, 2015
1 parent 72a54e0 commit d286e43
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions build-common-node.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,54 @@
<macrodef name="download-node">
<sequential>
<if>
<os arch="x86_32" family="mac" />
<and>
<os family="mac" />
<equals arg1="${sun.arch.data.model}" arg2="32" />
</and>
<then>
<propertycopy from="nodejs.url[osx32]" name="nodejs.url" />
</then>
<elseif>
<os arch="x86_64" family="mac" />
<and>
<os family="mac" />
<equals arg1="${sun.arch.data.model}" arg2="64" />
</and>
<then>
<propertycopy from="nodejs.url[osx64]" name="nodejs.url" />
</then>
</elseif>
<elseif>
<os arch="amd" family="unix" />
<and>
<os family="unix" />
<equals arg1="${sun.arch.data.model}" arg2="32" />
</and>
<then>
<propertycopy from="nodejs.url[linux32]" name="nodejs.url" />
</then>
</elseif>
<elseif>
<os arch="amd64" family="unix" />
<and>
<os family="unix" />
<equals arg1="${sun.arch.data.model}" arg2="64" />
</and>
<then>
<propertycopy from="nodejs.url[linux64]" name="nodejs.url" />
</then>
</elseif>
<elseif>
<os arch="x86" family="windows" />
<and>
<os family="windows" />
<equals arg1="${sun.arch.data.model}" arg2="32" />
</and>
<then>
<propertycopy from="nodejs.url[windows32]" name="nodejs.url" />
</then>
</elseif>
<elseif>
<os arch="amd64" family="windows" />
<and>
<os family="windows" />
<equals arg1="${sun.arch.data.model}" arg2="64" />
</and>
<then>
<propertycopy from="nodejs.url[windows64]" name="nodejs.url" />
</then>
Expand Down

0 comments on commit d286e43

Please sign in to comment.