feat(java): Add support for .far (Feature Archive) files (#4193)

* feat(java): add support for .far archivesEnables the Java cataloger to recognize and catalog dependencies within .far files, which are used in Apache Sling applications.

Signed-off-by: Kyounghoon Jang <matkimchi_@naver.com>

* feat(java): Add tests for .far (Feature Archive) file support

Signed-off-by: Kyounghoon Jang <matkimchi_@naver.com>

---------

Signed-off-by: Kyounghoon Jang <matkimchi_@naver.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
kyounghoonJang 2025-10-30 00:41:27 +09:00 committed by GitHub
parent f5c765192c
commit c5c1454848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ var archiveFormatGlobs = []string{
"**/*.jpi", "**/*.jpi",
"**/*.hpi", "**/*.hpi",
"**/*.kar", "**/*.kar",
"**/*.far",
"**/*.lpkg", // Zip-compressed package used to deploy applications "**/*.lpkg", // Zip-compressed package used to deploy applications
// (aka plugins) to Liferay Portal server. Those files contains .JAR(s) and a .PROPERTIES file, the latter // (aka plugins) to Liferay Portal server. Those files contains .JAR(s) and a .PROPERTIES file, the latter
// has information about the application and installation requirements. // has information about the application and installation requirements.

View File

@ -29,6 +29,7 @@ func Test_ArchiveCataloger_Globs(t *testing.T) {
"java-archives/example.kar", "java-archives/example.kar",
"java-archives/example.jpi", "java-archives/example.jpi",
"java-archives/example.hpi", "java-archives/example.hpi",
"java-archives/example.far",
"java-archives/example.lpkg", "java-archives/example.lpkg",
"java-archives/example.rar", "java-archives/example.rar",
"archives/example.zip", "archives/example.zip",

View File

@ -0,0 +1 @@
example archive