[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libextractor-java] 07/20: libextractor JNI From: Andrew Ma
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libextractor-java] 07/20: libextractor JNI From: Andrew Marrington <address@hidden> To: address@hidden Date: Today 02:51:57 am |
Date: |
Sat, 13 Apr 2019 13:46:02 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libextractor-java.
commit d565b35f875f3d2db02da2615cbc4032119f2081
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Jul 4 18:42:24 2006 +0000
libextractor JNI
From:
Andrew Marrington <address@hidden>
To:
address@hidden
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,
-----------------------------
---
org/gnunet/libextractor/Extractor.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/org/gnunet/libextractor/Extractor.java
b/org/gnunet/libextractor/Extractor.java
index 56f21e0..49c6301 100644
--- a/org/gnunet/libextractor/Extractor.java
+++ b/org/gnunet/libextractor/Extractor.java
@@ -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 @@ public final class Extractor {
* @return a Vector of Extractor.Keywords
*/
public Vector extract(File f) {
- return extract(f.getName());
+ return extract(f.getAbsolutePath());
}
/**
@@ -286,4 +286,4 @@ public final class Extractor {
} // end of Extractor.Keyword
-} // end of Extractor
\ No newline at end of file
+} // end of Extractor
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libextractor-java] branch master created (now cec5e1f), gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 01/20: starting seperate projects for language bindings, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 04/20: release 0.5.1, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 07/20: libextractor JNI From: Andrew Marrington <address@hidden> To: address@hidden Date: Today 02:51:57 am,
gnunet <=
- [GNUnet-SVN] [libextractor-java] 06/20: fix, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 03/20: java, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 08/20: Dear Christian,, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 12/20: ignores, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 15/20: -verion bump, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 17/20: -bringing copyright tags up to FSF standard, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 20/20: change cvsignore to gitignore, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 18/20: -bringing copyright tags up to FSF standard, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 11/20: updating code to work with libextractor 0.6, gnunet, 2019/04/13
- [GNUnet-SVN] [libextractor-java] 16/20: -chlg, gnunet, 2019/04/13