# HG changeset patch
# User Asier Lostalé <asier.lostale@openbravo.com>
# Date 1412315470 -7200
#      Fri Oct 03 07:51:10 2014 +0200
# Node ID 5d6b1c9305029ba125738a60bba86cae2256d270
# Parent  3ef590495e302ea5715f4fe87d18e6d92a8d7f73
fixed bug 27743: ant target run.api.test.javascript is broken

  JavaScriptAntTest ant task was moved to src-test but the ant task in build.xml
  invoking it was not.

  Build.xml files have been changed to reflect new location.

diff -r 3ef590495e30 -r 5d6b1c930502 build.xml
--- a/build.xml	Thu Oct 02 11:55:57 2014 +0000
+++ b/build.xml	Fri Oct 03 07:51:10 2014 +0200
@@ -598,7 +598,7 @@
   </target>
 
   <target name="run.api.test.javascript">
-    <ant dir="${base.src}" target="run.api.test.javascript" inheritAll="true" inheritRefs="true" />
+    <ant dir="${base.src.test}" target="run.api.test.javascript" inheritAll="true" inheritRefs="true" />
   </target>
   
   <target name="run.api.test.model" 
diff -r 3ef590495e30 -r 5d6b1c930502 src-test/build.xml
--- a/src-test/build.xml	Thu Oct 02 11:55:57 2014 +0000
+++ b/src-test/build.xml	Fri Oct 03 07:51:10 2014 +0200
@@ -90,4 +90,10 @@
       </test>
     </junit>
   </target>
+
+  <target name="run.api.test.javascript" depends="compile.test">
+    <taskdef name="jstest" classname="org.openbravo.test.javascript.JavaScriptAntTest" classpathref="project.class.path" />
+    <property name="export" value="no" />
+    <jstest apiDetailsPath="${api.test.javascript.details}" jsPath="${base.web}/js" export="${export}" />
+  </target>
 </project>
\ No newline at end of file
diff -r 3ef590495e30 -r 5d6b1c930502 src/build.xml
--- a/src/build.xml	Thu Oct 02 11:55:57 2014 +0000
+++ b/src/build.xml	Fri Oct 03 07:51:10 2014 +0200
@@ -258,12 +258,6 @@
     <workflow friendlyWarnings="${friendlyWarnings}" srcGenPath="${base.src.gen}" propertiesFile="${base.config}/Openbravo.properties" />
   </target> 
 
-  <target name="run.api.test.javascript">
-  	<taskdef name="jstest" classname="org.openbravo.test.javascript.JavaScriptAntTest" classpathref="project.class.path" />
-	<property name="export" value="no" />
-	<jstest apiDetailsPath="${api.test.javascript.details}" jsPath="${base.web}/js" export="${export}" />
-  </target>
-
   <path id="my-src-dirs">
     <pathelement path="${basedir}" />
     <pathelement path="${build.sqlc}/src" />
