Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-60

New option for namespace excludes

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: unspecified
    • Fix Version/s: TBD
    • Component/s: Compiler
    • Labels:
      None

      Description

      SchemaCompiler should provide a way for certain namespaces to be excluded from compilation.

      As it stands today, regeneration of schemas is dependant on a combination of namespace and location.

      A typical scenario is that the same schema file is located in 2 different locations. The schema from the first location has been precompiled and included in the classpath. When compiling the schema from the second location SchemaCompile should be able to determine that these are the same file and not regenerate. Since the combination of namespace and location is being used to determine if a schema has been generated, and since the locations are different, the schema is generated twice and may cause classloader problems at runtime.

      We have 2 different suggestions on how this issue may be addressed:

      1. Provide the ability to specify 1 or more schemaExclude namespace options. This is similar to how Axis' Wsdl2Java addresses this issue.

      and/or

      2. Provide an option to always ignore the schema location (Global) when determining if the schema has already been generated.

        Attachments

          Activity

            People

            • Assignee:
              radup Radu Preotiuc
              Reporter:
              scampana Sal Campana
            • Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: