fixed bug 27743: ant target run.api.test.javascript is broken
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 03 Oct 2014 07:51:10 +0200
changeset 24988 78440a0c23d0
parent 24987 b3c81022b811
child 24989 37eee79cd6a7
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.
build.xml
src-test/build.xml
src/build.xml
--- a/build.xml	Thu Oct 02 13:04:43 2014 +0200
+++ 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" 
--- a/src-test/build.xml	Thu Oct 02 13:04:43 2014 +0200
+++ 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
--- a/src/build.xml	Thu Oct 02 13:04:43 2014 +0200
+++ 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" />