Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325283

Summary: Need to make moxy test project configurable to test with xml parsers other than the default from a JVM
Product: z_Archived Reporter: Edwin Tang <edwin.tang>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan, prabaharan.vijayaratnam
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch file
none
patch file
none
patch file none

Description Edwin Tang CLA 2010-09-14 14:52:19 EDT
In order to run moxy tests with XML parsers other than the default from a JVM, we need put the parser jar in the front of the class paths, i.e., the class paths need to be dynamic. Currently the moxy test project doesn't support this.
Comment 1 Edwin Tang CLA 2010-09-14 15:31:22 EDT
Created attachment 178867 [details]
patch file
Comment 2 Edwin Tang CLA 2010-09-15 11:27:47 EDT
Created attachment 178952 [details]
patch file

The patch introduce 2 properties in moxy/eclipselink.moxy.test/build.properties, and a dummy xml parser jar, which has no content, in moxy/plugins directory.
xml.parser.jar.dir=../plugins
xml.parser.jar=dummy-xml-parser.jar

The xml.parser.path is included in all moxy test class paths.
    <path id="xml.parser.path">
        <fileset 
            dir="${xml.parser.jar.dir}"
            includes="${xml.parser.jar}"/>
    </path>

To run moxy tests with xml parsers other than the default from a JVM, we can configure xml.parser.jar.dir, xml.parser.jar and xml.platform in moxy/eclipselink.moxy.test/build.properties, or overwrite them via ANT parameters.
Comment 3 Edwin Tang CLA 2010-09-15 15:16:10 EDT
Created attachment 178975 [details]
patch file

- Added comments
- Actually, dummy_xml_parser.jar doesn't need to exist
Comment 4 Edwin Tang CLA 2010-09-28 11:34:46 EDT
The patch has been checked into trunk and 2.1 branch. 

Code reviewed by: Blaise Doughan
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:28:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink