| Summary: | (Plat) Remote log import does not work due to runtime.jar | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Dave Smith <smith> | ||||||||
| Component: | TPTP | Assignee: | Samson Wai <samwai> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | blocker | ||||||||||
| Priority: | P3 | CC: | paulslau, scott.schneider | ||||||||
| Version: | unspecified | Keywords: | Documentation | ||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 2000 | ||||||||||
| Whiteboard: | closed460 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Dave Smith
This jar is used by the test plugins. I recommend moving the runtime.jar to a local application scope instead of the RAC global scope. I think we should do something like this: In the RAC's base config file (serviceconfig.xml) we set the env pointing to their corresponding jar files: <Variable name="CLASSPATH_ORG_APACHE_JAKARTA_COMMONS_LOGGING".../> <Variable name="CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME".../> <Variable name="CLASSPATH_ORG_ECLIPSE_EMF_COMMON".../> <Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE".../> <Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE_XMI".../> <Variable name="CLASSPATH_ORG_JUNIT".../> Inside each of the application definition, we set the application dependent classpath as: <Variable name="CLASSPATH" value="%CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME%" position="append"/> and so on. This will make sure jars are not added to the global classpath unknowingly and affect applications in an unknown way. How do you guys like this idea? I am proposing yet another way of fixing the problem. Please see the attached config files. Each plugin can push its jar files onto its own environment "CLASSSPATH_<Plugin Name>". Application which depends on those set of jar files can set its application specific CLASSPATH pointing to those environment variables. This way the global CLASSPATH will be a lot cleaner. Do you agree with this approach? Created attachment 18355 [details]
serviceconfig.xml
Created attachment 18356 [details]
pluginconfig.xml (execution)
Created attachment 18357 [details]
pluginconfig.xml (collection framework)
Samson, I like this approach, making the plug-ins responsible for providing these constants. This seems like a clean approach in my opinion and will solve the defect's issues once we modify the test application classpaths to point to the runtime.jar and remove it from the global classpath. This is blocking Log Import testcases. This will require some documentation on how to write this kind of plugin configuration. Fix committed to the following config generators: - o.e.h.execution - o.e.h.logging.core - o.e.t.platform.agentcontroller - o.e.t.platform.collection.framework Fix already committed. As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open. |