You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by ke...@apache.org on 2009/01/01 20:20:46 UTC
svn commit: r730592 [1/4] - in /ant/sandbox/antlibs/compress/trunk/src:
etc/testcases/ etc/testcases/testscripts/ main/org/apache/ant/js/compressor/
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>