I have a webapp in a military archive that deploys to cloudfoundry. One of the libraries (" somelib.jar ") used by the application is created by another developer.
I would like it to download several different versions of somelib.jar and test the behavior of the application. I managed to load the jar into the deployment WEB-INF/lib directory. I also managed to unpack the jar on WEB-INF/classes . However, I was not able to get a new version of the can for use. I tried various hacks, such as those described in this question and this question with no luck.
Each time, classes / banks that are loaded for the first time become available after that, even if we replace the actual .class or .jar file in the above directories.
Is there any easy way to achieve what I want?
Note. Since I do not have control over Tomcat (where it runs), I cannot configure Tomcat or make any changes to the server. I just control my war file, so everything needs to be done programmatically.
EDIT: the reason I want to shorten the testing time. Currently, someone gives me a new version of somelib.jar , I repackage it in my application, upload it to CF, send him a notification, and then test the behavior of the new jar. I would prefer that he upload his jar directly to CF and perform testing when he had a new version without unnecessary intermediate delay.
Jus12 source share