Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

module support #53

Open
eed3si9n opened this Issue Jun 12, 2011 · 1 comment

Comments

Projects
None yet
2 participants

@ghost ghost assigned eed3si9n Jun 12, 2011

ChrisL commented Feb 22, 2013

from http://scalaxb.org/multiple-schema-files:
'To assist the user, scalaxb looks for missing references in the current directory, but only in the current directory regardless of the URI or relative path specified in schemaLocation'

My suggestion: scalaxb should find all schemas specified in include and import statements (recursive), however code shall only be generated for types within this project's schemas.

Usage (via sbt):

  • [Optional, referenced .jar may already be in place]

    run scalaxb and compile base projects: generates code for base projects' schemas
  • run scalaxb and compile further projects referencing the base projects: generates code for these further projects, however base project schema classes are suppressed when generating the code thus the scala compiler will find the case classes defined in the base projects.

This should not only allow including foreign schemas with foreign .jars but it also allows developing your own base projects with base schemas independently from referencing projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment