slight improvement on ant jslint task
authorymh <ymh.work@gmail.com>
Mon, 04 May 2015 15:36:39 +0200
changeset 1034 31fd2904ec57
parent 1033 c20df1c080e6
child 1035 c1bc8a2b1468
slight improvement on ant jslint task
sbin/build/client.xml
sbin/build/compil.sh
--- a/sbin/build/client.xml	Fri Feb 13 16:57:53 2015 +0100
+++ b/sbin/build/client.xml	Mon May 04 15:36:39 2015 +0200
@@ -13,7 +13,7 @@
     </taskdef>
     <delete dir="${basedir}/../../build" />
     <mkdir  dir="${basedir}/../../build" />
-    
+
     <target name="makeall" depends="concatenate-player,copytotest" />
 
     <target name="concatenate-core">
@@ -26,7 +26,7 @@
             </filterchain>
         </concat>
     </target>
-	
+
     <target name="concatenate-player" description="Build the developer release file" depends="concatenate-core">
         <concat encoding="UTF-8" outputencoding="UTF-8" destfile="../../build/LdtPlayer-core.js">
             <filelist dir="../../src/js/libs" files="LAB.min.js" />
@@ -44,7 +44,7 @@
             </filterchain>
         </concat>
     </target>
-    
+
     <target name="copytotest" description="Copy files to test directory">
         <delete dir="../../test/metadataplayer" />
         <delete dir="../../test/libs" />
@@ -60,7 +60,7 @@
             <fileset dir="../../src/css/img"/>
         </copy>
     </target>
-    
+
     <target name="minify" depends="concatenate-player">
         <jscomp compilationLevel="simple" warning="quiet" debug="false"
         output="../../build/LdtPlayer.min.raw.js">
@@ -83,11 +83,13 @@
     <property name="rhino.jar" value="${basedir}/../res/rhino.jar"/>
     <property name="jslint-wrapper.js" value="${basedir}/../res/jslint-wrapper.js"/>
     <property name="jslint.js" value="${basedir}/../res/jslint.js"/>
-    <target name="jslint" description="Run jslint on the files" depends="concatenate-player">
+    <target name="jslint" description="Run jslint on the files">
         <apply executable="java" parallel="false">
-            <filelist dir="../../build">
-                <file name="LdtPlayer-core.js"/>
-            </filelist>
+            <fileset dir="../../src">
+                <include name="js/**/*.js"/>
+                <exclude name="js/libs/**"/>
+                <include name="widgets/**/*.js"/>
+            </fileset>
             <arg line="-jar"/>
             <arg path="${rhino.jar}"/>
             <arg path="${jslint-wrapper.js}"/>
--- a/sbin/build/compil.sh	Fri Feb 13 16:57:53 2015 +0100
+++ b/sbin/build/compil.sh	Mon May 04 15:36:39 2015 +0200
@@ -1,3 +1,3 @@
 #!/bin/sh
 DIR=$(dirname $0)
-sh ${DIR}/../res/ant/bin/ant -f ${DIR}/client.xml
+sh ${DIR}/../res/ant/bin/ant -f ${DIR}/client.xml $@