Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module support #53

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

module support #53

eed3si9n opened this issue Jun 12, 2011 · 1 comment

Comments

@eed3si9n
Copy link
Owner

reported by @jxstanford

http://groups.google.com/group/scalaxb/browse_frm/thread/46a6b194e655cdeb

@ChrisL
Copy link

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
Projects
None yet
Development

No branches or pull requests

2 participants