Commit Graph

78 Commits

Author SHA1 Message Date
Adam Murdoch
fc23941f5c Implemented get and set environment variables for posix. 2013-02-16 11:15:05 +11:00
Adam Murdoch
01c4f26e97 Include errno name in error messages, if the errno is known. 2013-02-16 11:14:41 +11:00
Adam Murdoch
0c5d0dfe80 Don't set 'user.dir' if the working directory could not be set. 2013-02-07 18:04:44 +11:00
Adam Murdoch
6cab15ece4 Started implementing environment variable methods on windows. 2013-02-07 17:58:13 +11:00
Adam Murdoch
ff3abfd4fd Some tweaks to error messages for unsupported platforms. 2013-02-07 16:58:33 +11:00
Adam Murdoch
9e0493f94e Implemented Process working directory methods on windows, and fixed file system details. 2013-02-07 16:58:11 +11:00
Adam Murdoch
12c41606ee Some fixes for linux. 2013-01-26 18:18:56 +11:00
Adam Murdoch
64a738008e Added Process.getWorkingDirectory() and setWorkingDirectory() and posix implementation. 2013-01-26 17:51:10 +11:00
Adam Murdoch
a4b166bc02 Added license and copyright notice. 2012-12-14 04:51:07 +11:00
Adam Murdoch
c355d50bb9 Some comments. 2012-12-01 16:01:30 +11:00
Adam Murdoch
f811c16ae5 Added a Terminal implementation that uses ANSI control characters. 2012-12-01 16:01:19 +11:00
Adam Murdoch
eb17aefc73 Added useful toString() to Terminal implementations. 2012-12-01 16:00:47 +11:00
Adam Murdoch
802fb78f29 Split out terminfo jni functions into a separate native library, so that curses/ncurses is not required to load the main native library. 2012-11-12 17:20:04 +11:00
Adam Murdoch
c4a55e54e5 Extracted loading of native library out of Native into NativeLibraryLoader. 2012-11-12 17:00:29 +11:00
Adam Murdoch
2efd8ec125 Split curses based functions out to separate source file. 2012-11-12 16:36:37 +11:00
Adam Murdoch
7f5a002f96 Added a TODO. 2012-11-12 16:36:37 +11:00
Adam Murdoch
92feb28007 Merge pull request #1 from breskeby/master
Support for amd64 on osx
2012-10-29 21:59:31 -07:00
Adam Murdoch
6b09ac415a Updated native library version. 2012-10-10 17:09:12 +11:00
Adam Murdoch
7cfe8dc502 Fixed terminal reset on windows. 2012-10-10 17:02:47 +11:00
Adam Murdoch
2fb75c790c Use correct handle when detecthing console on windows. 2012-10-10 16:51:02 +11:00
Adam Murdoch
d70a620089 Javadocs. 2012-10-07 07:00:27 +10:00
Adam Murdoch
fbf246dbf9 Changed NativeLibraryLocator to make extraction code multi-process safe. 2012-10-07 06:55:03 +10:00
Rene Groeschke
bba726c4c5 Support os arch 'amd64' on osx as it is used in openjdk and oracles jdk for formally known 'x86_64' architecture 2012-10-05 11:10:34 +02:00
Adam Murdoch
d5404493cf Build x86 and x64 variants of windows dlls. 2012-09-16 09:33:47 +10:00
Adam Murdoch
ac06e9c9b5 Moved test app source to test app project. 2012-09-16 08:57:14 +10:00
Adam Murdoch
30cc864813 - Improvements to fetching file system information on Windows.
- Fixes for reset and clearing to end of line for Windows console.
2012-09-15 17:52:51 +10:00
Adam Murdoch
17ab1f04ef First cut of file system information for windows. 2012-09-15 09:58:34 +10:00
Adam Murdoch
de4e340e2c Implemented SystemInfo for windows. 2012-09-09 17:07:38 +10:00
Adam Murdoch
dd255be667 - Changed PosixFileFunctions to pass Strings to JNI methods, and use java_to_char() to encode as C char string.
- Don't need to pass system encoding back up to Java as part of system info.
2012-09-09 16:29:42 +10:00
Adam Murdoch
208d1be584 implemented basic char_to_java() 2012-09-09 14:17:58 +10:00
Adam Murdoch
7e2a573ff2 - Changed char_to_java() to use C charset instead of JVM's default encoding.
- Changed PosixFileFunctions.readLink() to return String instead of byte[].
2012-09-09 10:22:40 +10:00
Adam Murdoch
af53881b0b Added Native.getNativeVersion() 2012-09-09 10:21:49 +10:00
Adam Murdoch
b8d0830d44 A first pass to correctly convert between c char strings to Java Strings. 2012-09-09 10:01:53 +10:00
Adam Murdoch
182efebb40 Added @ThreadSafe. 2012-09-08 10:19:26 +10:00
Adam Murdoch
3f478d1665 Added @ThreadSafe to a bunch of stuff. 2012-09-08 10:11:39 +10:00
Adam Murdoch
f6ea1d8e33 - Changed Native.get() to cache integration instances.
- Extracted DefaultSystemInfo out of a couple of separate places.
2012-09-08 10:11:25 +10:00
Adam Murdoch
ab1487d215 Fixed thread safety for Terminal implementations. Changed Terminal implementation on windows to Flush System.out/System.err 2012-09-08 09:08:43 +10:00
Adam Murdoch
1c3ab6a289 Extracted superclass for Terminals implementations, and fixed thread-safety. 2012-09-08 08:44:53 +10:00
Adam Murdoch
90b81e8bf5 Publish the jar and jni jars as separate modules, and renamed the native libraries. 2012-09-08 08:30:17 +10:00
Adam Murdoch
67f057f6af Extracted the strategy for finding native library out of Native. 2012-09-03 14:05:01 +10:00
Adam Murdoch
066a2be380 Improved error handling for case where native library for current architecture is not available. 2012-09-03 13:59:46 +10:00
Adam Murdoch
4e8db25017 Added PosixFile.symlink() and readLink(). 2012-09-01 16:12:24 +10:00
Adam Murdoch
cd24d5fb51 Fixed to work with 32bit ibm jvm. 2012-09-01 10:38:27 +10:00
Adam Murdoch
b7f6183c4b Some tidy-ups to exception handling in Native.get(). 2012-09-01 10:31:15 +10:00
Adam Murdoch
b8b96291c6 Throw NativeIntegrationUnavailableException when an integration is not supported, and NativeException when something goes wrong loading the integration. 2012-09-01 10:29:43 +10:00
Adam Murdoch
ba2a54b403 Some javadocs, include javadocs in the application distribution. 2012-09-01 10:15:25 +10:00
Adam Murdoch
3e4dc956ed Some renames and javadoc. 2012-09-01 10:02:02 +10:00
Adam Murdoch
f5dc6b80e1 - Compile 64 and 32 bit variants on Linux.
- Give each variant of the native library a unique name.
2012-08-27 19:55:59 +10:00
Adam Murdoch
05a4cfe19b Java 5 compilation fixes. 2012-08-27 19:55:03 +10:00
Adam Murdoch
3b2fb7d7ca Don't throw exception away. 2012-08-13 11:40:01 +10:00