You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an API for authoring multi-release archives #269
There is no way to do this with the class API today. addClasses derives the target path from clazz.getName() through AssetUtil.getFullPathForClassResource, so a versioned class cannot be renamed to match the FQN of the class it overrides, which is what a multi-release JAR requires. The workaround is to drop down to the asset API and build the path by hand:
Where should it live? ClassContainer also covers WebArchive, EnterpriseArchive and ResourceAdapterArchive, where getClassesPath() is not the archive root and a versions directory would not mean much. JavaArchive only?
Inner classes. addClasses pulls them in with the $ filter (SHRINKWRAP-335), so Resource25$Inner would need the same rename, unless we declare it out of scope.
The proposal leaves Multi-Release: true to the user. Should we set it when the first versioned class is added, or add a separate setMultiRelease()?
String version or int? Runtime.Version.feature() is an int.
Activity