-----Original message----- From: Erik Sundvall <[email protected]> Sent: 2005-09-20 09:35:27 To: openehr-technical at openehr.org Subject: Compiling the java ADL_parser (patches included) (cross-post)
> Re-posting messages that I sent to the openehr-implementers list > a week ago (no response). Maybe they fit better on this list. Erik, Sorry for the delay. I am having difficult time getting emails from acode server at here in Shanghai. Thanks for the patch. I will try to commit it as soon as I can synchronize my local repository with the openehr one. Cheers, Rong > > - - - > > Hello again! > > One of the first things we tried (in the projects mentioned in a previous > mail) was to compile the java ADL_parser using version 1.2.4 of the > kernel, it seems to work (the included JUnit tests run) provided that you > change the names of some ADL files used for testing, or change the test > code to match the existing names in the subversion repository. Preliminary > patches to change the testcode are provided at the end of this mail > (including a patch to project.xml if you want to compile against kernel > 1.2.4 instead of 1.2.3). > > Was this (using kernel 1.2.4) a good thing to do or will we run into > problems when we start using the parser? > > Best Regards, > Erik Sundvall > http://www.imt.liu.se/mi/ > > > Patches below... > > Index: E:/workspace/ADL_parser/project.xml > =================================================================== > --- E:/workspace/ADL_parser/project.xml (revision 46) > +++ E:/workspace/ADL_parser/project.xml (working copy) > @@ -48,7 +48,7 @@ > <dependency> > <groupId>acode</groupId> > <artifactId>openehr-kernel</artifactId> > - <version>1.2.3</version> > + <version>1.2.4</version> > <url>http://www.acode.se</url> > </dependency> > </dependencies> > Index: > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserBasicTypesTest.java > =================================================================== > --- > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserBasicTypesTest.java > (revision > 46) > +++ > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserBasicTypesTest.java > (working > copy) > @@ -51,7 +51,7 @@ > */ > protected void setUp() throws Exception { > ADLParser parser = new ADLParser(new File(dir, > - "adl-test-entry.basic_types.draft.adl")); > + "adl-test-entry.basic_types.test.adl")); > attributeList = parser.parse().getDefinition().getAttributes(); > //System.out.println("list: " + attributeList); > } > Index: > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserOutputRoundTripTest.java > =================================================================== > --- > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserOutputRoundTripTest.java > (revision > 46) > +++ > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserOutputRoundTripTest.java > (working > copy) > @@ -40,7 +40,7 @@ > > public void testRoundTrip() throws Exception { > ADLParser parser = new ADLParser(new File(dir, > - "openEHR-EHR-COMPOSITION.test_two.v1.adl")); > + "openEHR-EHR-COMPOSITION.test_two.test.adl")); > Archetype archetypeOne = parser.parse(); > > ADLOutputter outputter = new ADLOutputter(); > Index: > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserDomainTypesTest.java > =================================================================== > --- > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserDomainTypesTest.java > (revision > 46) > +++ > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserDomainTypesTest.java > (working > copy) > @@ -45,7 +45,7 @@ > */ > protected void setUp() throws Exception { > ADLParser parser = new ADLParser(new File(dir, > - "adl-test-entry.domain_types.draft.adl")); > + "adl-test-entry.domain_types.test.adl")); > archetype = parser.parse(); > } > > Index: > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserPathTest.java > =================================================================== > --- > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserPathTest.java > (revision > 46) > +++ > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserPathTest.java > (working > copy) > @@ -39,7 +39,7 @@ > > public void setUp() throws Exception { > ADLParser parser = new ADLParser(new File(dir, > - "adl-test-car.paths.draft.adl")); > + "adl-test-car.paths.test.adl")); > definition = parser.parse().getDefinition(); > } > > Index: > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ArchetypeValidatorTest.java > =================================================================== > --- > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ArchetypeValidatorTest.java > (revision > 46) > +++ > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ArchetypeValidatorTest.java > (working > copy) > @@ -39,7 +39,7 @@ > > public void setUp() throws Exception { > ADLParser parser = new ADLParser(new File(dir, > - "adl-test-car.use_node.draft.adl")); > + "adl-test-car.use_node.test.adl")); > archetype = parser.parse(); > validator = new ArchetypeValidator(archetype); > } > Index: > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserStructureTest.java > =================================================================== > --- > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserStructureTest.java > (revision > 46) > +++ > E:/workspace/ADL_parser/src/test/se/acode/openehr/parser/ADLParserStructureTest.java > (working > copy) > @@ -35,7 +35,7 @@ > > public void setUp() throws Exception { > ADLParser parser = new ADLParser(new File(dir, > - "adl-test-entry.structure_test1.draft.adl")); > + "adl-test-entry.structure_test1.test.adl")); > definition = parser.parse().getDefinition(); > } > - > If you have any questions about using this list, > please send a message to d.lloyd at openehr.org > - If you have any questions about using this list, please send a message to d.lloyd at openehr.org

