+++ /dev/null
-<?xml version="1.0"?>\r
-<!--\r
-Copyright (c) 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
--->\r
-<project name="CppTasks" default="CppTasks" basedir=".">\r
- <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
- <property environment="env"/>\r
- <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r
- <property name="buildDir" value="build"/>\r
- <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>\r
- <target name="CppTasks" depends="install"/>\r
- <target name="init">\r
- <uptodate property="jar.newer" targetfile="${installLocation}/cpptasks.jar">\r
- <srcfiles dir="net" includes="**"/>\r
- </uptodate>\r
- </target>\r
- <target name="source" depends="init" unless="jar.newer">\r
- <mkdir dir="${buildDir}"/>\r
- <javac srcdir="net" destdir="${buildDir}" source="1.4">\r
- <classpath>\r
- <fileset dir="${WORKSPACE}/Tools/Jars">\r
- <include name="*.jar"/>\r
- </fileset>\r
- </classpath>\r
- </javac>\r
- </target>\r
- <target name="clean">\r
- <delete includeemptydirs="true" failonerror="false" quiet="true">\r
- <fileset dir="${WORKSPACE}/Tools/Java/Source/Cpptasks" includes="${buildDir}"/>\r
- </delete>\r
- </target>\r
- <target name="cleanall" depends="clean">\r
- <echo message="Removing Class Files and the Java Archive: cpptasks.jar"/>\r
- <delete file="${installLocation}/cpptasks.jar"/>\r
- <if>\r
- <available file="${installLocation}/cpptasks.jar"/>\r
- <then>\r
- <echo message="You must manually remove the file: ${installLocation}/cpptasks.jar"/>\r
- <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r
- </then>\r
- </if>\r
- </target>\r
- <target name="install" depends="source" unless="jar.newer">\r
- <copy file="cpptasks.tasks" toDir="${buildDir}"/>\r
- <copy file="cpptasks.types" toDir="${buildDir}"/>\r
- <jar destfile="${installLocation}/cpptasks.jar"\r
- basedir="${buildDir}"\r
- includes="**"\r
- />\r
- </target>\r
-</project>\r