-
Notifications
You must be signed in to change notification settings - Fork 53
/
build-just-copy-site-from-OSP.xml
54 lines (38 loc) · 1.31 KB
/
build-just-copy-site-from-OSP.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<project name="swingjs-project" default="tosite" basedir="."
xmlns:if="ant:if"
xmlns:unless="ant:unless">
<target name="tosite">
<!-- input directories -->
<!-- location of ant-contrib.jar -->
<property name="tools.dir" value = "tools" />
<property name="osp" value = "../osp" />
<property name="osp.bin" value="${osp}/bin" />
<property name="osp.swingjs.dir" value="${osp}/site/swingjs" />
<!-- OSP JS library to copy to site/ -->
<!-- output directories -->
<property name="swingjs.dir" value="site/swingjs/" />
<!-- <for ...> construct needs ant-contrib.jar -->
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${tools.dir}/ant-contrib.jar" />
</classpath>
</taskdef>
<echo> Copying ${osp.swingjs.dir} files into ${swingjs.dir} </echo>
<copy todir="${swingjs.dir}">
<fileset dir="${osp.swingjs.dir}">
<include name="**"/>
</fileset>
</copy>
<!-- assets to bin/ -->
<echo> Copying project *.zip and ${osp.bin} files into bin </echo>
<copy todir="bin">
<fileset dir="${osp.bin}">
<include name="*.zip"/>
</fileset>
<fileset dir="">
<include name="*.zip"/>
</fileset>
</copy>
</target>
</project>