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-29 15:41:27 +00:00
committed by GitHub
co-authored by Alex Goodman
parent f5c765192c
commit c5c1454848
3 changed files with 3 additions and 0 deletions
@@ -37,6 +37,7 @@ var archiveFormatGlobs = []string{
"**/*.jpi",
"**/*.hpi",
"**/*.kar",
"**/*.far",
"**/*.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
// has information about the application and installation requirements.
@@ -29,6 +29,7 @@ func Test_ArchiveCataloger_Globs(t *testing.T) {
"java-archives/example.kar",
"java-archives/example.jpi",
"java-archives/example.hpi",
"java-archives/example.far",
"java-archives/example.lpkg",
"java-archives/example.rar",
"archives/example.zip",
@@ -0,0 +1 @@
example archive