forked from makotokw/jquery.ui.potato.menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
25 lines (25 loc) · 847 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" ?>
<project default="package">
<property name="projectname" value="jquery.ui.potato.menu"/>
<property name="version" value="1.1"/>
<property name="dest" value="dist/${projectname}"/>
<tstamp>
<format property="today" pattern="yyyyMMdd"/>
</tstamp>
<target name="package" description="make package">
<mkdir dir="${dest}"/>
<delete>
<fileset dir="${dest}">
<include name="${projectname}_${version}_${today}.zip"/>
</fileset>
</delete>
<java jar="${tools.yuicompressor}" fork="true">
<arg line="src/${projectname}.js -o build/${projectname}-min.js --type js"/>
</java>
<zip destfile="${dest}/${projectname}_${version}.zip">
<fileset dir="src" includes="**"/>
<fileset dir="build" includes="**"/>
<fileset dir="." includes="LICENSE"/>
</zip>
</target>
</project>