-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
64 lines (37 loc) · 1.61 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="UTF-8"?>
<project name="Wikipedia Visualizer" basedir="." default="all">
<property name="FLEX_HOME" value="/usr/share/flex"/>
<property name="OUTPUT" value="${basedir}/build" />
<property name="ACTIONSCRIPT_SRC" value="${basedir}/src/actionscript/" />
<property name="SRC" value="${basedir}/src/" />
<property name="CGIBIN" value="/Applications/MAMP/cgi-bin" />
<taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
<target name="all" depends="mkdirs" description="Build Wikipedia Visualizer" >
<mxmlc
file="${ACTIONSCRIPT_SRC}/WikipediaVisualizer.as"
output="${OUTPUT}/WikipediaVisualizer.swf"
compiler.optimize="true"
compiler.accessible="true"
compiler.debug="true"
compiler.verbose-stacktraces="true"
incremental="false"
>
<source-path path-element="${ACTIONSCRIPT_SRC}/" />
<source-path path-element="${ACTIONSCRIPT_SRC}/prefuse/flare/src/" />
</mxmlc>
<copy todir="${OUTPUT}" file="${SRC}/js/swfobject.js" />
<copy todir="${OUTPUT}" file="${SRC}/html/index.html" />
<copy todir="${CGIBIN}" file="${SRC}/perl/wikilink" />
<chmod file="${CGIBIN}/wikilink" perm="ugo+x"/>
<exec executable="open" spawn="yes">
<arg line="-a Safari" />
<arg line="http://localhost:8887/wikipedia/visualizer/" />
</exec>
</target>
<target name="mkdirs" description="desc" >
<mkdir dir="${OUTPUT}"/>
</target>
<target name="clean" description="desc" >
<delete dir="${OUTPUT}"/>
</target>
</project>