@@ -120,8 +120,20 @@ limitations under the License.
120120 <mkdir dir =" ${ build.output.js } " />
121121 <mkdir dir =" ${ build.output.dyncode } " />
122122 <mkdir dir =" ${ build.output.test } " />
123-
123+ <exec executable =" node" outputproperty =" node.version" >
124+ <arg value =" --version" />
125+ </exec >
126+ <condition property =" node16orLower" >
127+ <matches string =" ${ node.version } " pattern =" ^v([0-9]\.|1[0-6]\.)" />
128+ </condition >
129+ <condition property =" node17orHigher" >
130+ <matches string =" ${ node.version } " pattern =" ^v(1[7-9]\.|[2-9][0-9]\.)" />
131+ </condition >
132+ <condition property =" node.options" value =" --max-old-space-size=3300 --openssl-legacy-provider" else =" --max-old-space-size=3300" >
133+ <isset property =" node17orHigher" />
134+ </condition >
124135 </target >
136+
125137 <!-- =================================================================== -->
126138 <!-- Create the core jar file -->
127139 <!-- =================================================================== -->
@@ -135,7 +147,7 @@ limitations under the License.
135147 <sequential >
136148 <echo >executing webpack</echo >
137149 <exec osfamily =" unix" executable =" webpack-cli" dir =" ${ build.base } " failifexecutionfails =" @{ failquit } " failonerror =" @{ failquit } " >
138- <env key =" NODE_OPTIONS" value =" --max-old-space-size=3300 " />
150+ <env key =" NODE_OPTIONS" value =" ${ node.options } " />
139151 <arg value =" --env.assembly=@{ assembly } " />
140152 <arg value =" --env.size=@{ size } " />
141153 <arg value =" --env.compilation=@{ compilation } " />
@@ -146,7 +158,7 @@ limitations under the License.
146158 <arg value =" --mode=@{ mode } " />
147159 </exec >
148160 <exec osfamily =" windows" executable =" webpack-cli.bat" dir =" ${ build.base } " failifexecutionfails =" @{ failquit } " failonerror =" @{ failquit } " >
149- <env key =" NODE_OPTIONS" value =" --max-old-space-size=3300 " />
161+ <env key =" NODE_OPTIONS" value =" ${ node.options } " />
150162 <arg value =" --env.assembly=@{ assembly } " />
151163 <arg value =" --env.size=@{ size } " />
152164 <arg value =" --env.compilation=@{ compilation } " />
@@ -527,11 +539,11 @@ limitations under the License.
527539 <echo >Executing webpack</echo >
528540 <exec osfamily =" unix" executable =" webpack-cli" dir =" ${ build.demo } /scripts" failifexecutionfails =" @{ failquit } " failonerror =" @{ failquit } " >
529541 <env key =" PATH" path =" ${ env.PATH } :${ nm.bin } " />
530- <env key =" NODE_OPTIONS" value =" --max-old-space-size=3300 " />
542+ <env key =" NODE_OPTIONS" value =" ${ node.options } " />
531543 </exec >
532544 <exec osfamily =" windows" executable =" webpack-cli.bat" dir =" ${ build.demo } /scripts" failifexecutionfails =" @{ failquit } " failonerror =" @{ failquit } " >
533545 <env key =" PATH" path =" ${ env.PATH } :${ nm.bin } " />
534- <env key =" NODE_OPTIONS" value =" --max-old-space-size=3300 " />
546+ <env key =" NODE_OPTIONS" value =" ${ node.options } " />
535547 </exec >
536548 </sequential >
537549 </target >
@@ -540,11 +552,11 @@ limitations under the License.
540552 <echo >Executing webpack</echo >
541553 <exec osfamily =" unix" executable =" webpack-cli" dir =" ${ build.demo } /scripts" failifexecutionfails =" @{ failquit } " failonerror =" @{ failquit } " >
542554 <env key =" PATH" path =" ${ env.PATH } :${ nm.bin } " />
543- <env key =" NODE_OPTIONS" value =" --max-old-space-size=3300 " />
555+ <env key =" NODE_OPTIONS" value =" ${ node.options } " />
544556 </exec >
545557 <exec osfamily =" windows" executable =" webpack-cli.bat" dir =" ${ build.demo } /scripts" failifexecutionfails =" @{ failquit } " failonerror =" @{ failquit } " >
546558 <env key =" PATH" path =" ${ env.PATH } :${ nm.bin } " />
547- <env key =" NODE_OPTIONS" value =" --max-old-space-size=3300 " />
559+ <env key =" NODE_OPTIONS" value =" ${ node.options } " />
548560 </exec >
549561 </sequential >
550562 </target >
@@ -860,7 +872,7 @@ limitations under the License.
860872 <mkdir dir =" ${ build.apidocs } " />
861873 <copy todir =" ${ build.apidocs } " >
862874 <fileset dir =" ${ build.jsdoc } " >
863- <include name =" **/*.html " />
875+ <include name =" **/*.* " />
864876 </fileset >
865877 </copy >
866878 </target >
@@ -1000,7 +1012,7 @@ limitations under the License.
10001012 <attribute name =" suite" />
10011013 <attribute name =" failquit" />
10021014 <sequential >
1003- <java dir=" ${ build.test } "
1015+ <java dir =" ${ build.test } "
10041016 classname =" io.apigee.trireme.shell.Main"
10051017 fork =" true"
10061018 maxmemory =" 4096m"
0 commit comments