~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to install/build.xml

  • Committer: V. Keith Hughitt
  • Date: 2009-03-26 19:20:57 UTC
  • Revision ID: hughitt1@kore-20090326192057-u0x8rf8sf5lmmnwh
nightly build 03-26-2009: Using alpha-channel JPEG 2000 dataset

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<project name="Helioviewer" default="build" basedir="../">
 
2
        <!-- Helioviewer Apache Ant build.xml. -->
 
3
        <!-- Last updated: March 2009 By Keith -->
 
4
        <description>
 
5
                Helioviewer Apache Ant build.xml
 
6
    </description>
 
7
 
 
8
    <!-- Some useful variables -->
 
9
    <property name="hvlibs"  value="lib/helioviewer"/>
 
10
        <property name="cssdir"  value="styles"/>
 
11
        <property name="dochome" value="install/tools/jsdoc-toolkit/" />
 
12
 
 
13
        <target name="build">
 
14
                <echo>Building Helioviewer...</echo>
 
15
 
 
16
                <!-- create build directory -->
 
17
                <mkdir dir="${hvlibs}/build"/>
 
18
 
 
19
                <!-- concatenate in two-steps to preserve include order -->
 
20
                <concat destfile="${hvlibs}/build/helioviewer-all.js" encoding="UTF-8" eol="lf">
 
21
                    <filelist dir="${hvlibs}" files="LoadingIndicator.js, UIElement.js, Layer.js"/>
 
22
                        <fileset dir="${hvlibs}" includes="*.js" excludes="LoadingIndicator.js, UIElement.js, Layer.js"/>
 
23
                </concat>
 
24
 
 
25
                <concat destfile="${cssdir}/helioviewer-all.css" encoding="UTF-8" eol="lf">
 
26
                        <filelist dir="${cssdir}" files="main.css"/>
 
27
                    <fileset dir="${cssdir}" includes="*.css" excludes="blackGlass.css, carbon.css, carbon-white.css, main-ie.css, helioviewer-all.css, main.css, main-timeline.css"/>
 
28
                </concat>               
 
29
 
 
30
                <!-- minify-->
 
31
                <exec dir="install/tools" executable="JSMin" resolveexecutable="true">
 
32
                        <arg value="../../${hvlibs}/build/helioviewer-all.js"/>
 
33
                        <arg value="../../${hvlibs}/build/helioviewer-all-min.js"/>
 
34
                </exec>
 
35
 
 
36
                <echo>Done!</echo>
 
37
        </target>
 
38
        
 
39
        <!-- Documentation Generation -->
 
40
        <target name="doc">
 
41
                <echo>Generating documentation...</echo>
 
42
                <exec dir="${dochome}" executable="java">
 
43
                        <arg line="-jar jsrun.jar app/run.js -a -p -t=templates/jsdoc -d=../../../docs/ ../../../lib/helioviewer/" />
 
44
                </exec>
 
45
        </target>
 
46
</project>