Revision 23249

View differences:

branches/v2_0_0_prep/extensions/extDwg/build.xml
1
<project name="extDwgPlugin" default="generate-without-source" basedir=".">
2
    <description>
3
        Carga en gvSIG el driver de DWG y genera una distribuciĆ³n
4
    </description>
5
	<!-- set global properties for this build -->
6
	<property name="src" location="src"/>
7
	<property name="build" location="bin"/>
8
	<property name="src-test" location="src-test"/>
9
	<property name="build-test" location="bin-test"/>
10
	<property name="doc"  location="doc"/>
11
	<property name="lib"  location="lib"/>
12
	<property name="dist"  location="dist"/>
13
	<property name="jarName" value="dwg"/>
14
	<property name="fmapLibs" location="../libFMap/lib"/>
15
	<property name="andami" location="../_fwAndami"/>
16
	<property name="andamiJar" location="${andami}/andami.jar" />
17
	<property name="andamiLibs" location="${andami}/lib"/>
18
	<property name="mainPlugin" location="${andami}/gvSIG/extensiones/com.iver.cit.gvsig" />
19
	<property name="drivers-dir" location="${mainPlugin}/drivers" />
20
	<property name="lib-dir" description="The main plugin's library dir" location="${mainPlugin}/lib" />
21
	<property name="translationsTargetDir" location="${build}/com/iver/cit/gvsig/drivers/dwg/resources/translations" />
22
	<property name="fmapJar" location="${lib-dir}/fmap.jar"/>
23

  
24
	 <property name="plugin" value="com.iver.cit.gvsig.dwg"/>
25
	 <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
26
	  <property name="mainPlugin" value="com.iver.cit.gvsig" />
27
	<import file="../binaries/ant/utilities.xml"/>
28

  
29
  <target name="init">
30
    <!-- Create the time stamp -->
31
    <tstamp/>
32
	<echo>
33
		Compiling ${ant.project.name}...</echo>
34
  </target>
35

  
36

  
37
	<target name="clean-orig" depends="generate-with-source"
38
			description="clean dist directory" >
39

  
40
		<delete dir="${dist}/src"/>
41
		<delete dir="${dist}/doc"/>
42
		<delete dir="${dist}/bin"/>
43
		<delete dir="${dist}/lib"/>
44
	</target>
45

  
46

  
47
	<target name="generate-without-source" depends="init,copy-data-files,create-jar,move-to-andami"
48
		description="Carga el driver de DWG en Andami">
49
	</target>
50

  
51
  <target name="generate-with-source" depends="generate-without-source"
52
	description="generate the distribution" >
53
    <!-- Remove previous distribution directory -->
54
    <delete dir="${dist}"/>
55
    <!-- Create the distribution directory structure -->
56
    <mkdir dir="${dist}"/>
57
    <mkdir dir="${dist}/src"/>
58
    <mkdir dir="${dist}/doc"/>
59
    <mkdir dir="${dist}/lib"/>
60
    <mkdir dir="${dist}/bin"/>
61
    <!-- Copy necessary distribution files to dist dir -->
62
    <copy todir="${dist}/src">
63
      <fileset dir="${src}"/>
64
    </copy>
65
    <copy todir="${dist}/doc">
66
      <fileset dir="${doc}"/>
67
    </copy>
68
    <copy todir="${dist}/lib">
69
      <fileset dir="${lib}"/>
70
    </copy>
71
  	<mkdir dir="${translationsTargetDir}" />
72
  	 <copy todir="${translationsTargetDir}">
73
  	    <fileset dir="config" includes="*" />
74
  	</copy>
75
    <mkdir dir="${dist}/bin/dwg" />
76
  	<jar jarfile="${dist}/bin/dwg/${jarName}.jar" basedir="${build}"  />
77

  
78

  
79
  	<!-- Zip distribution -->
80
    <zip destfile="${dist}/gvSIGDwgPlugin.zip"
81
         basedir="${dist}"
82
         update="true"
83
    />
84
  </target>
85

  
86
	<target name="batch-build"
87
			description="compile the sources, create the jar file"
88
			depends="init,compile,copy-data-files,create-jar,move-to-andami">
89
	</target>
90

  
91

  
92
	<target name="copy-data-files">
93
	  			<mkdir dir="config"/>
94
	  	        <copy todir="${translationsTargetDir}">
95
	  	                <fileset dir="config" includes="*" />
96
	  	        </copy>
97
	  	</target>
98
	<target name="compile" description="compile the source" >
99
		<!-- Compile the Java code from ${src} to ${build} -->
100
		<mkdir dir="${build}" />
101
		<loadEclipseClasspath project="${basedir}"/>
102
		<gvSIG-javac
103
			classpath="${eclipseClasspath}"
104
		/>
105
	</target>
106

  
107
	<target name="create-jar"
108
			description="Creates the plugin jar">
109
		<mkdir dir="${dist}"/>
110
		<copy file="config/config.xml" todir="${dist}"/>
111
	    <copy todir="${dist}">
112
	      <fileset dir="config/" includes="text*.properties"/>
113
	    </copy>
114
		<copy todir="${dist}/images">
115
			<fileset dir="images/" includes="*"/>
116
		</copy>
117

  
118
		<jar jarfile="${dist}/${jarName}.jar"
119
			basedir="${build}"  excludes="com/iver/cit/gvsig/drivers/dwg/debug/** " />
120

  
121
		<jar jarfile="${dist}/${plugin}.jar"
122
					basedir="${build}"
123
					excludes="com/**/DwgMemoryDriver** com/iver/cit/gvsig/drivers/dwg/fmapconverters/**" />
124

  
125
	</target>
126

  
127
	<target name="move-to-andami">
128
		<copy todir="${drivers-dir}/dwg/" file="${dist}/${jarName}.jar"/>
129

  
130
		<!-- necessary to copy jdwglib.jar -->
131
		<copy todir="${lib-dir}">
132
			<fileset dir="${lib}"/>
133
		</copy>
134

  
135
		<copy todir="${extension-dir}/${plugin}/">
136
		      <fileset dir="${dist}">
137
		      	<exclude name="**/**.jar"/>
138
		      	<include name="**/**"/>
139
			  </fileset>
140
		</copy>
141
		<!--
142
		Movemos el jar al main-plugin
143
		-->
144
		<copy todir="${extension-dir}/${plugin}/"
145
			file="${dist}/${plugin}.jar"/>
146

  
147
	</target>
148

  
149
	<target name="clean"
150
			description="clean up">
151
		<!-- Delete the ${build} and ${dist} directory trees -->
152
		<delete dir="${build}" />
153
		<delete dir="${dist}" />
154
	</target>
155

  
156
	<target name="run-tests" depends="batch-build,compile-tests">
157
		<antcall target="generic-run-tests">
158
			<param name="TestSuite.Name" value="com.iver.cit.jdwglib.AllTests"/>
159
		</antcall>
160
	</target>
161
</project>
branches/v2_0_0_prep/extensions/extDwg/.classpath
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="src" output="bin-test" path="src-test"/>
5
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6
	<classpathentry exported="true" kind="src" path="/libFMap"/>
7
	<classpathentry kind="lib" path="/libFMap/lib/gdbms-0.8-SNAPSHOT.jar"/>
8
	<classpathentry kind="lib" path="/libFMap/lib/driver-manager-1.1.jar"/>
9
	<classpathentry kind="src" path="/_fwAndami"/>
10
	<classpathentry kind="src" path="/libDwg"/>
11
	<classpathentry kind="lib" path="/_fwAndami/lib/gvsig-i18n.jar" sourcepath="/libInternationalization/src"/>
12
	<classpathentry combineaccessrules="false" kind="src" path="/appgvSIG"/>
13
	<classpathentry kind="lib" path="/_fwAndami/lib/iver-utiles.jar" sourcepath="/libIverUtiles/src"/>
14
	<classpathentry kind="var" path="JUNIT_HOME/junit.jar"/>
15
	<classpathentry combineaccessrules="false" kind="src" path="/libProjection"/>
16
	<classpathentry kind="lib" path="/_fwAndami/lib/org.gvsig.exceptions.jar"/>
17
	<classpathentry kind="output" path="bin"/>
18
</classpath>
branches/v2_0_0_prep/extensions/extDwg/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>extDwg</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
		<buildCommand>
14
			<name>de.loskutov.FileSync.FSBuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
18
	</buildSpec>
19
	<natures>
20
		<nature>org.eclipse.jdt.core.javanature</nature>
21
	</natures>
22
</projectDescription>

Also available in: Unified diff