Statistics
| Revision:

root / tags / PilotoRedes_Build_2 / extensions / extGraph_predes / build.xml @ 11410

History | View | Annotate | Download (3.97 KB)

1 7839 fjp
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2 6032 azabala
    <description>
3 7839 fjp
        Instala el plugin de ejemplo en Andami.
4 6032 azabala
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="plugin" value="com.iver.cit.gvsig.graph"/>
10 8729 jaume
  <property name="plugin-fmap-gvsig" value="com.iver.cit.gvsig.graph-fmap-gvsig"/>
11 11095 jmvivo
  <property name="plugin-graph-gvsig" value="com.iver.cit.gvsig.graph-gvsig"/>
12 7839 fjp
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
13 8850 cesar
  <property name="mainPlugin" value="com.iver.cit.gvsig" />
14 8134 azabala
  <property name="fmapLibs"  location="../libFMap/lib"/>
15 6032 azabala
  <target name="init">
16
    <!-- Create the time stamp -->
17
    <tstamp/>
18 7839 fjp
    <!-- Create the build directory structure used by compile -->
19
    <mkdir dir="${build}"/>
20
    <mkdir dir="${dist}"/>
21 8729 jaume
    <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
22
    <buildnumber/>
23 8352 jaume
24 6032 azabala
  </target>
25 11095 jmvivo
26
  <target name="buildNumber">
27
        <propertyfile
28
                        file="build.number"
29
                        comment="Build Number for ANT. Do not edit!">
30
                        <entry  key="build.number" default="0" type="int" operation="+"/>
31
        </propertyfile>
32
        <property file="build.number"/>
33
  </target>
34 6032 azabala
35 11095 jmvivo
  <target name="distribution"
36
        description="increment build number and generate the distribution without the source file"
37
        depends="buildNumber,generate-without-source">
38
  </target>
39
40 7839 fjp
  <target name="generate-without-source" description="generate the distribution without the source file" >
41
    <!-- Create the distribution directory -->
42 6032 azabala
    <mkdir dir="${dist}"/>
43
    <mkdir dir="${dist}/lib"/>
44
45 8352 jaume
46
47 8729 jaume
    <!--
48
    - ->
49
    <jar jarfile="${fmapLibs}/jts-1.7.jar" basedir="${build}" update="yes" includes="com/vividsolutions/**"/>
50 8352 jaume

51 8729 jaume
    <!- - Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
52 8850 cesar
    <jar jarfile="${dist}/lib/${plugin-fmap-gvsig}.jar" basedir="${build}" includes="com/iver/cit/fmap/**,com/iver/cit/gvsig/**,com/iver/cit/project/**"
53 11090 jaume
     excludes="com/iver/cit/gvsig/project/documents/view/**" />
54 8729 jaume
    <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/**"/>
55 11095 jmvivo
          <jar jarfile="${extension-dir}/${mainPlugin}/lib/${plugin-graph-gvsig}.jar"
56 8850 cesar
                          basedir="${build}"
57 11090 jaume
                          includes="com/iver/cit/gvsig/project/documents/view/**"
58
                          />
59 8352 jaume
60
61 7839 fjp
    <copy file="config/config.xml" todir="${dist}"/>
62 11095 jmvivo
    <copy file="config/about.htm" todir="${dist}"/>
63
          <loadproperties srcFile="build.number"/>
64
          <replace casesensitive="true"
65
                  file="${dist}/about.htm"
66
                    token="#build.number#"
67
                  value="${build.number}"/>
68
          <copy file="build.number" todir="${dist}"/>
69 7839 fjp
    <copy todir="${dist}">
70 8729 jaume
      <fileset dir="config/" includes="text*.properties"/>
71 6032 azabala
    </copy>
72 7839 fjp
    <copy todir="${dist}/lib">
73 8729 jaume
      <fileset dir="lib" includes="*"/>
74 7839 fjp
    </copy>
75
    <copy todir="${dist}/images">
76 8729 jaume
      <fileset dir="images/" includes="*"/>
77 6032 azabala
    </copy>
78 8539 jaume
    <copy todir="${dist}/symbols">
79 8729 jaume
      <fileset dir="symbols/" includes="**/**"/>
80 8539 jaume
    </copy>
81
82 8729 jaume
    <copy todir="${extension-dir}/${plugin}/">
83
      <!--<fileset dir="${dist}" includes="**/**"/>-->
84
      <fileset dir="${dist}">
85
              <exclude name="**/${plugin-fmap-gvsig}.jar"/>
86
              <include name="**/**"/>
87
          </fileset>
88
    </copy>
89 8868 cesar
          <copy todir="${extension-dir}/${mainPlugin}/lib/">
90
                            <fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
91
          </copy>
92
  <!--${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar        <copy todir="${fmapLibs}">
93 8729 jaume
                  <fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
94 8868 cesar
          </copy> -->
95
         <delete dir="${dist}"/>
96 8773 jmvivo
    </target>
97 11090 jaume
98 8773 jmvivo
    <target name="save-gvsig-jar-to-install-dir" description="Save the gvsig.jar to installdir" >
99
          <!-- ******************************* -->
100
101 8743 jaume
          <copy todir="./install">
102
                  <fileset dir="${extension-dir}/com.iver.cit.gvsig/lib/">
103 11095 jmvivo
                          <include name="{plugin-graph-gvsig}.jar"/>
104 8743 jaume
                </fileset>
105
          </copy>
106
          <!-- ******************************* -->
107 8773 jmvivo
108 6032 azabala
  </target>
109
</project>