[
https://issues.apache.org/jira/browse/FELIX-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filippo Diotalevi updated FELIX-1179:
-------------------------------------
Attachment: FELIX-1179.txt
The attached patch performs a simple check using the JarFile class constructor
new JarFile(filePath)
In my samples it works well. Do you think it is enough, or there are better
ways to do that?
> FileInstall should recognize Jar files by content instead of extension
> ----------------------------------------------------------------------
>
> Key: FELIX-1179
> URL: https://issues.apache.org/jira/browse/FELIX-1179
> Project: Felix
> Issue Type: Improvement
> Components: File Install
> Affects Versions: fileinstall-1.0.0
> Environment: generic
> Reporter: Sahoo
> Fix For: fileinstall-1.2.0
>
> Attachments: FELIX-1179.txt
>
>
> Currently FileInstall recognizes files of two types: .cfg files and .jar
> files. I know there is already a request to have a plugin mechanism in
> FileInstall to support different kinds of file types, but that's more of a
> long term change. In short term, we can modify fileinstall to recognize Jar
> files by their content instead of going by just file extensions. It will
> allow us to use files like .war files in watched dir.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.