-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
42 lines (38 loc) · 1.3 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
30
31
32
33
34
35
36
37
38
39
40
41
42
<project name="CLAMSHELL" default="main">
<condition property="is_windows">
<os family="windows"/>
</condition>
<condition property="is_unix">
<os family="unix" />
</condition>
<target name="make_archive">
<copy todir="build/clamshell/bin">
<fileset dir="bin" />
</copy>
<copy todir="build/clamshell/lib">
<fileset dir="lib" />
</copy>
<copy todir="build/clamshell/tools">
<fileset dir="tools" />
</copy>
<copy todir="build/clamshell/help">
<fileset dir="help" />
</copy>
<zip zip64Mode="never" destfile="build/clamshell.zip" basedir="build/clamshell" />
</target>
<target name="if_windows" if="is_windows" depends="make_archive">
<exec executable="certutil">
<arg value="-encode" />
<arg value="build/clamshell.zip" />
<arg value="build/clamshell.zip.base64" />
</exec>
</target>
<target name="if_unix" if="is_unix" depends="make_archive">
<exec executable="base64" output="build/clamshell.zip.base64" >
<arg value="--wrap=0" />
<arg value="build/clamshell.zip" />
</exec>
</target>
<target name="main" depends="if_windows, if_unix">
</target>
</project>