~andreas.hoelzl/jhelioviewer/jhv-formatting

« back to all changes in this revision

Viewing changes to jhv/build.xml

  • Committer: Andreas Hoelzl
  • Date: 2010-03-01 17:19:20 UTC
  • mto: This revision was merged to the branch mainline in revision 110.
  • Revision ID: andreas@clem.local-20100301171920-bbmk34dfjqw65vxv
remote files can now also be streamed from other servers

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!-- WARNING: Eclipse auto-generated file.
 
3
              Any modifications will be overwritten.
 
4
              To include a user specific buildfile here, simply create one in the same
 
5
              directory with the processing instruction <?eclipse.ant.import?>
 
6
              as the first entry and export the buildfile again. -->
 
7
 
 
8
 
 
9
 
 
10
<project basedir="." default="build" name="jhv">
 
11
          
 
12
        <exec executable="bzr" outputproperty="revnumber">
 
13
                                                   <arg line="revno"/> 
 
14
                                            </exec>
 
15
 
 
16
                                        
 
17
                                           <replaceregexp file="./src/org/helioviewer/jhv/gui/dialogs/AboutDialog.java" match="Revision (.?)(.?)(.?)"
 
18
                                                        replace="Revision ${revnumber} "/>
 
19
 
 
20
        
 
21
 <property environment="env"/>
 
22
    <property name="viewmodel.location" value="../viewmodel"/>
 
23
    <property name="ECLIPSE_HOME" value="../../../Downloads/eclipse"/>
 
24
    <property name="base.location" value="../base"/>
 
25
    <property name="hvplugin.location" value="../hvplugin"/>
 
26
    <property name="debuglevel" value="source,lines,vars"/>
 
27
    <property name="target" value="1.5"/>
 
28
    <property name="source" value="1.5"/>
 
29
    <path id="base.classpath">
 
30
        <pathelement location="${base.location}/bin"/>
 
31
    </path>
 
32
    <path id="viewmodel.classpath">
 
33
        <pathelement location="${viewmodel.location}/bin"/>
 
34
        <pathelement location="${viewmodel.location}/lib/fits.jar"/>
 
35
        <pathelement location="${viewmodel.location}/lib/kdu_jni.jar"/>
 
36
        <path refid="base.classpath"/>
 
37
        <pathelement location="${viewmodel.location}/lib/gluegen-rt.jar"/>
 
38
        <pathelement location="${viewmodel.location}/lib/jogl.jar"/>
 
39
        <pathelement location="${viewmodel.location}/lib/json.jar"/>
 
40
    </path>
 
41
    <path id="hvplugin.classpath">
 
42
        <pathelement location="${hvplugin.location}/bin"/>
 
43
    </path>
 
44
    <path id="jhv.classpath">
 
45
        <pathelement location="bin"/>
 
46
        <path refid="base.classpath"/>
 
47
        <path refid="viewmodel.classpath"/>
 
48
        <pathelement location="${viewmodel.location}/lib/kdu_jni.jar"/>
 
49
        <path refid="hvplugin.classpath"/>
 
50
        <pathelement location="${viewmodel.location}/lib/gluegen-rt.jar"/>
 
51
        <pathelement location="${viewmodel.location}/lib/jogl.jar"/>
 
52
        <pathelement location="${viewmodel.location}/lib/json.jar"/>
 
53
    </path>
 
54
    <target name="init">
 
55
        <mkdir dir="bin"/>
 
56
        <copy includeemptydirs="false" todir="bin">
 
57
            <fileset dir="src">
 
58
                <exclude name="**/*.launch"/>
 
59
                <exclude name="**/*.java"/>
 
60
            </fileset>
 
61
        </copy>
 
62
    </target>
 
63
    <target name="clean">
 
64
        <delete dir="bin"/>
 
65
    </target>
 
66
    <target depends="clean" name="cleanall">
 
67
        <ant antfile="${base.location}/build.xml" dir="${base.location}" inheritAll="false" target="clean"/>
 
68
        <ant antfile="${hvplugin.location}/build.xml" dir="${hvplugin.location}" inheritAll="false" target="clean"/>
 
69
        <ant antfile="${viewmodel.location}/build.xml" dir="${viewmodel.location}" inheritAll="false" target="clean"/>
 
70
    </target>
 
71
    <target depends="build-subprojects,build-project" name="build"/>
 
72
    <target name="build-subprojects">
 
73
        <ant antfile="${base.location}/build.xml" dir="${base.location}" inheritAll="false" target="build-project">
 
74
            <propertyset>
 
75
                <propertyref name="build.compiler"/>
 
76
            </propertyset>
 
77
        </ant>
 
78
        <ant antfile="${hvplugin.location}/build.xml" dir="${hvplugin.location}" inheritAll="false" target="build-project">
 
79
            <propertyset>
 
80
                <propertyref name="build.compiler"/>
 
81
            </propertyset>
 
82
        </ant>
 
83
        <ant antfile="${viewmodel.location}/build.xml" dir="${viewmodel.location}" inheritAll="false" target="build-project">
 
84
            <propertyset>
 
85
                <propertyref name="build.compiler"/>
 
86
            </propertyset>
 
87
        </ant>
 
88
    </target>
 
89
    <target depends="init" name="build-project">
 
90
        <echo message="${ant.project.name}: ${ant.file}"/>
 
91
        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
 
92
            <src path="src"/>
 
93
            <classpath refid="jhv.classpath"/>
 
94
        </javac>
 
95
    </target>
 
96
    <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
 
97
    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
 
98
        <copy todir="${ant.library.dir}">
 
99
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
 
100
        </copy>
 
101
        <unzip dest="${ant.library.dir}">
 
102
            <patternset includes="jdtCompilerAdapter.jar"/>
 
103
            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
 
104
        </unzip>
 
105
    </target>
 
106
    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
 
107
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
 
108
        <antcall target="build"/>
 
109
    </target>
 
110
    <target name="JavaHelioViewer">
 
111
        
 
112
        <java classname="org.helioviewer.jhv.JavaHelioViewer" failonerror="true" fork="yes">
 
113
            <classpath refid="jhv.classpath"/>
 
114
                
 
115
                
 
116
        
 
117
        </java>
 
118
    </target>
 
119
 
 
120
 
 
121
        <ant antfile="../build.xml">
 
122
 
 
123
                        </ant>
 
124
 
 
125
 
 
126
 
 
127
        
 
128
 
 
129
</project>
 
130
 
 
131
 
 
132
 
 
133