[Gvsig_desarrolladores] archivo build.xml

Cèsar Ordiñana cordinyana en gvsig.com
Jue Mar 3 15:52:22 CET 2011


Hola Carlos,

El 03/03/11 14:58, Carlos Terán escribió:
> Saludos,
>
> Espero que me puedan ayudar. Al momento estoy tratando de montar gvSIG 
> 2.0 y al instante q:
>
> "Añadiremos a la vista de Ant que hemos abierto, el archivo 
> /build.xml/ que tenemos dentro del proyecto /build/. Entonces nos 
> aparecerán una serie de objetivos de ant, entre los cuáles está 
> /mvn-install/. Lo lanzamos con doble click o seleccionando el objetivo 
> indicado y pulsando en el icono con la flecha." (Según el manual)
>
> eclipse me arroja 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.
>
> Imagino que el error es porque algún archivo está prestablecido para 
> correr en ubuntu y yo estoy trabajando sobre Windows (es así como debo 
> trabajar según el departamento de sistemas del Ministerio de 
> Desarrollo Urbano y Vivienda del Ecuador).
>
> Por favor, ayúndenme indicandome el cómo hacer para que funcione sobre 
> windows.
>
> Atentamente,
> Carlos Terán V.

Como dice el mensaje, tienes que crear lo siguiente:

- Un archivo C:\Documents and 
Settings\dnac19\.gvsig.platform.properties, con el siguiente contenido 
cuando se trata de windows:

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

   En la guía de desarrollo se explica qué son cada uno de los 
parámetros y qué valores soportamos.

- Si vas a usar maven desde el shell de windows, la siguiente variable 
de entorno:

MAVEN_OPTS="-Dnative-classifier=win-nt-vs8-i386-dynamic"


Saludos,

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

------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://listserv.gva.es/pipermail/gvsig_desarrolladores/attachments/20110303/d75f6850/attachment.htm 


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