Source code file content
core / build.xml
Size: 10589 bytes, 1 line
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="Mai_Tai_Bundle" default="dist" basedir=".">
<description>Builds the Mai Tai Bundle</description>
<target name="dist" depends="engine, plugins, launcher, signjars, jnlp, icons, samples"/>
<target name="init">
<property name="maitai.jnlp.codebase" value="file:/Users/josh/projects/current/maitai~core/dist/"/>
<buildnumber/>
<tstamp>
<format property="TIMESTAMP" pattern="yyyy-MM-dd_kk-mm"/>
</tstamp>
<echo message="timestamp = ${TIMESTAMP}"/>
<mkdir dir="dist"/>
<mkdir dir="dist/lib"/>
</target>
<target name="engine" depends="init">
<ant inheritall="false" antfile="Mai Tai Engine/build.xml" target="jar" />
<copy todir="dist" file="Mai Tai Engine/dist/ParticlePatch.jar"/>
<copy todir="dist/lib">
<fileset dir="Mai Tai Engine/dist/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="launcher" depends="init">
<ant inheritall="false" antfile="Launcher/build.xml" target="jar" />
<copy todir="dist" file="Launcher/dist/Launcher.jar"/>
<copy todir="dist/lib">
<fileset dir="Launcher/lib">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<target name="plugins" depends="init">
<mkdir dir="dist/plugins"/>
<ant inheritall="false" antfile="Fractal Patches/build.xml" target="jar" />
<copy todir="dist/plugins" file="Fractal Patches/dist/fractal.zip"/>
<ant inheritall="false" antfile="Network Patches/build.xml" target="jar" />
<copy todir="dist/plugins" file="Network Patches/dist/network.zip"/>
<ant inheritall="false" antfile="Particle Patches/build.xml" target="jar" />
<copy todir="dist/plugins" file="Particle Patches/dist/particles.zip"/>
</target>
<target name="signjars">
<unsignjar jar="dist/lib/JFXtras-0.5.jar"/>
<unsignjar jar="dist/lib/TiltLib2.jar"/>
<unsignjar jar="dist/ParticlePatch.jar"/>
<unsignjar jar="dist/Launcher.jar"/>
<property name="keystore" value="testkeystore"/>
<property name="alias" value="joshy2"/>
<signjar alias="${alias}" storepass="password" keystore="${keystore}">
<fileset dir="dist/lib">
<include name="*.jar"/>
</fileset>
</signjar>
<signjar alias="${alias}" storepass="password" keystore="${keystore}">
<fileset dir="dist/">
<include name="*.jar"/>
</fileset>
</signjar>
</target>
<target name="icons" depends="init">
<copy todir="dist">
<fileset dir="assets">
<include name="*.png"/>
</fileset>
</copy>
</target>
<target name="samples" depends="init">
<copy todir="dist">
<fileset dir=".">
<include name="Samples/*"/>
</fileset>
</copy>
</target>
<target name="jnlp" depends="init">
<copy todir="dist" file="splash.png"/>
<echoxml file="dist/MaiTai.jnlp">
<jnlp spec="1.0+" codebase="${maitai.jnlp.codebase}" href="MaiTai.jnlp">
<information>
<title>Mai Tai</title>
<vendor>Josh Marinacci</vendor>
<homepage href="http://kenai.com/projects/maitai/"/>
<description>Mai Tai Visual Art Tool</description>
<offline-allowed/>
<icon href="icon.png"/>
<icon kind="splash" href="splash.png"/>
<association mime-type="application-x/maitai" extensions="maitai">
<description>Mai Tai graphics file</description>
<icon href="doc-icon.png"/>
</association>
<shortcut online="false">
<desktop/>
<menu submenu="Mai Tai"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="background" policy="prompt-update"/>
<resources>
<j2se version='1.6+'
initial-heap-size="64m"
max-heap-size="512m"
java-vm-args="-d32"
/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="Launcher.jar" main="true" download="eager"/>
<jar href="lib/DeployHooks.jar" main="false" download="eager"/>
<jar href="lib/JoshFXCommons.jar" main="false" download="eager"/>
<jar href="ParticlePatch.jar" part="core" download="lazy"/>
<jar href="lib/JFXtras-0.5.jar" part="core" download="lazy"/>
<jar href="lib/jlayer.jar" part="core" download="lazy"/>
<property name="maitai.forcePluginRedownload" value="true"/>
<property name="maitai.buildNumber" value="${build.number}"/>
<property name="maitai.buildTimestamp" value="${TIMESTAMP}"/>
</resources>
<!--
<resources os="Mac OS X">
<j2se version='1.6+' java-vm-args="-d32" />
</resources>
-->
<resources os="Mac OS X" arch="i386">
<property name="maitai.enableMultitouch" value="true"/>
<jar href="lib/GlulogicMT.jar" part="multitouch" download="eager"/>
<nativelib href="lib/GlulogicMT_mac_natives.jar" part="multitouch" download="eager"/>
</resources>
<application-desc main-class="launcher.Main">
</application-desc>
</jnlp>
</echoxml>
<echoxml file="dist/MaiTai_gc.jnlp">
<!--
<jnlp spec="1.0+" codebase="http://projects.joshy.org/MaiTai/" href="MaiTai.jnlp">
-->
<jnlp spec="1.0+" codebase="${maitai.jnlp.codebase}" href="MaiTai.jnlp">
<information>
<title>Mai Tai</title>
<vendor>Josh Marinacci</vendor>
<homepage href="http://kenai.com/projects/maitai/"/>
<description>Mai Tai Visual Art Tool</description>
<offline-allowed/>
<icon href="icon.png"/>
<icon kind="splash" href="splash.png"/>
<association mime-type="application-x/maitai" extensions="maitai">
<description>Mai Tai graphics file</description>
<icon href="doc-icon.png"/>
</association>
<shortcut online="false">
<desktop/>
<menu submenu="Mai Tai"/>
</shortcut>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="prompt-update"/>
<resources>
<j2se version='1.6+'
initial-heap-size="64m"
max-heap-size="512m"
java-vm-args="-verbose:gc -XX:+PrintGCTimeStamps"
/>
<extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
<jar href="Launcher.jar" main="true" download="eager"/>
<jar href="lib/DeployHooks.jar" main="false" download="eager"/>
<jar href="ParticlePatch.jar" part="core" download="lazy"/>
<jar href="lib/JFXtras-0.5.jar" part="core" download="lazy"/>
<jar href="lib/jlayer.jar" part="core" download="lazy"/>
<property name="maitai.forcePluginRedownload" value="true"/>
<property name="maitai.buildNumber" value="${build.number}"/>
<property name="maitai.buildTimestamp" value="${TIMESTAMP}"/>
</resources>
<application-desc main-class="launcher.Main">
</application-desc>
</jnlp>
</echoxml>
</target>
<target name="clean">
<delete dir="dist"/>
</target>
<macrodef name="unsignjar">
<attribute name="jar"/>
<sequential>
<!-- Remove any existing signatures from a JAR file. -->
<tempfile prefix="usignjar-" destdir="${java.io.tmpdir}" property="temp.file"/>
<echo message="Removing signatures from JAR: @{jar}"/>
<mkdir dir="${temp.file}"/>
<unjar src="@{jar}" dest="${temp.file}">
<patternset>
<include name="**"/>
<exclude name="META-INF/*.SF"/>
<exclude name="META-INF/*.DSA"/>
<exclude name="META-INF/*.RSA"/>
</patternset>
</unjar>
<delete file="@{jar}" failonerror="true"/>
<!-- Touch it in case the file didn't have a manifest.
Otherwise the JAR task below will fail if the manifest
file doesn't exist. -->
<mkdir dir="${temp.file}/META-INF"/>
<touch file="${temp.file}/META-INF/MANIFEST.MF"/>
<jar destfile="@{jar}"
basedir="${temp.file}"
includes="**"
manifest="${temp.file}/META-INF/MANIFEST.MF"/>
<delete dir="${temp.file}" failonerror="true"/>
</sequential>
</macrodef>
<target name="promote">
<echo message="doing a promotion to directory ${maitai.promote.dir}"/>
<mkdir dir="${maitai.promote.dir}"/>
<copy todir="${maitai.promote.dir}">
<fileset dir="dist">
<include name="**"/>
</fileset>
</copy>
</target>
</project>





