Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325283 - Need to make moxy test project configurable to test with xml parsers other than the default from a JVM
Summary: Need to make moxy test project configurable to test with xml parsers other th...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 14:52 EDT by Edwin Tang CLA
Modified: 2022-06-09 10:28 EDT (History)
2 users (show)

See Also:


Attachments
patch file (4.04 KB, patch)
2010-09-14 15:31 EDT, Edwin Tang CLA
no flags Details | Diff
patch file (4.03 KB, patch)
2010-09-15 11:27 EDT, Edwin Tang CLA
no flags Details | Diff
patch file (4.17 KB, patch)
2010-09-15 15:16 EDT, Edwin Tang CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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