hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r822065 - in /hadoop/zookeeper/trunk: CHANGES.txt build.xml
Date Mon, 05 Oct 2009 22:37:25 GMT
Author: mahadev
Date: Mon Oct  5 22:37:24 2009
New Revision: 822065

URL: http://svn.apache.org/viewvc?rev=822065&view=rev
Log:
ZOOKEEPER-539. generate eclipse project via ant target. (phunt via mahadev)

Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/build.xml

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=822065&r1=822064&r2=822065&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Mon Oct  5 22:37:24 2009
@@ -95,7 +95,7 @@
   via mahadev)
 
 NEW FEATURES:
-
+  ZOOKEEPER-539. generate eclipse project via ant target. (phunt via mahadev)
 
 Release 3.2.0 - 2009-06-30
 

Modified: hadoop/zookeeper/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/build.xml?rev=822065&r1=822064&r2=822065&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/build.xml (original)
+++ hadoop/zookeeper/trunk/build.xml Mon Oct  5 22:37:24 2009
@@ -133,6 +133,12 @@
     <property name="jdiff.stable.javadoc" 
             value="http://hadoop.apache.org/zookeeper/docs/r${jdiff.stable}/api/"/>
 
+    <!-- eclipse property set -->
+    <property name="build.dir.eclipse" value=".eclipse"/>
+    <property name="build.dir.eclipse-main-classes" value="${build.dir.eclipse}/classes-main"/>
+    <property name="build.dir.eclipse-test-classes" value="${build.dir.eclipse}/classes-test"/>
+
+
     <!-- ====================================================== -->
     <!-- Macro definitions                                      -->
     <!-- ====================================================== -->
@@ -1108,4 +1114,65 @@
        </javadoc>
      </target>
 
+     <condition property="ant-eclipse.jar.exists">
+       <available file="${lib.dir}/ant-eclipse-1.0-jvm1.2.jar"/>
+     </condition>
+
+     <target name="ant-eclipse-download" unless="ant-eclipse.jar.exists">
+       <get src="http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2"
+            dest="${src.dir}/java/ant-eclipse-1.0.bin.tar.bz2" usetimestamp="false" />
+
+       <bunzip2 src="${src.dir}/java/ant-eclipse-1.0.bin.tar.bz2"/>
+
+       <untar src="${src.dir}/java/ant-eclipse-1.0.bin.tar"
+              dest="${src.dir}/java">
+         <patternset>
+           <include name="lib/ant-eclipse-1.0-jvm1.2.jar"/>
+         </patternset>
+       </untar>
+
+       <delete file="${src.dir}/java/ant-eclipse-1.0.bin.tar" />
+       <delete file="${src.dir}/java/ant-eclipse-1.0.bin.tar.bz2" />
+     </target>
+
+     <target name="eclipse"
+             depends="ant-eclipse-download,init,ivy-retrieve,build-generated,ivy-retrieve-test"
+             description="Create eclipse project files">
+       <ivy:resolve useOrigin="true" conf="test"/>
+       <ivy:cachepath pathid="default.path.id" conf="default" />
+       <ivy:cachepath pathid="junit.path.id" conf="test" transitive="false"/>
+       <taskdef name="eclipse"
+                classname="prantl.ant.eclipse.EclipseTask"
+                classpathref="java.classpath" />
+       <eclipse updatealways="true">
+         <settings>
+           <jdtcore compilercompliance="6.0" />
+           <resources encoding="UTF-8" />
+         </settings>
+         <project name="${ant.project.name}" />
+         <classpath>
+           <source path="${java.src.dir}"
+                   output="${build.dir.eclipse-main-classes}" />
+           <source path="${src_generated.dir}"
+                   output="${build.dir.eclipse-main-classes}" />
+           <source path="${test.src.dir}"
+                   output="${build.dir.eclipse-test-classes}" />
+           <source path="${systest.src.dir}"
+                   output="${build.dir.eclipse-test-classes}" />
+
+           <output path="${build.dir.eclipse-main-classes}" />
+           <library pathref="default.path.id" exported="true" />
+           <library pathref="junit.path.id" exported="false" />
+         </classpath>
+       </eclipse>
+     </target>
+
+     <target name="clean-eclipse" description="Clean eclipse files">
+       <delete file=".classpath" />
+       <delete file=".eclipse" />
+       <delete file=".project" />
+       <delete dir=".settings" />
+       <delete dir="${build.dir.eclipse}" />
+     </target>
+
 </project>



Mime
View raw message