jcrphx
12-18-2008, 03:07 AM
OS:Linux
This is the situation. I am trying to read a "product version number" from a property file then to use this version number in the introduction panel etc . I need to do that for different projects located in different areas, same structure and different version so I am locking for the automation of this process.
I setup Source Path with a variable ie Resource /home/user/projectx. To be able to repeat the encapsulation of different projects changing just the $RESOURCE$ variable during the installer's building I am replacing the file "com.zerog.PathManager.com" (located in ./Installer/100/.....with the right path according to the project under processing. The problem is with the plugins. They are not recognizing the $RESOURCE$ variable, If I replace the $RESOURCE$ with the absolute path then works.
Steps
In "Install" task I setup the "local.property" file as "Do NOT Install". Then in pre-install task I am doing the following :
1_Set Install Anywhere variable $MY_PROD_VER$ (To stored the product version in next steps)
2.-Plugin-in Properties File Reader
OVERRIDE_EXISTING_VARIABLES TRUE
PROPERTIES_FILE_LOCATION $RESOURCE$$/$install_dev/local.properties
$MY_PROD_VER$ $version.service$
Another problem: Once that the installer is generated (considering the absolute path). The local.property file is found only if I am working in the PC where I have the project's source code but in a different PC is failing. I understood that the "Do not install" (previously setup in the Install Task) allow the use of this "local.property" file in the pre-install area even considering that the file is not installed yet in the PC .
Any good idea or advice to make that works will be high appreciated
Thanks in advance,
JC
This is the situation. I am trying to read a "product version number" from a property file then to use this version number in the introduction panel etc . I need to do that for different projects located in different areas, same structure and different version so I am locking for the automation of this process.
I setup Source Path with a variable ie Resource /home/user/projectx. To be able to repeat the encapsulation of different projects changing just the $RESOURCE$ variable during the installer's building I am replacing the file "com.zerog.PathManager.com" (located in ./Installer/100/.....with the right path according to the project under processing. The problem is with the plugins. They are not recognizing the $RESOURCE$ variable, If I replace the $RESOURCE$ with the absolute path then works.
Steps
In "Install" task I setup the "local.property" file as "Do NOT Install". Then in pre-install task I am doing the following :
1_Set Install Anywhere variable $MY_PROD_VER$ (To stored the product version in next steps)
2.-Plugin-in Properties File Reader
OVERRIDE_EXISTING_VARIABLES TRUE
PROPERTIES_FILE_LOCATION $RESOURCE$$/$install_dev/local.properties
$MY_PROD_VER$ $version.service$
Another problem: Once that the installer is generated (considering the absolute path). The local.property file is found only if I am working in the PC where I have the project's source code but in a different PC is failing. I understood that the "Do not install" (previously setup in the Install Task) allow the use of this "local.property" file in the pre-install area even considering that the file is not installed yet in the PC .
Any good idea or advice to make that works will be high appreciated
Thanks in advance,
JC