<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to have Nuxeo use a file importer plugin? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322862#M9863</link>
    <description>&lt;P&gt;Thank you for the warning.&lt;/P&gt;
&lt;P&gt;I made the plugin work by changing the name of the xml file to file-importer-contrib.xml, and by adding the reference in the MANIFEST.MF file.&lt;/P&gt;
&lt;P&gt;What mimetype should we add in the &lt;FILTER&gt; section to actually handle files for which there is NO specific mimetype?&lt;/FILTER&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2013 09:20:18 GMT</pubDate>
    <dc:creator>patco_</dc:creator>
    <dc:date>2013-06-14T09:20:18Z</dc:date>
    <item>
      <title>how to have Nuxeo use a file importer plugin?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322860#M9861</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the distribution "nuxeo-cap-5.6-tomcat" installed. I'm on Nuxeo eclipse EDI. I set up an extra workspace for Nuxeo, to avoid any problem when saving preferences.&lt;/P&gt;
&lt;P&gt;I created a new project using the wizard Nuxeo plugin project.
In this project, I added from the filesystem the directory OSGI-INF beside META-INF, with the content:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="fr.evolutis.uncompress.listener.contrib.CompressedFileImporterPlugin"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;EXTENSION target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins"&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;plugin name="CompressedArchivePlugin"  class="fr.evolutis.nuxeo.CompressedFileImporter"  order="1"&amp;gt;
&amp;lt;filter&amp;gt;application/zip&amp;lt;/filter&amp;gt;
&amp;lt;/plugin&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;/EXTENSION&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="fr.evolutis.uncompress.listener.contrib.CompressedFileImporterPlugin"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;EXTENSION target="org.nuxeo.ecm.platform.filemanager.service.FileManagerService" point="plugins"&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;plugin name="CompressedArchivePlugin"  class="fr.evolutis.nuxeo.CompressedFileImporter"  order="1"&amp;gt;
&amp;lt;filter&amp;gt;application/zip&amp;lt;/filter&amp;gt;
&amp;lt;/plugin&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;/EXTENSION&gt;

&lt;P&gt;I followed the &lt;A href="http://www.nuxeo.com/blog/development/2012/05/monday-dev-heaven-fileimporter-plugin/"&gt;example given by Laurent Doguin&lt;/A&gt;, with the class name above, but keeping only the "create tree container" part, and return line.
I added a line with log.error("hello...") at the entrance of the create method.&lt;/P&gt;
&lt;P&gt;I reloaded the plugin. The EDI shows "Deploy done for bundle with name 'CompressedFileImportPlugin'", without any error.&lt;/P&gt;
&lt;P&gt;But when I try to import a zip file, I get no error message, and the behaviour is not changed.&lt;/P&gt;
&lt;P&gt;I tried to put the order as small as possible, changing it from 10 to 1, but without any success.&lt;/P&gt;
&lt;P&gt;What could I have missed?&lt;/P&gt;
&lt;P&gt;Tx&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 11:38:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322860#M9861</guid>
      <dc:creator>patco_</dc:creator>
      <dc:date>2013-06-11T11:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to have Nuxeo use a file importer plugin?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322861#M9862</link>
      <description>&lt;P&gt;If you're testing using drag n drop in the browser, be careful of the mime type it sends to Nuxeo. Some browsers sometimes send something different than application/zip for zip file.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:08:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322861#M9862</guid>
      <dc:creator>Laurent_Doguin</dc:creator>
      <dc:date>2013-06-11T17:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to have Nuxeo use a file importer plugin?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322862#M9863</link>
      <description>&lt;P&gt;Thank you for the warning.&lt;/P&gt;
&lt;P&gt;I made the plugin work by changing the name of the xml file to file-importer-contrib.xml, and by adding the reference in the MANIFEST.MF file.&lt;/P&gt;
&lt;P&gt;What mimetype should we add in the &lt;FILTER&gt; section to actually handle files for which there is NO specific mimetype?&lt;/FILTER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:20:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-nuxeo-use-a-file-importer-plugin/m-p/322862#M9863</guid>
      <dc:creator>patco_</dc:creator>
      <dc:date>2013-06-14T09:20:18Z</dc:date>
    </item>
  </channel>
</rss>

