Eclipse tasks enhancements
authorIván Perdomo <ivan.perdomo@openbravo.com>
Fri, 29 Jan 2010 09:02:55 +0100
changeset 5987 cb921d4ff9ec
parent 5986 383718c770f6
child 5988 d1f5426222de
Eclipse tasks enhancements
- eclipse.* tasks fails when executed outside eclipse with a message
to the user.
- Added info messages when refreshing and building the project
build.xml
--- a/build.xml	Fri Jan 29 02:18:39 2010 +0530
+++ b/build.xml	Fri Jan 29 09:02:55 2010 +0100
@@ -352,20 +352,26 @@
   </target>
 
   <target name="eclipse.compile" depends="init">
+    <fail unless="eclipse.running" message="eclipse.* tasks must be executed inside Eclipse" />
     <ant dir="${base.src.core}" target="build.jar" inheritAll="true" inheritRefs="true" />
     <ant dir="${base.src.trl}" target="build.jar" inheritAll="true" inheritRefs="true" />
     <ant dir="${base.src.wad}" target="build.jar" inheritAll="true" inheritRefs="true" />
     <ant dir="${base.src}" target="eclipse.compile" inheritAll="true" inheritRefs="true" />
+    <echo message="Refreshing project..." level="info" />
     <eclipse.refreshLocal resource="openbravo" depth="infinite" />
+    <echo message="Building project..." level="info" />
     <eclipse.incrementalBuild project="openbravo" kind="incremental" />
   </target>
 
   <target name="eclipse.compile.complete" depends="init">
+    <fail unless="eclipse.running" message="eclipse.* tasks must be executed inside Eclipse" />
     <ant dir="${base.src.core}" target="build.jar" inheritAll="true" inheritRefs="true" />
     <ant dir="${base.src.trl}" target="build.jar" inheritAll="true" inheritRefs="true" />
     <ant dir="${base.src.wad}" target="build.jar" inheritAll="true" inheritRefs="true" />
     <ant dir="${base.src}" target="eclipse.compile.complete" inheritAll="true" inheritRefs="true" />
+    <echo message="Refreshing project..." level="info" />
     <eclipse.refreshLocal resource="openbravo" depth="infinite" />
+    <echo message="Building project..." level="info" />
     <eclipse.incrementalBuild project="openbravo" kind="full" />
   </target>
 
@@ -528,6 +534,8 @@
   </target>
 
   <target name="eclipse.install.source" depends="init, create.database">
+    <fail unless="eclipse.running" message="eclipse.* tasks must be executed inside Eclipse" />
+    <echo message="Building OpenbravoCore project..." level="info" />
     <eclipse.incrementalBuild project="OpenbravoCore" kind="full"/>
     <antcall target="eclipse.wad.lib"/>
     <antcall target="eclipse.trl.lib"/>