Dear Michael I think I understand the issue. The original intention of having a subfolder for images/data was to allow users to add their own symbols, images, etc. If we embed them in the jar this may not be so easy - am I correct?
Another option might be to reserve a folder name (say ext/plugins) that is excluded from the Sextant search. Each plugin can then have a suitably named sub-folder to contain whatever data is available to the average user (images, symbols, etc). Geoff ----- Original Message ----- From: Michaël Michaud <michael.mich...@free.fr> To: OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>, Victor Olaya <vola...@gmail.com>, ge...@cadplan.com.au Sent: Mon, 30 Apr 2012 01:18:23 +0800 (WST) Subject: Sextante / Cadplan plugins compatibility : the end ? Hi Geoff, Victor, Ede, Eric... After a full day of investigation, I now understand, more or less, the cause of our Sextante PlugIn loading time problem. The part of the code involved (but not guilty) is : es.unex.sextante.Sextante.loadLibraryAlgorithms() and more precisely class.forName() and class.newInstance() The configuration which makes this code slow is having many files in the classpath. With only Sextante extension, as soon as the FillPatterns directory (containing individual images) is added in the ext directory, loading time goes from 7 s to 20 s If I remove the images and put 177 empty files in the classpath (ext directory) the loading time climbs to 80 s (overhead in the above mentionned methods) @Geoff : Now the proposed solution (not tested) Put FillPatterns directory and other resources which are not embeded in a jar and which don't need to be in the classpath in a directory out of ext directory (I suggest lib/resources, and lib/resources/pluginname for plugins) @Victor : now, I'd like to upload Sextante OpenJUMP-bindings to our svn to ease maintenance. I just noticed a bug which make the current code unusable for vector layers : (m_Iterator.next() is called two times in in OpenJUMPFeatureIterator.next()) Regards Michaël ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel