Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 114 lines (99 sloc) 3.993 kB
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
1 <?xml version="1.0" encoding="UTF-8"?>
54d294a @tschaub Ignoring properties from parent project.
tschaub authored
2 <project name="gxp" default="dist">
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
3
4 <description>
5 GXP Build File
6 </description>
7
8 <property name="src" location="src"/>
9 <property name="build" location="build"/>
10
11 <target name="init">
12 <mkdir dir="${build}"/>
13
14 <echo message="pulling in submodules"/>
15 <exec executable="git" failonerror="true">
16 <arg line="submodule init"/>
17 </exec>
18 <exec executable="git" failonerror="true">
19 <arg line="submodule sync"/>
20 </exec>
21 <exec executable="git" failonerror="true">
22 <arg line="submodule update"/>
23 </exec>
24
f71ce6e @tschaub Building Ringo jars.
tschaub authored
25 <echo message="building ringo jars"/>
26 <ant dir="externals/ringo" target="jar" inheritAll="false"/>
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
27 </target>
7bf48a4 @tschaub Build JS scripts.
tschaub authored
28
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
29 <target name="parsedocs" description="parse docs source from scripts">
30 <echo>Parsing doc sources.</echo>
31 <exec executable="jst" failonerror="true">
32 <arg value="jst.cfg"/>
33 </exec>
34 </target>
35
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
36 <target name="doc" depends="parsedocs" description="build documentation">
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
37 <echo>Building docs.</echo>
38 <exec executable="sphinx-build" failonerror="true">
39 <arg line="-b html"/>
40 <arg value="-d"/>
41 <arg path="${src}/doc/_build/doctrees"/>
42 <arg path="${src}/doc"/>
43 <arg path="${build}/doc"/>
44 </exec>
2cde1e8 @tschaub Adding publish script and only publishing what is needed.
tschaub authored
45 <delete dir="${build}/doc/_sources"/>
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
46 </target>
47
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
48 <target name="buildjs">
49 <echo>Building JavaScript.</echo>
50 <mkdir dir="${build}/script"/>
51 <java jar="externals/ringo/run.jar" fork="true" failonerror="true">
52 <sysproperty key="ringo.home" path="externals/ringo"/>
53 <arg path="externals/buildkit/lib/buildkit/build.js"/>
54 <arg line="-o ${build}/script buildjs.cfg"/>
55 </java>
56 </target>
57
58 <target name="examples">
59 <echo>Publishing examples with updated paths to scripts.</echo>
511c67b @tschaub Include themes for examples.
tschaub authored
60 <mkdir dir="${build}/theme"/>
61 <copy todir="${build}/theme/openlayers">
62 <fileset dir="externals/openlayers/theme"/>
63 </copy>
64 <copy todir="${build}/theme/geoext">
65 <fileset dir="externals/geoext/resources"/>
66 </copy>
67 <copy todir="${build}/theme/gxp">
68 <fileset dir="${src}/theme"/>
69 </copy>
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
70 <copy todir="${build}/examples" overwrite="true">
511c67b @tschaub Include themes for examples.
tschaub authored
71 <fileset dir="examples"/>
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
72 </copy>
73 <replace dir="${build}/examples"
d8f535b @tschaub Making examples run before the build using resources from externals.
tschaub authored
74 token="../externals/openlayers/lib/OpenLayers.js"
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
75 value="../script/OpenLayers.js"
76 includes="**/*.html"/>
77 <replace dir="${build}/examples"
d8f535b @tschaub Making examples run before the build using resources from externals.
tschaub authored
78 token="../externals/geoext/lib/GeoExt.js"
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
79 value="../script/GeoExt.js"
80 includes="**/*.html"/>
81 <replace dir="${build}/examples"
82 token="../src/script/loader.js"
83 value="../script/gxp.js"
84 includes="**/*.html"/>
511c67b @tschaub Include themes for examples.
tschaub authored
85 <replace dir="${build}/examples"
86 token="../src/theme/all.css"
87 value="../theme/gxp/all.css"
88 includes="**/*.html"/>
89 <replace dir="${build}/examples"
d8f535b @tschaub Making examples run before the build using resources from externals.
tschaub authored
90 token="../externals/openlayers/theme"
511c67b @tschaub Include themes for examples.
tschaub authored
91 value="../theme/openlayers"
92 includes="**/*.html"/>
93 <replace dir="${build}/examples"
d8f535b @tschaub Making examples run before the build using resources from externals.
tschaub authored
94 token="../externals/geoext/resources"
511c67b @tschaub Include themes for examples.
tschaub authored
95 value="../theme/geoext"
96 includes="**/*.html"/>
d8f535b @tschaub Making examples run before the build using resources from externals.
tschaub authored
97
98 <!-- special handling for OL controls that use this img dir -->
99 <copy todir="${build}/script/img">
100 <fileset dir="externals/openlayers/img"/>
101 </copy>
c795b3e @tschaub Adding tasks for building js and examples.
tschaub authored
102 </target>
103
104 <target name="dist" depends="clean, init, doc, buildjs, examples" description="prepare lib for distribution">
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
105 <echo>Preparing for distribution.</echo>
106 </target>
107
108 <target name="clean" description="remove previous build">
a8e6fc6 @tschaub Clean all. Publish all.
tschaub authored
109 <delete dir="${build}"/>
ca38b66 @tschaub Reworking build script a bit.
tschaub authored
110 </target>
111
112 </project>
113
Something went wrong with that request. Please try again.