Greetings.

I am trying to use jabref to automate the exporting of a .html file from 
the list of my publications.

For this setup, I have an extra preference file, separated from my usual 
jabref one, which I load with "-p /path/to/jabref.xml". I shall call 
"prefs2" this configuration, and "prefs1" my usual jabref setup which 
gets loaded by default.

Prefs2 includes, in particular, a custom export filter, which I shall 
call myExportFormat.

However, when I run
     jabref -p prefs2.xml mydb.bib -o myreflist.html,myExportFormat
the new format myexportformat is not correctly recognized and I get an error
     java.lang.IllegalArgumentException: Unknown import format: 
mylistref at 
net.sf.jabref.imports.ImportFormatReader.importFromFile(ImportFormatReader.java:137)
 
at net.sf.jabref.JabRef.importFile(JabRef.java:882) at 
net.sf.jabref.JabRef.processArguments(JabRef.java:305) at 
net.sf.jabref.JabRef. (JabRef.java:170) at 
net.sf.jabref.JabRef.main(JabRef.java:79) at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
at java.lang.reflect.Method.invoke(Method.java:616) at 
net.sf.jabref.JabRefMain.main(Unknown Source)

Rather, the export formats defined in prefs1 are recognized.

It seems that the validity of the export format is checked *before* 
loading prefs2; this can be confirmed by running
     jabref -p prefs2.xml -h
which lists as available output formats the one in prefs1.

This looks like a bug to me --- or am I wrong?
For reference, I am running Jabref 2.7b on Ubuntu 11.10.

Thanks for your time;
--federico poloni

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Jabref-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jabref-users

Reply via email to