r973 - trunk/ui

r973 - trunk/ui


Author: eduardolundgren
Date: Wed Nov 19 21:18:26 2008
New Revision: 973
Added:
trunk/ui/build.xml (contents, props changed)
Log:
Added a build.xml file to help us removing trailing spaces when needed.
Added: trunk/ui/build.xml
==============================================================================
--- (empty file)
+++ trunk/ui/build.xml    Wed Nov 19 21:18:26 2008
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+
+<!--
+    jQuery UI Tasks
+    @author Eduardo Lundgren (eduardolundgren@gmail.com)
+-->
+
+<project name="jquery-ui" default="remove-spaces" basedir=".">
+
+    <target name="load.properties">
+        <property file="ant.properties" />
+        <property name="version" value="1.6" />
+        <property name="ui.dir" value="." />
+        <property name="src.dir" value="${ui.dir}/" />
+    </target>
+
+    <target name="remove-spaces" depends="load.properties">
+        <replaceregexp match="[\t ]+$" replace="" flags="g" byline="true">
+         <fileset dir="${src.dir}" includes="*.js"/>
+         <fileset dir="${src.dir}/i18n/" includes="*.js"/>
+        </replaceregexp>
+        <echo message="All trailing spaces removed." />
+    </target>
+
+</project>
\ No newline at end of file