/trunk/JavaSerial/src/com/rm5248/serial/SerialPort.java |
---|
78,14 → 78,13 |
arch.replaceAll( "\\W", "" ); |
//create the temp folder to extract the library to |
tempFolder = Files.createTempDirectory( "jserial" ); |
tempFolder = Files.createTempDirectory( "javaserial" ); |
tempFolder.toFile().deleteOnExit(); |
extractedLib = new File( tempFolder.toFile(), nativeLibraryName ); |
//now let's extract the proper library |
library = SerialPort.class.getResourceAsStream( "NativeCode/" + |
osName + "/" + arch + "/" + nativeLibraryName ); |
library = SerialPort.class.getClass().getResourceAsStream( "/" + osName + "/" + arch + "/" + nativeLibraryName ); |
Files.copy( library, extractedLib.toPath() ); |
System.load( extractedLib.getAbsolutePath() ); |
/trunk/JavaSerial/pom.xml |
---|
3,7 → 3,7 |
<groupId>com.rm5248</groupId> |
<artifactId>JavaSerial</artifactId> |
<version>0.5-SNAPSHOT</version> |
<description>A cross-platform way of accessing serial ports through Java. Supports Windows and Linux. Does not use the Java SerialAPI. Implementations have both traditional IO and NIO implementations.</description> |
<description>A cross-platform way of accessing serial ports through Java. Supports Windows and Linux. Does not use the Java SerialAPI. Implementation uses the java.io API.</description> |
<build> |
<sourceDirectory>src</sourceDirectory> |
<plugins> |
16,6 → 16,15 |
</configuration> |
</plugin> |
</plugins> |
<resources> |
<resource> |
<directory>NativeCode</directory> |
<includes> |
<include>Linux/**</include> |
<include>Windows/**</include> |
</includes> |
</resource> |
</resources> |
</build> |
<url>http://programming.rm5248.com/</url> |
<name>Java Serial</name> |