| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2004, 2013 BREDEX GmbH. |
| 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 |
| --> |
| <project name="Jubula" default="cleanBuild-allComponents"> |
| <description> |
| main Jubula releng build script |
| </description> |
| |
| <target name="cleanBuild-allComponents"> |
| <antcall target="cleanBuild-dashboard" /> |
| <antcall target="cleanBuild-ite" /> |
| </target> |
| |
| <target name="cleanBuild-ite" description="Clean build for the ITE feature"> |
| <antcall target="cleanBuild-template"> |
| <param name="buildBaseDir" value="org.eclipse.jubula.releng" /> |
| </antcall> |
| </target> |
| |
| <target name="cleanBuild-dashboard" description="Clean build for the dashboard product"> |
| <!-- dynamically / temporarily remove external (optional) dependencies --> |
| <property name="dashboardProductLocation" value="org.eclipse.jubula.product.dashboard/org.eclipse.jubula.product.dashboard.product" /> |
| <copy file="${dashboardProductLocation}" tofile="${dashboardProductLocation}.tmp" overwrite="yes"> |
| <filterchain> |
| <linecontains negate="true"> |
| <contains value="com.bredexsw" /> |
| </linecontains> |
| </filterchain> |
| </copy> |
| <move tofile="${dashboardProductLocation}" file="${dashboardProductLocation}.tmp" overwrite="yes" /> |
| |
| <antcall target="cleanBuild-template"> |
| <param name="buildBaseDir" value="org.eclipse.jubula.releng.dashboard" /> |
| </antcall> |
| |
| <!-- revert the dynamically / temporarily remove external (optional) dependencies --> |
| <exec dir="${basedir}" executable="git"> |
| <arg value="checkout" /> |
| <arg value="${dashboardProductLocation}" /> |
| </exec> |
| </target> |
| |
| <target name="cleanBuild-template"> |
| <exec dir="${buildBaseDir}" executable="mvn" failonerror="true"> |
| <env key="MAVEN_OPTS" value="-Xmx512m" /> |
| <arg value="clean" /> |
| <arg value="verify" /> |
| <arg value="-V" /> |
| </exec> |
| </target> |
| |
| </project> |