[Gvsig_english] Install source

erwan bocher erwan.bocher at gmail.com
Mon Oct 17 14:01:40 CEST 2005


Hi José,

Merci beaucoup, muchas gracias.
But I never used ant script. It's more difficult than OpenJump, no ?.
Moreover, I have some troubles to install GVSIG sources : andami, cresques,
fmaps...

I'm sorry to disturb you but do you have a simple sample to create a menu in
a GVSIG vista ?

R1.

On 10/17/05, Francisco José <fpenarru at iver.es> wrote:
>
> Bocher escribió:
>
> Hi, hola,
>
> I'd like to create a plugin for gvsig. My plugin is a cascade menu in a
> vista (GvSIG view). I'm working with eclipse. I have studed examples in the
> source but I don't understand how to copy my jar and run it with Gvsig. I
> have create a config.xml but without sucess.
>
> Is-it possible to obtain a simple sample ?
>
> Best regards
>
> R1.
>
>
>
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
> Hi Erwan.
>
> You can have a look into Example project. There is an ANT script "
> build.xml":
>
> <project name="Generar extension en Andami"
> default="generate-without-source" basedir=".">
> <description>
> Instala el plugin de ejemplo en Andami.
> </description>
> <!-- set global properties for this build -->
> <property name="src" location="src"/>
> <property name="build" location="bin"/>
> <property name="dist" location="dist"/>
> *<property name="plugin" value="com.iver.ejemplo"/>
> <property name="extension-dir" location="../Andami/gvSIG/extensiones"/>*
>
> <target name="init">
> <!-- Create the time stamp -->
> <tstamp/>
> <!-- Create the build directory structure used by compile -->
> <mkdir dir="${build}"/>
> <mkdir dir="${dist}"/>
> <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout
> -->
> <buildnumber/>
>
> </target>
>
> <target name="compile"
> description="compile the source" >
> <!-- Compile the Java code from ${src} to ${bin} -->
> <javac srcdir="${src}"
> destdir="${build}"
>
> classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-
> utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>
> </target>
>
> <target name="generate-without-source" description="generate the
> distribution without the source file" >
> <!-- Create the distribution directory -->
> <mkdir dir="${dist}"/>
>
> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
> <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
> <copy file="config/config.xml" todir="${dist}"/>
> <copy file="config/about.htm" todir="${dist}"/>
> <copy todir="${dist}">
> <fileset dir="." includes="text*.properties"/>
> </copy>
> <copy todir="${dist}/images">
> <fileset dir="images/" includes="*"/>
> </copy>
> <move todir="${extension-dir}/${plugin}/">
> <fileset dir="${dist}" includes="**/**"/>
> </move>
> </target>
> </project>
>
> Look at the bold lines:
> <property name="plugin" value="com.iver.ejemplo"/>
> <property name="extension-dir" location="../Andami/gvSIG/extensiones"/>
> Your plugin will be named with your package name (say for example
> org.bocher.cascade), and your jar will be copied in directory
> "extensiones", inside Andami project.
>
> When Andami starts, looks into this directory and loads all the jars it
> can find there. You have to be aware of telling your plugin to depends on
> gvSIG extension => In your config.xml file, you have to put a line like
> this:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <plugin-config>
> * <depends plugin-name="com.iver.cit.gvsig" />
>
> *(only if you are using objects from this plugin, of course)
> So, when you want to debug you plugin, you run the ant script, and start
> debugging.
>
> Hope this helps. Anyway, if I misunderstand you, or you still have
> problems, let me know, and we will try to help you better.
>
> Have fun, and thanks for using gvSIG!!!.
>
> --
> Francisco José Peñarrubia
> Equipo gvSIG
>
> IVER T.I. S.A.
> c/Salamanca 50
> 46005 Valencia
> Spain
>
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at runas.cap.gva.es
> http://runas.cap.gva.es/mailman/listinfo/gvsig_internacional
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://runas.cap.gva.es/pipermail/gvsig_internacional/attachments/20051017/800063f7/attachment-0001.htm


More information about the Gvsig_internacional mailing list