Revision 18416
branches/v10/extensions/extPublishGeoserver/build.xml | ||
---|---|---|
1 |
<project name="Publish Plugin Geoserver" default="dist" basedir="."> |
|
2 |
<description> |
|
3 |
Plugin publish Geoserver |
|
4 |
</description> |
|
5 |
<!-- set global properties for this build --> |
|
6 |
<property name="src" location="src"/> |
|
7 |
<property name="build" location="bin"/> |
|
8 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
|
9 |
<property name="dist" location="dist"/> |
|
10 |
<property name="dist-src" location="dist-src"/> |
|
11 |
<property name="lib" location="lib"/> |
|
12 |
<property name="plugin" value="org.gvsig.publish.geoserver"/> |
|
13 |
<property name="jarName" value="publishgeoserver"/> |
|
14 |
<property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/> |
|
15 |
<property name="targetDir" location="../_fwAndami/gvSIG/extensiones/${plugin}"/> |
|
16 |
<property name="build-doc" value="doc"/> |
|
17 |
<property name="compile-classpath" value="${extensionsDir}/org.gvsig.publish/com.iver.cit.gvsig.publish.jar:${andamiLibs}/iver-utiles.jar:../_fwAndami/andami.jar"/> |
|
18 |
<property name="JavaSourceVersion" value="1.4"/> |
|
19 |
<property name="JavaTargetVersion" value="1.4"/> |
|
20 |
<property name="encoding" value="ISO-8859-1"/> |
|
21 |
|
|
22 |
<target name="init"> |
|
23 |
<!-- Create the time stamp --> |
|
24 |
<tstamp /> |
|
25 |
</target> |
|
26 |
|
|
27 |
<target name="build-doc" depends="" description="Generates documentation"> |
|
28 |
<javadoc |
|
29 |
packagenames="org.gvsig.publish.geoserver.*" |
|
30 |
sourcepath="src" |
|
31 |
defaultexcludes="yes" |
|
32 |
destdir="${build-doc}/org.gvsig.publish.geoserver" |
|
33 |
encoding="${encoding}" |
|
34 |
windowtitle="Geoserver Publish API"> |
|
35 |
</javadoc> |
|
36 |
</target> |
|
37 |
|
|
38 |
<target name="dist" |
|
39 |
description="generate the distribution" depends="copy-data-files,create-jar,move-to-andami"> |
|
40 |
</target> |
|
41 |
|
|
42 |
<target name="batch-build" |
|
43 |
description="compile the sources, create the jar file" |
|
44 |
depends="compile,copy-data-files,create-jar,move-to-andami"> |
|
45 |
</target> |
|
46 |
|
|
47 |
<target name="compile" description="compile the source"> |
|
48 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
49 |
<mkdir dir="${build}" /> |
|
50 |
<javac srcdir="${src}" |
|
51 |
destdir="${build}" |
|
52 |
source="${JavaSourceVersion}" |
|
53 |
target="${JavaTargetVersion}" |
|
54 |
classpath="${compile-classpath}" |
|
55 |
debug="${debug}" |
|
56 |
debuglevel="${debuglevel}" |
|
57 |
encoding="${encoding}"/> |
|
58 |
</target> |
|
59 |
|
|
60 |
<target name="copy-data-files"> |
|
61 |
<mkdir dir="config"/> |
|
62 |
<copy todir="${dist}"> |
|
63 |
<fileset dir="config" includes="*" /> |
|
64 |
</copy> |
|
65 |
<mkdir dir="images"/> |
|
66 |
<copy todir="${dist}/images"> |
|
67 |
<fileset dir="images" includes="*" /> |
|
68 |
</copy> |
|
69 |
</target> |
|
70 |
|
|
71 |
<target name="create-jar" description="Creates the jar file"> |
|
72 |
<mkdir dir="${dist}"/> |
|
73 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/> |
|
74 |
</target> |
|
75 |
|
|
76 |
<target name="move-to-andami" description="Move jars and required libraries to andami"> |
|
77 |
<move todir="${targetDir}"> |
|
78 |
<fileset dir="${dist}" includes="**/*"/> |
|
79 |
</move> |
|
80 |
</target> |
|
81 |
|
|
82 |
<target name="clean" |
|
83 |
description="clean up" > |
|
84 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
85 |
<delete dir="${build}"/> |
|
86 |
<delete dir="${dist}"/> |
|
87 |
</target> |
|
88 |
|
|
89 |
<target name="generate-source-package"> |
|
90 |
<!-- Prepara un zip con los fuentes --> |
|
91 |
|
|
92 |
<delete dir="${dist-src}" quiet="yes"/> |
|
93 |
<mkdir dir="${dist-src}"/> |
|
94 |
<basename file="${basedir}" property="extensionProjectDir"/> |
|
95 |
<mkdir dir="${dist-src}/${extensionProjectDir}"/> |
|
96 |
<copy todir="${dist-src}/${extensionProjectDir}"> |
|
97 |
<fileset dir="${basedir}"/> |
|
98 |
</copy> |
|
99 |
<!--<copy todir="${dist-src}"> |
|
100 |
<fileset dir="${basedir}/install/resources" includes="Leeme-publish.txt, Readme-publish.txt"/> |
|
101 |
</copy> --> |
|
102 |
<delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
|
103 |
<mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
|
104 |
<delete dir="${dist-src}/${extensionProjectDir}/src-test"/> |
|
105 |
<mkdir dir="${dist-src}/${extensionProjectDir}/src-test"/> |
|
106 |
<delete dir="${dist-src}/${extensionProjectDir}/install"/> |
|
107 |
<delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
|
108 |
<delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
|
109 |
<delete dir="${dist-src}/${extensionProjectDir}/test-files" quiet="yes"/> |
|
110 |
<delete dir="${dist-src}/${extensionProjectDir}/test-file" quiet="yes"/> |
|
111 |
<!-- gets the build number form the extPublish --> |
|
112 |
<loadproperties srcFile="../extPublish/build.number"/> |
|
113 |
<replace casesensitive="true" |
|
114 |
token="#build.number#" |
|
115 |
value="${build.number}" |
|
116 |
dir="${dist-src}" |
|
117 |
includes="Leeme-publish.txt, Readme-publish.txt"/> |
|
118 |
<zip destfile="${dist-src}/gvSIG_extPublishGeoserver-10_${build.number}-src.zip" |
|
119 |
basedir="${dist-src}" |
|
120 |
excludes="*.zip,**/.svn" /> |
|
121 |
</target> |
|
122 |
|
|
123 |
</project> |
branches/v10/extensions/extPublishGeoserver/.classpath | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<classpath> |
|
3 |
<classpathentry kind="src" path="src"/> |
|
4 |
<classpathentry kind="src" path="src-test"/> |
|
5 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
6 |
<classpathentry combineaccessrules="false" kind="src" path="/_fwAndami"/> |
|
7 |
<classpathentry combineaccessrules="false" kind="src" path="/extPublish"/> |
|
8 |
<classpathentry combineaccessrules="false" kind="src" path="/libIverUtiles"/> |
|
9 |
<classpathentry kind="output" path="bin"/> |
|
10 |
</classpath> |
branches/v10/extensions/extPublishGeoserver/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>extPublishGeoserver</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 |
</buildSpec> |
|
14 |
<natures> |
|
15 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
16 |
</natures> |
|
17 |
</projectDescription> |
branches/v10/extensions/extPublishGeoserver/config/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="com.iver.cit.gvsig" /> |
|
4 |
<depends plugin-name="org.gvsig.publish" /> |
|
5 |
<libraries library-dir="."/> |
|
6 |
<resourceBundle name="text"/> |
|
7 |
<extensions> |
|
8 |
<extension class-name="org.gvsig.publish.geoserver.GeoserverExtension" |
|
9 |
description="GeoserverPublish Extension" |
|
10 |
active="true" |
|
11 |
priority="1"> |
|
12 |
</extension> |
|
13 |
</extensions> |
|
14 |
</plugin-config> |
branches/v10/extensions/extPublishGeoserver/src/org/gvsig/publish/geoserver/GeoserverExtension.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004-2006 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ibañez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
package org.gvsig.publish.geoserver; |
|
42 |
|
|
43 |
import com.iver.andami.plugins.Extension; |
|
44 |
|
|
45 |
public class GeoserverExtension extends Extension { |
|
46 |
|
|
47 |
public void execute(String actionCommand) { |
|
48 |
// TODO Auto-generated method stub |
|
49 |
|
|
50 |
} |
|
51 |
/** |
|
52 |
* Register the server, its services, remote resources and the GUI controller. |
|
53 |
*/ |
|
54 |
public void initialize() { |
|
55 |
// TODO Auto-generated method stub |
|
56 |
|
|
57 |
} |
|
58 |
/** |
|
59 |
* @return true if the extension is enabled |
|
60 |
*/ |
|
61 |
public boolean isEnabled() { |
|
62 |
|
|
63 |
return true; |
|
64 |
} |
|
65 |
|
|
66 |
public boolean isVisible() { |
|
67 |
// TODO Auto-generated method stub |
|
68 |
return false; |
|
69 |
} |
|
70 |
|
|
71 |
} |
branches/v10/extensions/extPublishGeoserver/src/org/gvsig/publish/geoserver/model/Geoserver.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Información Geográfica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004-2006 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ibañez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
package org.gvsig.publish.geoserver.model; |
|
42 |
|
|
43 |
import org.gvsig.publish.serversmodel.Server; |
|
44 |
|
|
45 |
public class Geoserver extends Server { |
|
46 |
/* |
|
47 |
* Constant to identify the server |
|
48 |
*/ |
|
49 |
public static final String SERVER_GEOSERVER = "Geoserver"; |
|
50 |
/* |
|
51 |
* Constant to identify the version |
|
52 |
* |
|
53 |
*/ |
|
54 |
public static final String VERSION="_v1"; |
|
55 |
/** |
|
56 |
* Constructor |
|
57 |
*/ |
|
58 |
public Geoserver() { |
|
59 |
super(); |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* @return String which identifies the Server in the Extensions Point |
|
64 |
*/ |
|
65 |
public String getType() { |
|
66 |
return SERVER_GEOSERVER; |
|
67 |
} |
|
68 |
|
|
69 |
/** |
|
70 |
* TODO: |
|
71 |
*/ |
|
72 |
public void postInitialize() { |
|
73 |
// TODO Auto-generated method stub |
|
74 |
|
|
75 |
} |
|
76 |
/** |
|
77 |
* |
|
78 |
* @return String to identify the class version, useful for the persistence. |
|
79 |
*/ |
|
80 |
public String getClassName() { |
|
81 |
|
|
82 |
return this.getClass().getName() + VERSION; |
|
83 |
} |
|
84 |
|
|
85 |
} |
Also available in: Unified diff