Skip to content

Commit

Permalink
Moved version to 1.6.1 and do not try to unzip an archive if it is a …
Browse files Browse the repository at this point in the history
…directory
  • Loading branch information
jnioche committed Jul 26, 2012
1 parent 003ba8c commit 5322cd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.6-SNAPSHOT
version=1.6.1-SNAPSHOT
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.digitalpebble.textclassification</groupId>
<artifactId>textclassification</artifactId>
<packaging>jar</packaging>
<version>1.6</version>
<version>1.6.1</version>
<name>TextClassificationAPI</name>
<description>Java API for TextClassification</description>
<url>https://github.com/jnioche/textclassification</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static TextClassifier getClassifier(String pathResourceDirectory)
public static TextClassifier getClassifier(File resourceDirectoryFile)
throws Exception {
// check whether we need to unzip the resources first
if (resourceDirectoryFile.toString().endsWith(".zip")){
if (resourceDirectoryFile.toString().endsWith(".zip") && resourceDirectoryFile.isFile()){
resourceDirectoryFile = UnZip.unzip(resourceDirectoryFile);
}
// check the existence of the path
Expand Down

0 comments on commit 5322cd6

Please sign in to comment.