sbin/build/client.xml
branchpopcorn-port
changeset 97 62612c69699f
parent 92 e03b41037be1
child 98 ed4ac18baf07
--- a/sbin/build/client.xml	Wed Oct 19 11:54:43 2011 +0200
+++ b/sbin/build/client.xml	Wed Oct 19 14:52:42 2011 +0200
@@ -16,7 +16,7 @@
 	<delete dir="${basedir}/../../build" />
 	<mkdir  dir="${basedir}/../../build" />
 		
-	<target name="makeall" depends="concatenate,compile" />
+	<target name="makeall" depends="concatenate,compile,jslint" />
 	
 	<target name="make_templates" description="Concatenate the html templates together">
 	    <for param="file">
@@ -79,4 +79,20 @@
 	    	</filterchain>
 	    </concat>
 	</target>
+	
+	<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">
+		<apply executable="java" parallel="false">  
+			<filelist dir="../../build">  
+				<file name="LdtPlayer-release.js"/>  
+			</filelist>  
+			<arg line="-jar"/>  
+			<arg path="${rhino.jar}"/>  
+			<arg path="${jslint-wrapper.js}"/>  
+			<arg path="${jslint.js}"/>  
+		</apply>
+	</target>
 </project>
\ No newline at end of file