blob: bdcc459d40440f0ab1d8c35320ed5c14ef99b5b7 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Copyright (c) 2014, 2015 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Eike Stepper - initial API and implementation
-->
<project name="Oomph" default="deploy">
<property file="${user.home}/org.eclipse.oomph.releng.deploy_1.0.properties" />
<property file="deploy.properties" />
<property file="deploy.properties.template" />
<property name="source" location="${git.clone.location}\products\org.eclipse.oomph.setup.installer.product\target\products\org.eclipse.oomph.setup.installer.product-${platform.suffix}.zip" />
<target name="init.win32" if="os.win32">
<property name="launcher.exe" location="${target}/eclipse-inst.exe" />
<property name="launcher.ini" location="${target}/eclipse-inst.ini" />
</target>
<target name="init.macosx" if="os.macosx">
<property name="launcher.exe" location="${target}/Eclipse Installer.app/Contents/MacOS/eclipse-inst" />
<property name="launcher.ini" location="${target}/Eclipse Installer.app/Contents/Eclipse/eclipse-inst.ini" />
</target>
<target name="init.linux" if="os.linux">
<property name="launcher.exe" location="${target}/eclipse-inst" />
<property name="launcher.ini" location="${target}/eclipse-inst.ini" />
</target>
<target name="init" depends="init.win32,init.macosx,init.linux">
<echo message="Source: ${source}" />
<echo message="Launcher: ${launcher.exe}" />
<echo message="Ini-file: ${launcher.ini}" />
</target>
<target name="clean" depends="init">
<delete verbose="false" failonerror="false" includeemptydirs="true">
<fileset dir="${target}" defaultexcludes="false">
<include name="**/*" />
</fileset>
</delete>
</target>
<target name="deploy" depends="clean">
<unzip dest="${target}" src="${source}" />
<echo message="-Doomph.installer.update.url=${git.clone.uri}/products/org.eclipse.oomph.setup.installer.product/target/repository${line.separator}" file="${launcher.ini}" append="true" />
<echo message="-Doomph.update.url=${git.clone.uri}/sites/org.eclipse.oomph.site/target/repository${line.separator}" file="${launcher.ini}" append="true" />
<chmod file="${launcher.exe}" perm="a+x" />
</target>
<target name="run" depends="init">
<exec executable="${launcher.exe}" />
</target>
<target name="debug" depends="init">
<exec executable="${launcher.exe}">
<arg value="-vmargs" />
<arg value="-Xdebug" />
<arg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8123" />
</exec>
</target>
</project>