-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.xml
29 lines (26 loc) · 1.19 KB
/
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
26
27
28
29
<project name="WebinosHomeControllerGateway" basedir="." default="main">
<property name="build.dir" value="."/>
<property name="widget.file" value="WebinosHomeControllerGateway"/>
<property name="src.dir" value="js"/>
<property name="css.dir" value="css"/>
<property name="assets.dir" value="assets"/>
<target name="clean">
<delete file="${build.dir}/${widget.file}.wgt" />
</target>
<target name="build">
<zip destfile="${widget.file}.zip" encoding="UTF-8">
<fileset dir="${basedir}">
<include name="${css.dir}/**"/>
<include name="${src.dir}/**"/>
<include name="${assets.dir}/**"/>
<include name="config.xml"/>
<include name="icon.png"/>
<include name="index.html"/>
<include name="rules.html"/>
<include name="success.html"/>
</fileset>
</zip>
<move file="${basedir}/${widget.file}.zip" tofile="${basedir}/${widget.file}.wgt"/>
</target>
<target name="main" depends="clean,build"/>
</project>