|
@@ -203,7 +203,49 @@
|
|
|
</target>
|
|
|
|
|
|
<target name="build-installers">
|
|
|
+ <property environment="env" />
|
|
|
<property file="nbproject/project.properties"/>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- handle different environment variables to split the long build-installers process -->
|
|
|
+ <if>
|
|
|
+ <and>
|
|
|
+ <not>
|
|
|
+ <isset property="env.BUILD_X64" />
|
|
|
+ </not>
|
|
|
+ <not>
|
|
|
+ <isset property="env.BUILD_X86" />
|
|
|
+ </not>
|
|
|
+ </and>
|
|
|
+ <then>
|
|
|
+ <echo message="No platform specified, building all platforms"/>
|
|
|
+ <property name="generate.installer.for.platforms" value="windows-x86 windows-x64 linux-x86 linux-x64 macosx"/>
|
|
|
+ </then>
|
|
|
+ <else>
|
|
|
+ <if>
|
|
|
+ <equals arg1="${env.BUILD_X64}" arg2="true"/>
|
|
|
+ <then>
|
|
|
+ <property name="temp.platform1" value="windows-x64 linux-x64 macosx "/>
|
|
|
+ <echo message="Building for the X64 architecture"/>
|
|
|
+ </then>
|
|
|
+ <else>
|
|
|
+ <property name="temp.platform1" value="" /> <!-- So it isn't undefined -->
|
|
|
+ </else>
|
|
|
+ </if>
|
|
|
+ <if>
|
|
|
+ <equals arg1="${env.BUILD_X86}" arg2="true"/>
|
|
|
+ <then>
|
|
|
+ <property name="temp.platform2" value="windows-x86 linux-x86" />
|
|
|
+ <echo message="Building for the X86 architecture "/>
|
|
|
+ </then>
|
|
|
+ <else>
|
|
|
+ <property name="temp.platform2" value="" /> <!-- So it isn't undefined -->
|
|
|
+ </else>
|
|
|
+ </if>
|
|
|
+ <property name="generate.installer.for.platforms" value="${temp.platform1}${temp.platform2}"/>
|
|
|
+ </else>
|
|
|
+ </if>
|
|
|
+
|
|
|
<ant antfile="template.xml" dir="nbi/stub">
|
|
|
<property name="suite.location" value="${basedir}"/>
|
|
|
<property name="suite.nbi.product.uid" value="${app.name}"/>
|
|
@@ -215,7 +257,7 @@
|
|
|
<property name="nbi.registries.management.jar" value="${basedir}/nbi/antlib/nbi-registries-management.jar"/>
|
|
|
<property name="nbi.engine.jar" value="${basedir}/nbi/antlib/nbi-engine.jar"/>
|
|
|
<property name="nbi.license.file" value="${basedir}/licenses-sdk.txt"/>
|
|
|
- <property name="generate.installer.for.platforms" value="windows-x86 windows-x64 linux-x86 linux-x64 macosx"/>
|
|
|
+ <!-- <property name="generate.installer.for.platforms" value="windows-x86 windows-x64 linux-x86 linux-x64 macosx"/> -->
|
|
|
<property name="generator-jdk-location-forward-slashes" value="${java.home}"/>
|
|
|
<property name="generated-installers-location-forward-slashes" value="${basedir}/build/installer"/>
|
|
|
<property name="pack200.enabled" value="true"/>
|