CDV ❯ Tool for verify boot-jar for a given config
-
New Feature
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
DSO:L1,Eclipse Plugin
-
-
kkannaiy
-
Reporter: steve
-
February 27, 2007
-
0
-
Watchers: 0
-
February 12, 2013
-
May 11, 2007
Description
This would be a stand alone tool that can tell the caller whether everything that should be in the boot-jar for a given config is there. It could also be added to the startup sequence to verify boot-jar and rebuild if necessary instead of just checking for existance and building if necessary.
Comments
Fiona OShea 2007-04-06
Juris Galang 2007-04-27
Is this related to DEV-116?
Fiona OShea 2007-04-27
no, see Tim’s comments in DEV-116. thanks
Juris Galang 2007-05-01
There’s a new script in bin called: scan-boot-jar; it has the same args as the make-boot-jar script.
It will list all the classes declared in the additional-boot-jar section of a tc-config file but is not included in the specified or default boot jar file.
Steve Harris 2007-05-02
does it traverse config modules?
Juris Galang 2007-05-04
yes it does work with modules.
the list of classes that needs to be added to the bootjar is already complete (ie, it includes the list for each module specified on top of what is in the tc-config.xml file) before the check is done.
we could probably get rid of this extra script file (scan-boot-jar), and just build it in the BootJarTool, to perform the check if bootjar already exists. and we could add a –force option, which will tell it to rebuild the bootjar no matter what the result of the test.
Juris Galang 2007-05-10
Reassigning to DRB for consideration: We should get rid of the scan-boot-jar script altogether, and have the check (if the bootjar is complete for a given config) happen before the bootjar tool actually create a boot jar.
Here’s how it would work, the bootjar file is created:
- if it doesnt exist
- or if it is incomplete (classes declared in the config is not in the bootjar file)
- or if the user specifies the -w or –overwrite option
Fiona OShea 2007-05-11
This sounds like a great option. Can you also add an option to scan (or verify) the contents of the boot jar? like a list option.
Also make sure that this information is added to help output and documentation.
Juris Galang 2007-05-11
I’ve added a -w option (can also be specified as –overwrite)
A boot jar is always created if this option is specified, otherwise:
- it checks if a boot jar exists, if not then it is created
- if it exists, then it checks if it is complete (based on the tc-config.xml) specified - if it isn’t, then a new one is created.
Fiona OShea 2007-05-30
verify that this has been resolved and add test
Kalai Kannaiyan 2007-07-26
Retested with rev 4502, working as expected.
- Navigate to
/bin, execute make-boot-jar.bat -f ..\samples\pojo\chatter\tc-config.xml or execute ./make-boot-jar.sh f ..\samples\pojo\chatter\tc-config.xml
Actual: Boot jar is recreated succesfully
- with -w option
Actual: Boot jar is recreated succesfully
Did we already do this with boot jar verifier?