Add YUI Compressor and minify BASH script
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@403 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
63aac2c797
commit
752b45f20d
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
YUI=yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar
|
||||
|
||||
# minify spin button
|
||||
java -jar $YUI editor/spinbtn/JQuerySpinBtn.js > editor/spinbtn/JQuerySpinBtn.min.js
|
||||
|
||||
# minify SVG-edit files
|
||||
java -jar $YUI editor/svg-editor.js > editor/svg-editor.min.js
|
||||
java -jar $YUI editor/svgcanvas.js > editor/svgcanvas.min.js
|
||||
|
||||
|
||||
# CSS files do not work remotely
|
||||
# java -jar $YUI editor/spinbtn/JQuerySpinBtn.css > editor/spinbtn/JQuerySpinBtn.min.css
|
||||
# java -jar $YUI editor/svg-editor.css > editor/svg-editor.min.css
|
|
@ -0,0 +1,8 @@
|
|||
src.dir = src
|
||||
lib.dir = lib
|
||||
doc.dir = doc
|
||||
build.dir = build
|
||||
product.name = yuicompressor
|
||||
version.number = 2.4.2
|
||||
jar.name = ${product.name}-${version.number}.jar
|
||||
dist.package.name = ${product.name}-${version.number}
|
|
@ -0,0 +1,66 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<project name="YUI Compressor" default="build.jar" basedir=".">
|
||||
|
||||
<target name="clean" depends="-load.properties">
|
||||
<delete dir="${build.dir}" quiet="true"/>
|
||||
</target>
|
||||
|
||||
<target name="-load.properties">
|
||||
<property file="ant.properties"/>
|
||||
</target>
|
||||
|
||||
<target name="-init" depends="-load.properties">
|
||||
<mkdir dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="build.classes" depends="-init">
|
||||
<mkdir dir="${build.dir}/classes"/>
|
||||
<javac srcdir="${src.dir}"
|
||||
destdir="${build.dir}/classes"
|
||||
includes="**/*.java"
|
||||
deprecation="off"
|
||||
debug="on"
|
||||
source="1.4">
|
||||
<classpath>
|
||||
<pathelement location="${lib.dir}/jargs-1.0.jar"/>
|
||||
<pathelement location="${lib.dir}/rhino-1.6R7.jar"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="build.jar" depends="build.classes">
|
||||
<mkdir dir="${build.dir}/jar"/>
|
||||
<!-- The order is important here. Rhino MUST be unjarred first!
|
||||
(some of our own classes will override the Rhino classes) -->
|
||||
<unjar src="${lib.dir}/jargs-1.0.jar" dest="${build.dir}/jar"/>
|
||||
<unjar src="${lib.dir}/rhino-1.6R7.jar" dest="${build.dir}/jar"/>
|
||||
<copy todir="${build.dir}/jar">
|
||||
<fileset dir="${build.dir}/classes" includes="**/*.class"/>
|
||||
</copy>
|
||||
<jar destfile="${build.dir}/${jar.name}" basedir="${build.dir}/jar">
|
||||
<manifest>
|
||||
<attribute name="Main-Class" value="com.yahoo.platform.yui.compressor.Bootstrap"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="build.dist.package" depends="build.jar">
|
||||
<mkdir dir="${build.dir}/${dist.package.name}"/>
|
||||
<mkdir dir="${build.dir}/${dist.package.name}/build"/>
|
||||
<copy file="${build.dir}/${jar.name}" todir="${build.dir}/${dist.package.name}/build"/>
|
||||
<copy todir="${build.dir}/${dist.package.name}">
|
||||
<fileset dir=".">
|
||||
<include name="ant.properties"/>
|
||||
<include name="build.xml"/>
|
||||
<include name="doc/**/*"/>
|
||||
<include name="lib/**/*"/>
|
||||
<include name="src/**/*"/>
|
||||
<exclude name="**/CVS"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<zip destfile="${build.dir}/${dist.package.name}.zip"
|
||||
basedir="${build.dir}"
|
||||
includes="${dist.package.name}/**/*"/>
|
||||
</target>
|
||||
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
Manifest-Version: 1.0
|
||||
Ant-Version: Apache Ant 1.6.5
|
||||
Created-By: 1.5.0_07-b03 (Sun Microsystems Inc.)
|
||||
Main-Class: org.mozilla.javascript.tools.shell.Main
|
||||
Class-Path: xbean.jar
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue