-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support arbitrary resource paths in CARs #1480
Comments
@quintesse can you take a look at this one? |
quintesse
added a commit
to ceylon/ceylon-common
that referenced
this issue
May 6, 2014
quintesse
added a commit
to ceylon/ceylon-common
that referenced
this issue
May 6, 2014
…the `--resource-root` argument (ceylon/ceylon-compiler#1480)
quintesse
added a commit
that referenced
this issue
May 6, 2014
quintesse
added a commit
that referenced
this issue
May 6, 2014
…--resource-root` option for the Ceylon compiler (#1480)
quintesse
added a commit
that referenced
this issue
May 6, 2014
…ing of the default `ROOT` special folder for resources (#1480)
quintesse
added a commit
that referenced
this issue
May 6, 2014
…mes trusting validation being done earlier in the chain (#1480)
quintesse
added a commit
that referenced
this issue
May 6, 2014
…ecial folder `ROOT` now get relocated to the root of the CAR file (#1480)
Done. By default uses the folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
ceylon compile <module name>
fails to put resources into the generated archive, unless the resource paths start with the module path prefix.Example for module
com.acme.foo
:The resulting CAR contains
but the
META-INF
resource is missing.For Java interoperability, some resources need to be in well-defined places like META-INF/, WEB-INF/, OSGI-INF/ and the like, so the
ceylon
tool should support arbitrary resource paths.Possible solutions
When compiling a single module, any resources from the
--resource
directories can be included into the archive with the unmodified relative path.This approach does not work well when compiling multiple modules simultaneously, e.g. with resources from
./resource/META-INF
being copied to all module archives.This can be avoided with some kind of relocation default, e.g.
ending up in
A new option for
ceylon compile
could be used to override the magicROOT
directory name if someone actually needs to have aROOT
entry in their archive.The text was updated successfully, but these errors were encountered: