Skip to content

Commit c404c78

Browse files
committed
added simple dist target to ant build script
1 parent dd1563d commit c404c78

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bin
2+
/dist

build.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,29 @@
2828
<target name="build" depends="compile" description="Build video library">
2929
<jar basedir="bin" destfile="library/video.jar" />
3030
</target>
31+
32+
<target name="dist" depends="build" description="Creates distribution package">
33+
<mkdir dir="dist/tmp" />
34+
35+
<copy todir="dist/tmp/library">
36+
<fileset dir="library" />
37+
</copy>
38+
39+
<copy todir="dist/tmp/examples">
40+
<fileset dir="examples" />
41+
</copy>
42+
43+
<copy todir="dist/tmp/src">
44+
<fileset dir="src" />
45+
</copy>
46+
47+
<zip destfile="dist/video.zip"
48+
basedir="dist/tmp"
49+
excludes="**/.DS_Store"
50+
/>
51+
52+
<copy file="library.properties" tofile="dist/video.txt" />
53+
54+
<delete dir="dist/tmp" />
55+
</target>
3156
</project>

0 commit comments

Comments
 (0)