Skip to content
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

changes to magic.xml shouldn't have to be bundled in the jar #7

Open
arimus opened this issue Sep 10, 2012 · 0 comments
Open

changes to magic.xml shouldn't have to be bundled in the jar #7

arimus opened this issue Sep 10, 2012 · 0 comments

Comments

@arimus
Copy link
Owner

arimus commented Sep 10, 2012

Obviously. A deficiency that has long existed and just hasn't been remedied.

From sf.net...

I'd like to be able to configure the magic XML file so that I could use an external file and not the resource file that is directly bundled with the jmimemagic.jar. So it is possible to modify the XML at runtime and reinitialize JMimeMagic with the new file.


Example:

File f = new File("/path/to/mymagic.xml");

Magic.initialize(file);

In order to reinitialize JMimeMagic, an mechanism as follows comes to my mind:

Magic.reset();

Magic.initialize(file);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant