I have the following request, question, and contribution around the castor plugin.

1) Please update the dependency for the plugin to castor.jar
   version 9.4.3.  Version 9.4 displays the following error
   when "type" is "j2"

- invalid option for types: org.exolab.castor.builder.FieldInfoFactoryJ2
java.lang.NullPointerException


2) Castor has some additional arguments, like -testing and -verbose, that I would like to use, in addition to not using -nomarshall. Is their a way to place IF logic around an <arg> tag in the <java> tag. This would allow 1 <java> tag instead of 2**(number of optional arguments).

   <java classname="org.exolab.castor.builder.SourceGenerator"
         failonerror="true">
     <arg ....>
     <if test="${enableTesting}}">
       <arg value="-testing"/>
     </if>
     <arg ....>
   </java>


3) You may use the following example in the plugin documentation. I have it in my maven.xml:

  <!-- The following goal, myGoal:srcgen, will generate java source
       files in the src/java/org/foo/om/generated directory using the
       src/xml/castor-mapping.xml file as the castor mapping file.  This
       goal is executed with the command:
             maven myGoal:srcgen
  -->
  <goal name="myGoal:srcgen">
    <castor:srcgen
       schema="src/xml/castor-mapping.xml"
       package="org.foo.om.generated"
       types="j2"
       generationDirectory="src/java"
     />
  </goal>

  <!-- Regenerate the file on a clean -->
  <postGoal name="clean"?
    <attainGoal name="myGoal:srcgen"/>
  </postGoal>

Thank you

Paul Spencer



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



Reply via email to