Adding merge command line program that merges multiple MSA modules into a single...
[people/mcb30/edk2.git] / edk2 / Tools / Source / Merge / build.xml
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
12 <project name="Merge" default="Merge" basedir=".">\r
13   <taskdef resource="net/sf/antcontrib/antlib.xml"/>\r
14   <property environment="env"/>\r
15   <property name="WORKSPACE" value="${env.WORKSPACE}"/>\r
16   <path id="classpath">\r
17     <fileset dir="${WORKSPACE}/Tools/Jars" includes="*.jar"/>\r
18     <fileset dir="${env.XMLBEANS_HOME}/lib" includes="*.jar"/>\r
19   </path>\r
20   <property name="buildDir" value="build"/>\r
21   <property name="installLocation" value="${WORKSPACE}/Tools/bin"/>\r
22   <target name="Merge" depends="install"/>\r
23   <target name="source">\r
24     <mkdir dir="${buildDir}"/>\r
25     <javac srcdir="src" destdir="${buildDir}">\r
26       <classpath refid="classpath"/>\r
27       <!-- <compilerarg value="-Xlint"/> -->\r
28     </javac>\r
29   </target>\r
30   <target name="clean">\r
31     <delete dir="${buildDir}"/>\r
32   </target>\r
33   <target name="cleanall">\r
34     <delete dir="${buildDir}"/>\r
35     <delete file="${installLocation}/Merge.jar"/>\r
36   </target>\r
37   <target name="install" depends="source">\r
38     <jar destfile="${installLocation}/Merge.jar">\r
39       <fileset dir="${buildDir}"/>\r
40     </jar>\r
41   </target>\r
42 </project>\r