Sfoglia il codice sorgente

Remove unused utility project.

Timur Sağlam 4 anni fa
parent
commit
c9a1024f45

+ 0 - 5
jplag.parent/pom.xml

@@ -249,11 +249,6 @@
 				<artifactId>antlr3-runtime</artifactId>
 				<artifactId>antlr3-runtime</artifactId>
 				<version>3.5</version>
 				<version>3.5</version>
 			</dependency>
 			</dependency>
-			<dependency>
-				<groupId>de.jplag</groupId>
-				<artifactId>utils</artifactId>
-				<version>0.0.3-SNAPSHOT</version>
-			</dependency>
 			<dependency>
 			<dependency>
 				<groupId>de.jplag</groupId>
 				<groupId>de.jplag</groupId>
 				<artifactId>frontend-utils</artifactId>
 				<artifactId>frontend-utils</artifactId>

+ 0 - 14
jplag.utils/pom.xml

@@ -1,14 +0,0 @@
-<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>
-	<artifactId>utils</artifactId>
-	<version>0.0.3-SNAPSHOT</version>
-
-	<parent>
-		<groupId>de.jplag</groupId>
-		<artifactId>parent</artifactId>
-		<version>0.3-SNAPSHOT</version>
-		<relativePath>../jplag.parent/pom.xml</relativePath>
-	</parent>
-
-	</project>

+ 0 - 51
jplag.utils/src/main/java/de/jplag/utils/DesktopUtils.java

@@ -1,51 +0,0 @@
-package de.jplag.utils;
-
-import java.awt.Desktop;
-import java.net.MalformedURLException;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-
-public class DesktopUtils {
-	public static boolean isBrowseSupported() {
-		Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;
-		if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {
-			return true;
-		} else {
-			return false;
-		}
-	}
-
-	public static void openWebpage(URI uri) {
-		if (isBrowseSupported()) {
-			Desktop desktop = Desktop.getDesktop();
-			try {
-				desktop.browse(uri);
-			} catch (Exception e) {
-				e.printStackTrace();
-			}
-		} else {
-			System.out.println("Desktop does not support opening of a browser :/ open " + uri + " yourself");
-		}
-	}
-
-	public static void openWebpage(URL url) {
-		if (isBrowseSupported()) {
-			try {
-				openWebpage(url.toURI());
-			} catch (URISyntaxException e) {
-				e.printStackTrace();
-			}
-		} else {
-			System.out.println("Desktop does not support opening of a browser :/ open " + url + " yourself");
-		}
-	}
-
-	public static void openWebpage(String url) throws MalformedURLException {
-		if (isBrowseSupported()) {
-			openWebpage(new URL((!url.startsWith("https://") && !url.startsWith("http://") ? "http://" : "") + url));
-		} else {
-			System.out.println("Desktop does not support opening of a browser :/ open " + url + " yourself");
-		}
-	}
-}

+ 0 - 19
jplag.utils/src/main/java/de/jplag/utils/PropertiesLoader.java

@@ -1,19 +0,0 @@
-package de.jplag.utils;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Properties;
-
-public class PropertiesLoader {
-	public static Properties loadProps(String resourceName) {
-		Properties props = new Properties();
-		try (InputStream in = PropertiesLoader.class.getClassLoader()
-				.getResourceAsStream(resourceName);) {
-			props.load(in);
-			in.close();
-		} catch (IOException e) {
-			e.printStackTrace();
-		}
-		return props;
-	}
-}

+ 0 - 5
jplag/pom.xml

@@ -158,11 +158,6 @@
       <artifactId>java-1.1exp</artifactId>
       <artifactId>java-1.1exp</artifactId>
     </dependency>
     </dependency>
 
 
-    <dependency>
-      <groupId>de.jplag</groupId>
-      <artifactId>utils</artifactId>
-    </dependency>
-
     <dependency>
     <dependency>
       <groupId>de.jplag</groupId>
       <groupId>de.jplag</groupId>
       <artifactId>text</artifactId>
       <artifactId>text</artifactId>

+ 0 - 1
pom.xml

@@ -22,7 +22,6 @@
     <module>jplag.frontend.python-3</module>
     <module>jplag.frontend.python-3</module>
     <module>jplag.frontend.scheme</module>
     <module>jplag.frontend.scheme</module>
     <module>jplag.frontend.text</module>
     <module>jplag.frontend.text</module>
-    <module>jplag.utils</module>
     <module>jplag</module>
     <module>jplag</module>
   </modules>
   </modules>
   <dependencyManagement>
   <dependencyManagement>