Statistics
| Revision:

root / trunk / extensions / extGraph_predes / build.xml @ 11445

History | View | Annotate | Download (3.34 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 7839 fjp
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
12 8850 cesar
  <property name="mainPlugin" value="com.iver.cit.gvsig" />
13 8134 azabala
  <property name="fmapLibs"  location="../libFMap/lib"/>
14 6032 azabala
  <target name="init">
15
    <!-- Create the time stamp -->
16
    <tstamp/>
17 7839 fjp
    <!-- Create the build directory structure used by compile -->
18
    <mkdir dir="${build}"/>
19
    <mkdir dir="${dist}"/>
20 8729 jaume
    <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
21
    <buildnumber/>
22 8352 jaume
23 6032 azabala
  </target>
24
25 7839 fjp
  <target name="generate-without-source" description="generate the distribution without the source file" >
26
    <!-- Create the distribution directory -->
27 6032 azabala
    <mkdir dir="${dist}"/>
28
    <mkdir dir="${dist}/lib"/>
29
30 8352 jaume
31
32 9413 azabala
    <!--<jar jarfile="${fmapLibs}/jts-1.7.jar" basedir="${build}" update="yes" includes="com/vividsolutions/**"/>-->
33
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
34 9630 jaume
          <!-- These files have been moved to FMap
35

36 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/**"
37
     excludes="com/iver/cit/gvsig/project/documents/view/legend/gui/**" />
38 9630 jaume
     -->
39 8729 jaume
    <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/**"/>
40 8850 cesar
          <jar jarfile="${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar"
41
                          basedir="${build}"
42
                          includes="com/iver/cit/gvsig/project/documents/view/legend/gui/**"
43
                          update="yes" />
44 8352 jaume
45
46 7839 fjp
    <copy file="config/config.xml" todir="${dist}"/>
47
    <!-- <copy file="config/about.htm" todir="${dist}"/> -->
48
    <copy todir="${dist}">
49 8729 jaume
      <fileset dir="config/" includes="text*.properties"/>
50 6032 azabala
    </copy>
51 7839 fjp
    <copy todir="${dist}/lib">
52 8729 jaume
      <fileset dir="lib" includes="*"/>
53 7839 fjp
    </copy>
54
    <copy todir="${dist}/images">
55 8729 jaume
      <fileset dir="images/" includes="*"/>
56 6032 azabala
    </copy>
57 8539 jaume
    <copy todir="${dist}/symbols">
58 8729 jaume
      <fileset dir="symbols/" includes="**/**"/>
59 8539 jaume
    </copy>
60
61 8729 jaume
    <copy todir="${extension-dir}/${plugin}/">
62
      <!--<fileset dir="${dist}" includes="**/**"/>-->
63
      <fileset dir="${dist}">
64
              <exclude name="**/${plugin-fmap-gvsig}.jar"/>
65
              <include name="**/**"/>
66
          </fileset>
67
    </copy>
68 8868 cesar
          <copy todir="${extension-dir}/${mainPlugin}/lib/">
69
                            <fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
70
          </copy>
71
  <!--${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar        <copy todir="${fmapLibs}">
72 8729 jaume
                  <fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
73 8868 cesar
          </copy> -->
74
         <delete dir="${dist}"/>
75 8773 jmvivo
    </target>
76 9630 jaume
77 8773 jmvivo
    <target name="save-gvsig-jar-to-install-dir" description="Save the gvsig.jar to installdir" >
78
          <!-- ******************************* -->
79
80 8743 jaume
          <copy todir="./install">
81
                  <fileset dir="${extension-dir}/com.iver.cit.gvsig/lib/">
82
                          <include name="com.iver.cit.gvsig.jar"/>
83
                </fileset>
84
          </copy>
85
          <!-- ******************************* -->
86 8773 jmvivo
87 6032 azabala
  </target>
88
</project>