build.xml
changeset 25752 fdd30bd81889
parent 25525 ef79806f8488
child 25753 b75d054ba4b4
--- a/build.xml	Tue Jan 20 16:41:17 2015 +0100
+++ b/build.xml	Wed Jan 21 12:56:19 2015 +0100
@@ -12,7 +12,7 @@
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2001-2014 Openbravo SLU
+* All portions are Copyright (C) 2001-2015 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
@@ -1132,4 +1132,14 @@
                     propertiesFile="${base.config}/Openbravo.properties"/>
   </target>
   
+  <target name="host.name"
+          description="Prints this machine's name. This name can be used to overwrite common Openbravo.properties by machine.name.Openbravo properties file">
+    <javac srcdir="src/org/openbravo/base/session" includes="HostNameTask.java" destdir="build/classes" fork="true" deprecation="off" encoding="UTF-8" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
+      <classpath refid="project.class.path"/>
+    </javac>
+    <taskdef name="hostName" classname="org.openbravo.base.session.HostNameTask">
+      <classpath refid="project.class.path"/>
+    </taskdef>
+    <hostName/>
+  </target>
 </project>