[Gvsig_desarrolladores] Asistente de creacion de plugin de gvsig2.0

Cèsar Ordiñana cordinyana en gvsig.com
Vie Dic 9 13:31:37 CET 2011


El 09/12/11 13:20, seriznue escribió:
> Hola Cesar, he seguido tus recomendaciones pero sigo con el mismo error. En
> efecto los proyectos estan creados. Supongo que no habrá ningun problema en
> configurar manualmente mi espacio de trabajo. Aún así tengo otro problema.
> Cuando intento ejecutar un objetivo del build.xml me aparece el siguiente
> error:
>
> ------------------------------------------------------------------Buildfile:
> C:\ProyectosGVSIG\build\build.xml
> mvn-install:
>
> BUILD FAILED
> C:\ProyectosGVSIG\build\ant-tasks\maven-goals.xml:25: The following error
> occurred while executing this line:
> C:\ProyectosGVSIG\build\ant-tasks\ant-tasks-config.xml:73: ERROR!!
>
> You have to define your gvSIG platform properties,
> by creating the file: C:\Documents and
> Settings\dnac19/.gvsig.platform.properties
> with the following content:
>
>      native_platform=linux
>      native_distribution=Ubuntu-9.10
>      native_compiler=gcc4
>      native_arch=i386
>      native_libraryType=dynamic
>      export
> native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType}
>
> Replace the fifth initial variables values with the ones appropiate
> to your platform.
>
> If you use maven in the command line, you can use the previous file also
> to define the MAVEN_OPTS environment variable, by adding to your
> .bash_rc file something like this:
>
>      if [ -f "${HOME}/.gvsig.platform.properties" ]
>      then
>          . ${HOME}/.gvsig.platform.properties
>          export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m
> -Dnative-classifier=${native_classifier}"
>      else
>          export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m"
>      fi
>
> It will work if you use the bash shell. In any other case or platform,
> you'll
> have to define your MAVEN_OPTS environment variable and set the
> "native-classifier" parameter directly.
> ----------------------------------------------------------------------------------------------
>
> Por lo que he leido en la documentacion de desarrolador tengo que crear un
> archivo .gvsig.platorm.properties con los parametros para windows, pero,
> ¿como creo este archivo? ¿su extension es properties? ¿no le pongo nombre?
> ¿puede ser que el problema anterior se deba a este archivo?
>
> Un saludo y muchas gracias por adelantado

Si, es posible que el error anterior se debiera a lo mismo, lo 
comprobaremos en cuanto podamos.

En cuanto al archivo si, tienes que crearlo tal cuál: 
".gvsig.platform.properties"

El contenido para windows sería:

native_platform=win
native_distribution=nt
native_compiler=vs8
native_arch=i386
native_libraryType=dynamic

Puedes ver los posibles valores en el documento:

http://www.gvsig.org/web/projects/gvsig-desktop/docs/devel/gvsig-devel-guide/2.0.0/trabajar-con-el-nucleo-de-gvsig/gvsig-compilation/initial-configuration/initial-configuration

Saludos,

-- 
Cèsar Ordiñana Navarro
gvSIG software architect
DiSiD Technologies (http://www.disid.com)



Más información sobre la lista de distribución gvSIG_desarrolladores