diff --git a/ReadMe.txt b/ReadMe.txt
index 2ba16d6e66..25f74c40ba 100644
--- a/ReadMe.txt
+++ b/ReadMe.txt
@@ -19,6 +19,7 @@ Initial Setup
Using Eclipse
+ - Run "gradlew eclipse". This will generate the eclipse project files.
- Start Eclipse in the usual way.
Note: make sure the WAR dependancies have been exploded before opening Eclispe.
- Import projects found in rm-server and rm-share directories.
@@ -51,4 +52,5 @@ Summary Of Available Gradle Tasks
- installAmp : installs the AMP into a copy of the projects dependant WAR using the MMT.
NOTE: the installed WAR can be found in build/dist.
- deployAmp : depolys the project AMP to the configured Tomcat instance.
- - fetchWarFile : fetches the dependant Alfresco WAR files
\ No newline at end of file
+ - fetchWarFile : fetches the dependant Alfresco WAR files
+ - eclipse : generates eclipse projects for repository and share projects
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index da926c470b..7994f02eee 100644
--- a/build.gradle
+++ b/build.gradle
@@ -101,6 +101,9 @@ subprojects {
compile fileTree(dir: explodedLibsDir, include: '*.jar')
}
+ // make sure existing eclipse projects are cleared
+ tasks.eclipse.dependsOn(cleanEclipse)
+
/** --- Compile tasks --- */
// make sure that the dependancies have been unpacked before compiling the Java
diff --git a/rm-server/.classpath b/rm-server/.classpath
deleted file mode 100644
index d5a9143db6..0000000000
--- a/rm-server/.classpath
+++ /dev/null
@@ -1,297 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/rm-server/.project b/rm-server/.project
deleted file mode 100644
index 47a2d689a4..0000000000
--- a/rm-server/.project
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- rm-server
-
-
-
- org.eclipse.jdt.core.javanature
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
diff --git a/rm-server/.settings/org.eclipse.jdt.core.prefs b/rm-server/.settings/org.eclipse.jdt.core.prefs
index 286c5e127c..f4b0d88ec6 100644
--- a/rm-server/.settings/org.eclipse.jdt.core.prefs
+++ b/rm-server/.settings/org.eclipse.jdt.core.prefs
@@ -1,5 +1,5 @@
#
-#Tue Jul 10 13:39:51 EST 2012
+#Thu Aug 23 10:22:16 EST 2012
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
diff --git a/rm-server/build.gradle b/rm-server/build.gradle
index 1934834862..497848cc37 100644
--- a/rm-server/build.gradle
+++ b/rm-server/build.gradle
@@ -26,6 +26,22 @@ task fetchSOLR(type:Copy) {
task useSOLR << {
}
+eclipse {
+ classpath {
+ file {
+ withXml {
+
+ Map map = new HashMap()
+ map.put('kind', 'src')
+ map.put('path', configDir)
+
+ def node = it.asNode()
+ node.appendNode('classpathentry', map)
+ }
+ }
+ }
+}
+
task resetDatabase << {
// Loading the properties in all possible locations
ant.property(file: System.properties.getProperty('DB_PROPERTIES') )