hi-

to test the ProjectMarshaller ive written i use the ProjectUnmarshaller. However, the Unmarshaller doesnt respect the mavan-project.xsd. Instead of modifying it all i chose to modify the Marshaller, tho some elements are still missing, ive added the aspectSourceDirectory and intgrationUnitTestSourceDirectory. No biggie but it helped me a lot.
A question araises then : why does the unmarshaller doesnt conform to the schema ? is the xsd deprecated ?




Index: DefaultProjectUnmarshaller.java
===================================================================
RCS file: /home/cvspublic/maven-new/core/src/java/org/apache/maven/project/builder/DefaultProjectUnmarshaller.java,v
retrieving revision 1.8
diff -u -r1.8 DefaultProjectUnmarshaller.java
--- DefaultProjectUnmarshaller.java 29 May 2003 20:26:22 -0000 1.8
+++ DefaultProjectUnmarshaller.java 30 May 2003 10:00:45 -0000
@@ -434,6 +434,14 @@
{
b.setUnitTestSourceDirectory( parser.nextText() );
}
+ else if ( parser.getName().equals( "integrationUnitTestSourceDirectory" ) )
+ {
+ b.setIntegrationUnitTestSourceDirectory( parser.nextText() );
+ }
+ else if ( parser.getName().equals( "aspectSourceDirectory" ) )
+ {
+ b.setAspectSourceDirectory( parser.nextText() );
+ }
else if ( parser.getName().equals( "unitTest" ) )
{
UnitTest ut = new UnitTest();



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to