From da0a96ca712920bcd7714a7376ea94482e46494b Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 09 Oct 2013 13:44:11 +0000
Subject: [PATCH] build.xml: Added 'eclipse' target that does a job similar to "mvn eclipse:eclipse". In particular, there is not need to call the ignominious     cp -r build/classes/admin build/classes/messages .eclipse-build # then hit F5 in Eclipse

---
 opendj-sdk/opends/build.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/build.xml b/opendj-sdk/opends/build.xml
index 4cb62aa..a76587b 100644
--- a/opendj-sdk/opends/build.xml
+++ b/opendj-sdk/opends/build.xml
@@ -738,6 +738,18 @@
        description="Generate all the sources.">
   </target>
 
+  <!-- This target retrieves the libs, and generates the sources -->
+  <target name="eclipse" depends="resolve,generatesources,copymessages"
+       description="Set up all the files and directories required for the Eclipse project">
+    <copy todir=".eclipse-build">
+      <fileset dir="${classes.dir}">
+        <include name="admin/**" />
+        <include name="messages/**" />
+      </fileset>
+    </copy>
+    <echo>Refresh the OpenDJ server project in Eclipse: Select the OpenDJ server project and press 'F5' key</echo>
+  </target>
+
   <target name="compile"
        depends="init,checkjavaversion,generatesources,resolve"
        description="Compile the Directory Server source files.">

--
Gitblit v1.10.0