My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!-- This Ant Build file is included for generating ASDocs and the Papervision3D.swc. Don't expect it to work "out of the box", but feel free to experiment -John Lindquist -->
<!-- Special thanks to Ryan Taylor (http://www.boostworthy.com/blog/) for helping set this up -->

<!--
How to use build.properties file:

Your checkout should include a build.template.properties file. This is where
variables that change from system to system are stored. Simply rename the file
to build.properties and place it in the same directory as your build.xml. When
you run the build.xml it will automatically import the build.properties file.

Make sure you change the path of the Flex SDK and if you are on a PC you will need
to add ".exe" to the asdoc.exe and compc.exe properties.
-->

<!--
Modified 6/20/09 by Jesse Freeman

- Externalized flex3dir, asdoc.exe, compc.exe paths to make build easier to set up
across different platforms without having to modify the core build.xml.

- Modified the default target to call "compile" which includes, docs and swc.
-->

<project name="Papervision3D ASDoc Generator" default="compile" basedir="..">

<!-- import our build properties file -->
<property file="${basedir}/build/build.properties" />

<property name="windowtitle" value="Papervision3D Official Documentation" />
<property name="maintitle" value="Papervision3D Official Documentation" />
<property name="footer" value="http://blog.papervision3d.org" />

<property name="bindir" value="${basedir}/bin" />
<property name="classesdir" value="${basedir}/src" />
<property name="docsdir" value="${basedir}/docs" />

<property name="testdocsdir" value="${basedir}/testdocs" />
<property name="asdoctemplate" value="${basedir}/asdoc/templates" />


<property name="flex3bindir" value="${flex3dir}/bin" />
<property name="flex3libsdir" value="${flex3dir}/frameworks/libs" />
<property name="asdoc" value="${flex3bindir}/${asdoc.exe}" />
<property name="compc" value="${flex3bindir}/${compc.exe}" />

<tstamp prefix="dateStamp">
<format property="date" pattern="MMM d yyyy" offset="-5" unit="hour" />
</tstamp>

<target name="compile" description="Creates swc and docs">
<antcall target="generateSWC" description="Generates a swc of the Papervision3D library" />
<antcall target="generateDocs" description="Generates docs" />
</target>

<target name="cleanDocs" description="Cleans out the documentation directory.">
<echo>Cleaning out docs from '${docsdir}'...</echo>
<delete includeemptydirs="true">
<fileset dir="${docsdir}" includes="**/*">
</fileset>
</delete>
</target>

<target name="cleanTestDocs" description="Cleans out the documentation directory.">
<echo>Cleaning out docs from '${testdocsdir}'...</echo>
<delete includeemptydirs="true">
<fileset dir="${testdocsdir}" includes="**/*">
</fileset>
</delete>
</target>

<target name="generateDocs" description="Generates docs" depends="cleanDocs">
<echo>Generating documentation for '${docsdir}'...</echo>
<exec executable="${asdoc}">
<arg line="-source-path ${classesdir}" />
<arg line="-doc-sources ${classesdir}" />
<arg line="-window-title '${windowtitle}'" />
<arg line="-main-title '${maintitle}'" />
<arg line="-footer '${footer}'" />
<arg line="-output '${docsdir}'" />
</exec>
</target>

<target name="generateTestDocs" description="Generates docs" depends="cleanTestDocs">
<echo>Generating test documentation for '${docsdir}'...</echo>
<exec executable="${asdoc}">
<arg line="-source-path ${classesdir}" />
<arg line="-doc-sources ${classesdir}" />
<arg line="-window-title '${windowtitle}'" />
<arg line="-main-title '${maintitle}'" />
<arg line="-footer '${footer}'" />
<arg line="-output '${testdocsdir}'" />
<arg line="-metadata.date '${dateStamp.date}'" />
<arg line="-templates-path '${asdoctemplate}'" />
</exec>
</target>

<target name="generateSWC" description="Generates a swc of the Papervision3D library">
<echo>Generating swc using '${classesdir}'</echo>
<exec executable="${compc}">
<arg line="-source-path ${classesdir}" />
<arg line="-output ${bindir}/Papervision3D.swc" />
<arg line="-include-sources ${classesdir}" />
</exec>
</target>

</project>

Change log

r918 by johnlindquist on Jun 22, 2009   Diff
Updated ANT build based on Jesse Freeman's
recommendations.

- Externalized flex3dir, asdoc.exe,
compc.exe paths to make build easier to
set up across different platforms without
having to modify the core build.xml.

- Modified the default target to call
"compile" which includes, docs and swc.
Go to: 
Project members, sign in to write a code review

Older revisions

r815 by johnlindquist on Dec 3, 2008   Diff
[docs] general docs and .swc update
and updated date in Papervision3D.as
r802 by johnlindquist on Nov 17, 2008   Diff
[docs] general update
r794 by johnlindquist on Nov 16, 2008   Diff
[docs and swc] Updated docs. Added
timestamp in the footer. Updated and
moved swc to bin dir.
All revisions of this file

File info

Size: 4778 bytes, 107 lines
Powered by Google Project Hosting