Statistics
| Revision:

root / trunk / extensions / extQuickInfo / build.xml @ 27817

History | View | Annotate | Download (4.72 KB)

1
        <project name="extQuickInfo" default="install" basedir=".">
2
            
3
                <description>
4
                Installs the plugin extQuickInfo in gvSIG.
5
            </description>
6

    
7
                  <!-- set global properties for this build -->
8
                  <property name="src" location="src"/>
9
                  <property name="build" location="bin"/>
10
                  <property name="dist"  location="dist"/>
11
                  <property name="lib"  location="lib"/>
12
                  <property name="plugin" value="org.gvsig.quickInfo"/>
13
                  <property name="andami-lib" value="../_fwAndami/lib"/>
14
                  <property name="andami" value="../_fwAndami/"/>
15
                  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
16
                  <property name="validation-dir" location="../_fwAndami/lib"/>
17
                  <property name="gvSIGlib-dir" location="${extension-dir}/com.iver.cit.gvsig/lib"/>        
18
                  <property name="model-dir" location="../_fwAndami/gvSIG/extensiones/"/>        
19
                  <property name="img-dir" location="../_fwAndami/src/images"/>
20
                  <property name="theme-dir" location="../_fwAndami/theme"/>
21
                  <property name="gvSIG-dir" location="${extension-dir}/com.iver.cit.gvsig/"/>
22
                  <property name="jarName" value="org.gvsig.quickInfo.jar"/>
23
                <import file="../binaries/ant/utilities.xml"/>
24
                
25
         <target name="init">
26
            <!-- Create the time stamp -->
27
            <tstamp/>
28
            <!-- Create the build directory structure used by compile -->
29
            <mkdir dir="${build}"/>
30
            <mkdir dir="${dist}"/>
31
                  <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
32
                  <!-- <buildnumber/> -->
33
          </target>
34
                
35
        <target name="install" depends="compile,generate-without-source,generate-validation-without-source, generate-model-without-source">
36
        </target>
37

    
38
        <target name="buildNumber">
39
                <propertyfile 
40
                        file="build.number"
41
                        comment="Build Number for ANT. Do not edit!">
42
                        <entry  
43
                                key="build.number" 
44
                                default="0" 
45
                                type="int" operation="+"/>
46
                        </propertyfile>
47
                <property file="build.number"/>
48
        </target>
49

    
50

    
51
        <target name="distribution" depends="buildNumber,install">
52
        </target>
53

    
54
                
55
        <target name="generate-without-source" description="generate the distribution without the source file" >
56
            <!-- Create the distribution directory -->
57
            <mkdir dir="${dist}"/>
58

    
59
            <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
60
            <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
61

    
62
                <copy todir="${dist}">
63
                        <fileset dir="config/" includes="*"/>
64
            </copy>
65
                
66
                <mkdir dir="${dist}/images"/>
67
                <copy todir="${dist}/images">
68
                        <fileset dir="images" includes="*"/>
69
                </copy>
70
                <mkdir dir="${dist}/xsl"/>
71
                <copy todir="${dist}/xsl">
72
                        <fileset dir="xsl" includes="*"/>
73
                </copy>
74
                <!-- <copy todir="${dist}">
75
                        <fileset dir="lib" includes="*"/>
76
                </copy> -->
77
                                
78
            <loadproperties srcFile="build.number"/>
79
                <replace casesensitive="true"
80
                        file="${dist}/about.htm"
81
                        token="#build.number#"
82
                        value="${build.number}"/>
83
            <copy todir="${dist}">
84
                    <fileset dir="config" includes="text*.properties"/>
85
            </copy>
86
                
87
            <copy file="build.number" todir="${dist}"/>
88

    
89
                <!-- <move file="${dist}/${plugin}.jar" todir="${gvSIGlib-dir}" />
90
            <move todir="${extension-dir}/${plugin}/">
91
                    <fileset dir="${dist}" includes="**/**" />
92
            </move> -->
93
        </target>
94
                
95
                <target name="compile" description="compile the source" >
96
                                <!-- Compile the Java code from ${src} to ${build} -->
97
                                <mkdir dir="${build}" />
98
                                <loadEclipseClasspath project="${basedir}"/>
99
                                <gvSIG-javac
100
                                        classpath="${eclipseClasspath}"
101
                                />
102

    
103
                                <!--<javac  srcdir="${src}"
104
                                        destdir="${build}"
105
                                        source="${JavaSourceVersion}"
106
                                        target="${JavaTargetVersion}"
107
                                        debug="${debug}"
108
                                        debuglevel="${debuglevel}">
109
                                    <classpath refid="libFMap.compile-classpath"/>
110
                                </javac>-->
111
                                <!-- copy data files -->
112
                                <copy todir="${build}">
113
                                        <fileset
114
                                                dir="src"
115
                                                excludes="**/*.java"/>
116
                                </copy>
117
                </target>
118
                
119
                 <target name="generate-validation-without-source" description="generate the validation module distribution without the source file" >
120
                    <!-- Create the distribution directory -->
121
                    <mkdir dir="${dist}"/>
122
                    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
123

    
124
                         <!-- <copy todir="${build}/images">
125
                                     <fileset dir="images/" includes="*"/>
126
                         </copy> -->
127
                    <move todir="${extension-dir}/${plugin}/">
128
                            <fileset dir="${dist}"  includes="**/**"/>
129
                    </move>
130
                         
131
                 </target>                
132

    
133
                 <target name="generate-model-without-source" description="generate the model module distribution without the source file" >
134
                    <!-- Create the distribution directory -->
135
                    <mkdir dir="${dist}"/>
136
                    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> 
137
                    <move todir="${extension-dir}/${plugin}/">
138
                            <fileset dir="${dist}" includes="**/**"/>
139
                    </move>
140
                         
141
                 </target>
142
        </project>