Author: grothoff Date: 2006-07-04 11:42:24 -0700 (Tue, 04 Jul 2006) New Revision: 3094
Modified: Extractor-java/org/gnunet/libextractor/Extractor.java Log: libextractor JNI From: Andrew Marrington <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Today 02:51:57 am Spam Status: Spamassassin 0% probability of being spam. Full report: No, score=-2.0 required=5.0 tests=BAYES_00, MSGID_FROM_MTA_HEADER autolearn=ham version=3.1.3 Bogofilter 0% probability of being spam. Full report: Ham, tests=bogofilter, spamicity=0.000000, version=1.0.2 Christian, I am working with libextractor in a piece of Java software I've written as part of my research, and I came across a little bug in Extractor.java. It's just a tiny little thing, but it was the difference between being able to get your Xtract demo working and being able to get my own code working, which some other Java programmers might come across, so I thought I'd email you the fix (apologies if I could've just checked in a new version myself): Starting at line 188 of Extractor.java: public Vector extract(File f) { return extract(f.getName()); } should be: public Vector extract(File f) { return extract(f.getAbsolutePath()); } getName just returns the last element of the complete filename and thus will only work for software running from the same directory. libextractor is a great piece of software and will be extremely useful to my own work, thanks very much for the work you've put into this great tool! Regards, ----------------------------- Modified: Extractor-java/org/gnunet/libextractor/Extractor.java =================================================================== --- Extractor-java/org/gnunet/libextractor/Extractor.java 2006-07-03 21:03:38 UTC (rev 3093) +++ Extractor-java/org/gnunet/libextractor/Extractor.java 2006-07-04 18:42:24 UTC (rev 3094) @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with libextractor; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ package org.gnunet.libextractor; @@ -186,7 +186,7 @@ * @return a Vector of Extractor.Keywords */ public Vector extract(File f) { - return extract(f.getName()); + return extract(f.getAbsolutePath()); } /** @@ -286,4 +286,4 @@ } // end of Extractor.Keyword -} // end of Extractor \ No newline at end of file +} // end of Extractor _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn