Title: Merging environment sets Post by: Scott N. on August 21, 2008, 07:48:04 am Is it possible to merge environment sets under the configuration for Genero Installations, i.e.
If I have under Genero Configuration Management a list of environment sets like - Informix 10UC5 - Informix 11.5 - genero-2.10.01 - genero-2.11.05 where in the Informix 11.5 I have defined: DBCENTURY=C DBDATE=DMY4/ INFORMIXDIR=/opt/IBM/informix INFORMIXSERVER=ol_alpha LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$LD_LIBRARY_PATH PATH=$INFORMIXDIR/bin:$PATH and under genero-2.11.05 I have FGLRUN=fglrun FGLDIR=/home/work/genero/genero-2.11.05 FGLPROFILE=$FGLDIR/etc/fglprofile LD_LIBRARY_PATH=$FGLDIR/lib:$LD_LIBRARY_PATH PATH=$FGLDIR/bin:$PATH Should I be able to select these two environments under the Compiler/Runtime environment sets and have a working environment from the merging of two? My tests so far seem to indicate that this is not possible as it seems the $FGLDIR etc. is not expanded. If I'm correct in my assumptions is there any chance this can be added? It would also be nice to be able to order the environment variables in the environment variable sets editor, not just add, delete or edit them. Thanks -- Regards Scott Newton Title: Re: Merging environment sets Post by: Romain W. on September 23, 2008, 11:18:08 am Hi Scott,
Sure you can merge, but there's a specific syntax on setting environment variables in Genero Studio Configuration, especially when using existing (already set) environment variables: - Separators between paths must be semicolons (;) - Existing environment variables must be defined in the following way: $(ENV_VAR) Thus, in your case, you have to change your settings in the configuration: For 'Informix 11.5': DBCENTURY=C DBDATE=DMY4/ INFORMIXDIR=/opt/IBM/informix INFORMIXSERVER=ol_alpha LD_LIBRARY_PATH=$(INFORMIXDIR)/lib;$(INFORMIXDIR)/lib/esql;$(LD_LIBRARY_PATH) PATH=$(INFORMIXDIR)/bin;$(PATH) For 'genero-2.11.05': FGLRUN=fglrun FGLDIR=/home/work/genero/genero-2.11.05 FGLPROFILE=$(FGLDIR)/etc/fglprofile LD_LIBRARY_PATH=$(FGLDIR)/lib;$(LD_LIBRARY_PATH) PATH=$(FGLDIR)/bin;$(PATH) The purpose of this specific syntax is to have a global way for setting environment variables in Genero Studio for all plateforms (Windows and Linux). This becomes really useful if you set your environment variables on a project level, making the project more portable. Thanks Romain |