Bug 556257 - [doc2model] The Tikaparsing plugin could re-export packages of tika-app-1.5.jar library
Summary: [doc2model] The Tikaparsing plugin could re-export packages of tika-app-1.5.j...
Status: NEW
Alias: None
Product: Reqcycle
Classification: Polarsys
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: 352
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-04 03:42 EDT by Vincent HEMERY CLA
Modified: 2015-09-18 03:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent HEMERY CLA 2015-06-04 03:42:01 EDT
The org.polarsys.kitalpha.doc.doc2model.tikaparsing provides extensions for the org.polarsys.kitalpha.doc.doc2model.tikaparsing.tikaParser extension point, but not for every possible parser available in the tika-app-1.5.jar library.
While this is perfectly understandable, it would be nice not to limit the using developers to these parsers.
By re-exporting the packages of this labrary (particularly org.apache.tika.parser and its sub-packages), we let external developers the possibility to contribute their own parsers, using the tika parsers which have not yet been exploited by doc2model (at their own risks).

For example, I had to re-export org.apache.tika.parser and org.apache.tika.parser.odf to be able to make a new external contribution to org.polarsys.kitalpha.doc.doc2model.tikaparsing.tikaParser, with a class like this :
public class ODFTikaParser extends AbstractTikaParser {

	@Override
	public Parser getParser() {
		return new OpenDocumentParser();
	}

}
in order to parse ODF files (though this one could be used for any Libre/Open Office document.


One could also probably embed the tika-app-1.5.jar in the external contributing plugin, but I feel quite unconfortable with having this library twice in the platform and I'm not sure what will happen with the Parser interface usage from the other jar contribution... Exporting these packages looks like a much cleaner solution to me.
Comment 1 Raphael Faudou CLA 2015-09-18 03:57:21 EDT
KitAlpha plugins shall normally leave ReqCycle project and go to KitAlpha project.
We will inform on this bug when refactoring is done