Skip to content

Commit

Permalink
Maven migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rfdj committed Jan 9, 2020
1 parent 5e96a95 commit 467787d
Show file tree
Hide file tree
Showing 126 changed files with 636,278 additions and 4 deletions.
54 changes: 54 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>nl.utwente</groupId>
<artifactId>SimpleNLG-NL</artifactId>
<version>1.0-SNAPSHOT</version>

<licenses>
<license>
<name>Mozilla Public License Version 1.1</name>
<url>https://www.mozilla.org/en-US/MPL/1.1/</url>
<distribution>repo</distribution>
</license>
</licenses>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>lexAccess2011dist</groupId>
<artifactId>lexAccess2011dist</artifactId>
<scope>system</scope>
<systemPath>${basedir}/lib/lexAccess2011dist.jar</systemPath>
<version>1.0</version>
</dependency>
<dependency>
<groupId>lexCheck2006api</groupId>
<artifactId>lexCheck2006api</artifactId>
<scope>system</scope>
<systemPath>${basedir}/lib/lexCheck2006api.jar</systemPath>
<version>1.0</version>
</dependency>
<dependency>
<groupId>lvg2011api</groupId>
<artifactId>lvg2011api</artifactId>
<scope>system</scope>
<systemPath>${basedir}/lib/lvg2011api.jar</systemPath>
<version>1.0</version>
</dependency>
</dependencies>
</project>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
package simplenlg.lexicon;

import java.io.File;
import java.io.FileNotFoundException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -130,17 +132,20 @@ public XMLLexicon(Language language) {
String xmlLexiconFilePath;
switch (language) {
case FRENCH :
xmlLexiconFilePath = "/simplenlg/lexicon/french/default-french-lexicon.xml";
xmlLexiconFilePath = "default-french-lexicon.xml";
break;
case DUTCH :
xmlLexiconFilePath = "/simplenlg/lexicon/dutch/dutch-lexicon-8k-default.xml";
xmlLexiconFilePath = "default-dutch-lexicon.xml";
break;
default :
xmlLexiconFilePath = "/simplenlg/lexicon/default-lexicon.xml";
xmlLexiconFilePath = "default-lexicon.xml";
}

try {
createLexicon(getClass().getResource(xmlLexiconFilePath).toURI());
URL resource = getClass().getClassLoader().getResource(xmlLexiconFilePath);

if (resource != null)
createLexicon(resource.toURI());
} catch (URISyntaxException ex) {
System.out.println(ex.toString());
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 467787d

Please sign in to comment.