source: proiecte/HadoopJUnit/hadoop-0.20.1/src/contrib/eclipse-plugin/build.xml @ 176

Last change on this file since 176 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 3.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3<!--
4   Licensed to the Apache Software Foundation (ASF) under one or more
5   contributor license agreements.  See the NOTICE file distributed with
6   this work for additional information regarding copyright ownership.
7   The ASF licenses this file to You under the Apache License, Version 2.0
8   (the "License"); you may not use this file except in compliance with
9   the License.  You may obtain a copy of the License at
10
11       http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18-->
19
20<project default="jar" name="eclipse-plugin">
21
22  <import file="../build-contrib.xml"/>
23
24  <path id="eclipse-sdk-jars">
25    <fileset dir="${eclipse.home}/plugins/">
26      <include name="org.eclipse.ui*.jar"/>
27      <include name="org.eclipse.jdt*.jar"/>
28      <include name="org.eclipse.core*.jar"/>
29      <include name="org.eclipse.equinox*.jar"/>
30      <include name="org.eclipse.debug*.jar"/>
31      <include name="org.eclipse.osgi*.jar"/>
32      <include name="org.eclipse.swt*.jar"/>
33      <include name="org.eclipse.jface*.jar"/>
34
35      <include name="org.eclipse.team.cvs.ssh2*.jar"/>
36      <include name="com.jcraft.jsch*.jar"/>
37    </fileset> 
38  </path>
39
40  <!-- Override classpath to include Eclipse SDK jars -->
41  <path id="classpath">
42    <pathelement location="${build.classes}"/>
43    <pathelement location="${hadoop.root}/build/classes"/>
44    <path refid="eclipse-sdk-jars"/>
45  </path>
46
47  <!-- Skip building if eclipse.home is unset. -->
48  <target name="check-contrib" unless="eclipse.home">
49    <property name="skip.contrib" value="yes"/>
50    <echo message="eclipse.home unset: skipping eclipse plugin"/>
51  </target>
52
53 <target name="compile" depends="init, ivy-retrieve-common" unless="skip.contrib">
54    <echo message="contrib: ${name}"/>
55    <javac
56     encoding="${build.encoding}"
57     srcdir="${src.dir}"
58     includes="**/*.java"
59     destdir="${build.classes}"
60     debug="${javac.debug}"
61     deprecation="${javac.deprecation}">
62     <classpath refid="classpath"/>
63    </javac>
64  </target>
65
66  <!-- Override jar target to specify manifest -->
67  <target name="jar" depends="compile" unless="skip.contrib">
68    <mkdir dir="${build.dir}/lib"/>
69    <copy file="${hadoop.root}/build/hadoop-${version}-core.jar" tofile="${build.dir}/lib/hadoop-core.jar" verbose="true"/>
70    <copy file="${hadoop.root}/build/ivy/lib/Hadoop/common/commons-cli-${commons-cli.version}.jar"  todir="${build.dir}/lib" verbose="true"/>
71    <jar
72      jarfile="${build.dir}/hadoop-${version}-${name}.jar"
73      manifest="${root}/META-INF/MANIFEST.MF">
74      <fileset dir="${build.dir}" includes="classes/ lib/"/>
75      <fileset dir="${root}" includes="resources/ plugin.xml"/>
76    </jar>
77  </target>
78
79</project>
Note: See TracBrowser for help on using the repository browser.