diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c5a5ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,103 @@ +### Eclipse template + +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# Eclipse Core +.project + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ +### Java template +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +.idea/ + +## File-based project format: +*.iws +*.iml + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +### Maven template +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# Created by .ignore support plugin (hsz.mobi) diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..41f72b2 --- /dev/null +++ b/pom.xml @@ -0,0 +1,20 @@ + + 4.0.0 + cz.adamh.utils + native-utils + 1.0-SNAPSHOT + + clean install + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.7 + 1.7 + + + + + \ No newline at end of file diff --git a/NativeUtils.java b/src/main/java/cz/adamh/utils/NativeUtils.java similarity index 96% rename from NativeUtils.java rename to src/main/java/cz/adamh/utils/NativeUtils.java index ed579a0..a280231 100644 --- a/NativeUtils.java +++ b/src/main/java/cz/adamh/utils/NativeUtils.java @@ -22,13 +22,8 @@ * SOFTWARE. */ package cz.adamh.utils; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; + +import java.io.*; /** * A simple library class which helps with loading dynamic libraries stored in the