ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r730592 [1/4] - in /ant/sandbox/antlibs/compress/trunk/src: etc/testcases/ etc/testcases/testscripts/ main/org/apache/ant/js/compressor/
Date Thu, 01 Jan 2009 19:20:46 GMT
Author: kevj
Date: Thu Jan  1 11:20:46 2009
New Revision: 730592

URL: http://svn.apache.org/viewvc?rev=730592&view=rev
Log:
-add javascripts as test cases

Added:
    ant/sandbox/antlibs/compress/trunk/src/etc/testcases/testscripts/
    ant/sandbox/antlibs/compress/trunk/src/etc/testcases/testscripts/jquery-1.2.6.js
    ant/sandbox/antlibs/compress/trunk/src/etc/testcases/testscripts/prototype-1.6.0.3.js
Modified:
    ant/sandbox/antlibs/compress/trunk/src/etc/testcases/compress.xml
    ant/sandbox/antlibs/compress/trunk/src/main/org/apache/ant/js/compressor/YUICompressorTask.java

Modified: ant/sandbox/antlibs/compress/trunk/src/etc/testcases/compress.xml
URL: http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/etc/testcases/compress.xml?rev=730592&r1=730591&r2=730592&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/etc/testcases/compress.xml (original)
+++ ant/sandbox/antlibs/compress/trunk/src/etc/testcases/compress.xml Thu Jan  1 11:20:46
2009
@@ -16,27 +16,34 @@
   limitations under the License.
 -->
 
-<project name="compress-test" basedir="../../../" 
+<project name="compress-test" basedir="." 
          default="all" xmlns:compress="antlib:org.apache.ant.js.compressor">
 
   <property name="output" value="test.js"/>
-  <property name="outputPath" value="."/>
+  <property name="outputPath" value="${basedir}/min"/>
+  <property name="testscript.dir" value="${basedir}/testscripts"/>
 
-  <target name="all">
+  <target name="init">
+    <mkdir dir="${outputPath}"/>
+  </target>
+	
+  <target name="all" depends="init">
+  	
   	<compress:yui.compressor verbose="true" output="${output}" mergefiles="true" type="js">
-  	  <fileset dir="testscripts">
+  	  <fileset dir="${testscript.dir}">
   	  	<include name="*.js"/>
   	  </fileset>
   	</compress:yui.compressor>
   	
   	<compress:yui.compressor verbose="true" outputPath="${outputPath}" type="js">
-  	  <fileset dir="testscripts">
+  	  <fileset dir="${testscript.dir}">
   	  	<include name="*.js"/>
   	  </fileset>
   	</compress:yui.compressor>
   </target>
 
   <target name="cleanup">
-    <delete file="${output}" />
+    <delete file="${output}"/>
+  	<delete dir="${outputPath}"/>
   </target>
 </project>



Mime
View raw message