Fixes bug 0007571 Now pi can be built within Eclipse using eclipse.install.source
authorRafa Roda Palacios <rafael.roda@openbravo.com>
Tue, 07 Apr 2009 18:04:44 +0200
changeset 4178 41a7dce92d3f
parent 4177 6aba4ac0c271
child 4179 35aa848b01dc
Fixes bug 0007571 Now pi can be built within Eclipse using eclipse.install.source
build.xml
--- a/build.xml	Mon Apr 06 16:48:19 2009 +0200
+++ b/build.xml	Tue Apr 07 18:04:44 2009 +0200
@@ -50,7 +50,7 @@
 install: deprecated.
 deploy.context: deploy the context into Tomcat using the manager
 install.source: install the ERP from sources (from subversion).
-eclipse.install.source: install the ERP from sources for eclipse (from subversion).
+eclipse.install.source: install the ERP from sources for eclipse (from Mercurial).
 create.database: refer to create.database target of database.
 update.database: refer to update.database target of database.
 create.database.structure: refer to create.database.structure target of database.
@@ -472,9 +472,19 @@
 		-->
   </target>
 
-  <target name="eclipse.install.source">
-    <antcall target="install.source" />
-    <eclipse.refreshLocal resource="openbravo" depth="infinite" />
+  <target name="eclipse.install.source" depends="init,code.rev">
+    <antcall target="database.lib" />
+    <antcall target="create.database" />
+    <eclipse.incrementalBuild project="OpenbravoCore" kind="full"/>
+    <antcall target="eclipse.wad.lib"/>
+    <antcall target="eclipse.trl.lib"/>
+    <antcall target="eclipse.compile.complete"/>
+    <echo message="applying modules" />
+    <taskdef name="applyModule" classname="org.openbravo.erpCommon.modules.ApplyModuleTask">
+      <classpath refid="project.class.path" />
+    </taskdef>
+    <applyModule userId="0" propertiesFile="${base.config}/Openbravo.properties" />
+    <antcall target="import.sample.data" />
   </target>
 
   <target name="create.database" depends="init,code.rev, core.lib">