]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | <?xml version="1.0"?>\r |
2 | <!--\r | |
3 | Copyright (c) 2006, Intel Corporation\r | |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | -->\r | |
a7828769 | 12 | <project name="CppTasks" default="CppTasks" basedir=".">\r |
878ddf1f | 13 | <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r |
14 | <property environment="env"/>\r | |
d7bb5113 | 15 | <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r |
878ddf1f | 16 | <property name="buildDir" value="build"/>\r |
d7bb5113 | 17 | <property name="installLocation" value="${WORKSPACE}/Tools/Jars"/>\r |
a7828769 | 18 | <target name="CppTasks" depends="install"/>\r |
878ddf1f | 19 | <target name="init">\r |
20 | <uptodate property="jar.newer" targetfile="${installLocation}/cpptasks.jar">\r | |
21 | <srcfiles dir="net" includes="**"/>\r | |
22 | </uptodate>\r | |
23 | </target>\r | |
24 | <target name="source" depends="init" unless="jar.newer">\r | |
25 | <mkdir dir="${buildDir}"/>\r | |
0d806227 | 26 | <javac srcdir="net" destdir="${buildDir}" source="1.4">\r |
878ddf1f | 27 | <classpath>\r |
d7bb5113 | 28 | <fileset dir="${WORKSPACE}/Tools/Jars">\r |
878ddf1f | 29 | <include name="*.jar"/>\r |
30 | </fileset>\r | |
31 | </classpath>\r | |
32 | </javac>\r | |
33 | </target>\r | |
34 | <target name="clean">\r | |
d7bb5113 | 35 | <delete includeemptydirs="true" failonerror="false" quiet="true">\r |
439656f1 | 36 | <fileset dir="${WORKSPACE}/Tools/Java/Source/Cpptasks" includes="${buildDir}"/>\r |
37 | </delete>\r | |
878ddf1f | 38 | </target>\r |
439656f1 | 39 | <target name="cleanall" depends="clean">\r |
d7bb5113 | 40 | <echo message="Removing Class Files and the Java Archive: cpptasks.jar"/>\r |
617cc72b | 41 | <delete file="${installLocation}/cpptasks.jar"/>\r |
878ddf1f | 42 | <if>\r |
43 | <available file="${installLocation}/cpptasks.jar"/>\r | |
44 | <then>\r | |
45 | <echo message="You must manually remove the file: ${installLocation}/cpptasks.jar"/>\r | |
46 | <echo message="Java has already loaded the file, and cannot remove it within ANT!"/>\r | |
47 | </then>\r | |
48 | </if>\r | |
49 | </target>\r | |
50 | <target name="install" depends="source" unless="jar.newer">\r | |
51 | <copy file="cpptasks.tasks" toDir="${buildDir}"/>\r | |
52 | <copy file="cpptasks.types" toDir="${buildDir}"/>\r | |
53 | <jar destfile="${installLocation}/cpptasks.jar"\r | |
54 | basedir="${buildDir}"\r | |
55 | includes="**"\r | |
56 | />\r | |
57 | </target>\r | |
58 | </project>\r |