AFAIK, there are some options that you can pass to main java class as arguments. The common way to launch a java app is:
java -DSomeArgumentToTheJVM -DOtherArgumentToTheJVM -jar SomeJavaClass ArgumentsForYourApplication The first ArgumentForYourApplication must be the name of the application. This value is set "always" to "gvSIG". This value is used for example to name the log file, search for some properties, .... The second argument must be always the path to the extensions folder. This path is relative to the path of the file andami.jar. Commonly this value is set to gvSIG/extensiones, but you can change the name of the folder and change that line on the script to make it clear, for example gvSIG/plugins Another recognized argument is -language=ISO_CODE_FOR_THE_LANGUAGE. This argument override the value that you set on the preferences. If any of the arguments passed to the application is --install, the next argument must be --installURL <url> : This argument makes that gvSIG enter in install mode, that is, the plugin manager is opened and you can install new plugins, Also, all the arguments are accessible for all the plugins of gvSIG, so when gvSIG is launched, all the extensoions are initialized and in this initialization stage, the plugins can take this argument and use its value to get configured. The extension that has the responsibility of handle the projects com.iver.cit.gvsig.ProjectExtension.java when it's initialized takes the last argument passed to the application, and test if this arguments ends in .gvp. If that check is true, it takes this final argument as a path to a project and tries to load it. Another interested option is -DgvSIG.confDir=<path> . As it is passed to the jvm, is not really a "gvSIG argument" but it is interesting anyway. It allows configure the folder where the gvSIG preferences (palettes.xml, plugins-persistence.xml, gvSIG,log, ...) are stored. I'm not sure if there are most options, but i hope that i put some light on this. El día 22 de marzo de 2012 23:33, Simon Cropper <simoncrop...@fossworkflowguides.com> escribió: > I managed to get this to work without any fuss. > > In launchers just list the project after the reference to the shell > script, or from the command line just type ~/gvSIG_1.10/bin/gvSIG.sh > "/my/gvsig/project.gvp" > > Thanks. > > P.S. I never read anywhere that you could do this. When I looked at the > script I did not see anything that indicated that it accepted project > files. As it was $@ follows the final call -- this means tag on all the > attributes passed to the script -- if one of those attributes is a > project file it just opens it up. > > On 23/03/12 04:33, Francisco Puga wrote: >> AFAIK it is possible. Did you find any trouble doing it? >> >> El día 16 de marzo de 2012 04:48, Simon Cropper >> <simoncrop...@fossworkflowguides.com> escribió: >>> Hi, >>> >>> Is it possible to open a project from a script file? >>> >>> Along the lines "~/gvSIG_1.10/gvSIG.sh $MyProject" where the MyProject >>> variable is a project file (inc path). >>> >>> What I am trying to achieve is a rapid movement between projects. At the >>> moment I open gvSIG then drill down the directory tree until I find my >>> project then open it. >>> >>> Does the latest version of gvSIG have better 'project' management >>> capabilities, not elements of a project, capabilities? >>> >>> I am currently using Ubuntu 11.10 with XFCE, gvSIG 1.10 (Build 1264), >>> Java 1.6.0_20. >>> >>> -- >>> Cheers Simon >>> >>> Simon Cropper - Open Content Creator / Website Administrator >>> >>> Free and Open Source Software Workflow Guides >>> ------------------------------------------------------------ >>> Introduction http://www.fossworkflowguides.com >>> GIS Packages http://www.fossworkflowguides.com/gis >>> bash / Python http://www.fossworkflowguides.com/scripting >>> _______________________________________________ >>> Gvsig_internacional mailing list >>> Gvsig_internacional@listserv.gva.es >>> >>> To see the archives, edit your preferences or unsubscribe from this mailing >>> list, please access this url: >>> >>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional >> >> >> > > > -- > Cheers Simon > > Simon Cropper - Open Content Creator / Website Administrator > > Free and Open Source Software Workflow Guides > ------------------------------------------------------------ > Introduction http://www.fossworkflowguides.com > GIS Packages http://www.fossworkflowguides.com/gis > bash / Python http://www.fossworkflowguides.com/scripting > _______________________________________________ > Gvsig_internacional mailing list > Gvsig_internacional@listserv.gva.es > > To see the archives, edit your preferences or unsubscribe from this mailing > list, please access this url: > > http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional -- Francisco Puga Grupo de Desarrollo Cartolab - Laboratorio de Ingeniería Cartográfica. http://www.cartolab.es ETS Ingeniería de Caminos, Canales y Puertos Universidade da Coruña Campus de Elviña - 15071 A Coruña (España) (34)981167000 ext. 5493 _______________________________________________ Gvsig_internacional mailing list Gvsig_internacional@listserv.gva.es To see the archives, edit your preferences or unsubscribe from this mailing list, please access this url: http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional