-
Notifications
You must be signed in to change notification settings - Fork 14
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
SLING-11497 - convert all cnd files to repoinit statements #143
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,12 +109,6 @@ void extractAndAddToAssembler(@NotNull BundleSlingInitialContentExtractContext c | |
throw new IOException("Can not convert " + file + " to enhanced DocView format", e); | ||
} | ||
|
||
// remap CND files to make sure they are picked up by the NodeTypesEntryHandler | ||
if (context.getNamespaceRegistry().getRegisteredCndSystemIds().contains(file.getName())) { | ||
contentPackageEntryPath = "/META-INF/vault/" + Text.getName(file.getName()) + ".cnd"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was the approach to convert to cnd files in a package discarded? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't seem to have an effect afaik but I guess im wrong, il put it back in then There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either put into repo init statements or into content packages, not both! |
||
} | ||
|
||
|
||
} | ||
|
||
try (Archive virtualArchive = SingleFileArchive.fromPathOrInputStream(tmpDocViewInputFile, bundleFileInputStream, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is potentially a comma separated list. Also a unit test/IT covering this would be good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again a good point.. implemented this and pushed.