blob: 8bc36f3ec90d00949dc7d5707ac3f95a1b7f5a51 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
Copyright (c) 2005, 2015 IBM Corporation 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
IBM Corporation - initial API and implementation
<project name="Build Snippet support JAR" default="build" basedir="..">
<target name="build" description="Cleans, builds and refreshes the impacted resources" depends="clean, snippetsupport.jar"/>
<!-- Empty target for "After a Clean" task (we don't want to rebuild the Jar here, e.g. on checkout). -->
<target name="dummy_clean"/>
<target name="init" depends="properties">
<property name="temp.folder" value="${basedir}/temp.folder"/>
<property name="build.result.folder" value="${basedir}"/>
<target name="properties" if="eclipse.running">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
<target name="snippetsupport.jar" depends="init" description="Creates the snippetsupport.jar">
<property name="destdir" value="${temp.folder}/snippetsupport.jar.bin"/>
<delete dir="${destdir}"/>
<mkdir dir="${destdir}"/>
<!-- Keep target level as low as possible!
snippetsupport.jar is used on the classpath of a separate VM that
uses the JRE that's on the build path of the scrapbook file's project. -->
<javac target="jsr14" source="1.5" destdir="${destdir}"
<src path="Snippet Support/"/>
<mkdir dir="${build.result.folder}"/>
<jar destfile="${build.result.folder}/snippetsupport.jar" basedir="${destdir}"/>
<delete dir="${temp.folder}"/>
<target name="clean" depends="init">
<delete file="${build.result.folder}/snippetsupport.jar"/>
<delete dir="${temp.folder}"/>