Revision 19311 trunk/extensions/extGeoreferencing/build.xml
build.xml | ||
---|---|---|
25 | 25 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
26 | 26 |
<import file="../binaries/ant/utilities.xml"/> |
27 | 27 |
|
28 |
|
|
28 |
|
|
29 | 29 |
<target name="init"> |
30 | 30 |
<!-- Create the time stamp --> |
31 | 31 |
<tstamp/> |
... | ... | |
35 | 35 |
<mkdir dir="${build}"/> |
36 | 36 |
<mkdir dir="${dist}"/> |
37 | 37 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout --> |
38 |
<buildnumber/>
|
|
39 |
|
|
38 |
<buildnumber/> |
|
39 |
|
|
40 | 40 |
</target> |
41 | 41 |
|
42 | 42 |
<target name="import-build-number"> |
... | ... | |
47 | 47 |
|
48 | 48 |
<target name="generate-without-source" |
49 | 49 |
description="generate the distribution without the source file"> |
50 |
|
|
50 |
|
|
51 | 51 |
<!-- Create the distribution directory --> |
52 | 52 |
<mkdir dir="${dist}"/> |
53 |
|
|
53 |
|
|
54 | 54 |
<!-- Jars de las extensiones --> |
55 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"
|
|
55 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
|
56 | 56 |
includes="org/gvsig/georeferencing/**" /> |
57 |
<copy file="lib/jama.jar" todir="${fmapLibs}"/>
|
|
57 |
<copy file="lib/jama.jar" todir="${fmapLibs}"/> |
|
58 | 58 |
<copy file="config/config.xml" todir="${dist}"/> |
59 | 59 |
<copy file="build.number" todir="${dist}"/> |
60 | 60 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
... | ... | |
65 | 65 |
<copy todir="${dist}/images"> |
66 | 66 |
<fileset dir="images" includes="*"/> |
67 | 67 |
</copy> |
68 |
|
|
68 |
|
|
69 | 69 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
70 | 70 |
<fileset dir="images" includes="*.gif"/> |
71 | 71 |
</copy> |
72 |
|
|
72 |
|
|
73 | 73 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
74 | 74 |
<fileset dir="images" includes="*.png"/> |
75 | 75 |
</copy> |
76 |
|
|
76 |
|
|
77 | 77 |
<move todir="${extensionsDir}/${plugin}/"> |
78 | 78 |
<fileset dir="${dist}" includes="${plugin}.jar"/> |
79 | 79 |
</move> |
... | ... | |
92 | 92 |
|
93 | 93 |
<target name="compile" description="compile the source" > |
94 | 94 |
<!-- Compile the Java code from ${src} to ${build} --> |
95 |
<antcall target="gvSIG-import-build-number"/> |
|
95 | 96 |
<mkdir dir="${build}" /> |
97 |
<loadEclipseClasspath project="${basedir}"/> |
|
96 | 98 |
<gvSIG-javac |
97 |
classpath="${eclipseClasspath}"/> |
|
99 |
classpath="${eclipseClasspath}" |
|
100 |
/> |
|
98 | 101 |
</target> |
99 |
|
|
102 |
|
|
100 | 103 |
<target name="create-jar" |
101 | 104 |
description="Creates the plugin jar"> |
102 | 105 |
<mkdir dir="${dist}"/> |
103 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"
|
|
106 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
|
104 | 107 |
includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/> |
105 |
<jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}"
|
|
108 |
<jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" |
|
106 | 109 |
includes="com/iver/cit/gvsig/fmap/**"/> |
107 | 110 |
</target> |
108 | 111 |
|
... | ... | |
117 | 120 |
<fileset dir="images/" includes="*"/> |
118 | 121 |
</copy> |
119 | 122 |
</target> |
120 |
|
|
123 |
|
|
121 | 124 |
<target name="copy-libs"> |
122 | 125 |
<copy todir="${dist}"> |
123 | 126 |
<fileset dir="lib" includes="*.*"/> |
124 | 127 |
</copy> |
125 | 128 |
</target> |
126 |
|
|
129 |
|
|
127 | 130 |
<target name="move-to-andami"> |
128 | 131 |
<copy todir="${extensionsDir}/${mainplugin}/images"> |
129 | 132 |
<fileset dir="images" includes="*Cursor.gif"/> |
... | ... | |
131 | 134 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
132 | 135 |
<fileset dir="${dist}" includes="${fmap-plugin}.jar"/> |
133 | 136 |
</move> |
134 |
|
|
137 |
|
|
135 | 138 |
<move todir="${extensionsDir}/${plugin}/"> |
136 | 139 |
<fileset dir="${dist}" includes="**/**"/> |
137 | 140 |
</move> |
138 | 141 |
</target> |
139 |
|
|
142 |
|
|
140 | 143 |
<target name="clean" |
141 | 144 |
description="clean up" > |
142 | 145 |
<!-- Delete the ${build} and ${dist} directory trees --> |
143 | 146 |
<delete dir="${dist}"/> |
144 | 147 |
<delete dir="${build}"/> |
145 | 148 |
</target> |
146 |
|
|
149 |
|
|
147 | 150 |
<target name="run-tests" depends="batch-build,compile-tests"> |
148 | 151 |
<antcall target="generic-run-tests"> |
149 | 152 |
<param name="TestSuite.Name" value="org.gvsig.georeferencing.AllTests"/> |
Also available in: Unified diff