How to create, build and use a custom importer for JabRef.
- Create a class similar to
SimpleCsvImporter.java
that implements the abstract classnet.sf.jabref.importer.fileformat.ImportFormat
.
Notes
- As you can reuse any class from JabRef be aware that changing the JabRef version the custom importer may break.
- Have a look at the documentation of
net.sf.jabref.importer.fileformat.ImportFormat
as it explains how to implement the methods.
- Copy
jabref.jar
into thelib
folder. - Run
gradlew build
- The importer is now available as a jar in
build/libs
.
- Start JabRef with the exact same version as your previously copied
jabref.jar
. - Setup your custom importer through
Options --> Manage custom imports
by loading it from the jar and selecting your class that implementsImportFormat
. - Import the file using
File --> Import into new database
orFile --> Import into current database
.