Question 1: Is there a way that will allow us to import multiple zip files like 15-20 zip files to DB using the above approach without manually updating the properties file before each execution run ?
Questions 2: If there are three DB environments for which I need to perform import, Do I need to have three prpcUtils.properties files ?
***Updated by moderator: Lochan to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
I'm assuming your zip was generated by the make-product-file button on a rule-admin-product, correct ?
Is it possible to modify the rule-admin-product so that instead of generating 20 zips, you generate one zip containing all the rules ?
If not, I would suggest you peek at the prpcutils.bat file itself to see how it uses the import.archive.full.path to see if it would be simple to modify the bat file to loop over a list of zips given in that path.
I am not sure if it is available in 6.1sp2 but certainly in later versions you can use a comma seperated list of RAP files that you want to import. Since this version is still making you specify which type of archive you are importing instead of letting the tool figure out the import type that would only work if all of your archives were of the same type. You can also pass any of these as command line arguments so you wouldn't need to use the properties file at all.
If you are on 6.1 SP2 then you have to manually edit the properties file for each archive you want to import and run the import process.
But in latest versions it has been modified to accept the folder which contains JARS to be imported by specifying path to folder instead of path to specific JAR. It will import all the files present in that folder.
Questions 2: If there are three DB environments for which I need to perform import, Do I need to have three prpcUtils.properties files?
For this.... We can create a parametrized script which can read DB details of Various environments from a file. Using if else or switch case, we can read only particular DB details and we can pass those DB values to prpcUtils.properties file in runtime.
In this case we can have one prpcUtils.property file .
Note: Before invoking the prpcUtils.sh script, the property file should contain Valid DB details in order to proceed with import.
In 6.1sp2, can we specify the parameter on the command line instead of in the properties file ? if so, then by taking a directory of the jar files and then editing the output to change it into a list of import commands, then that may do the trick. /Eric