Adam Murdoch
40afbc5cc5
Split test app project out of root project.
2012-09-16 08:55:26 +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
65e2610eef
Use the wrapper.
2012-09-08 10:19:13 +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
2be367e342
Renamed test
2012-09-08 08:44:27 +10:00
Adam Murdoch
93a13da5f6
Fleshed out posix file test.
2012-09-08 08:44:19 +10:00
Adam Murdoch
a95daece98
Tweak to jni jar name
2012-09-08 08:44:06 +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
cb86354a4f
Updates.
2012-09-03 14:26:05 +10:00
Adam Murdoch
12ecb00d88
Tweaked task name.
2012-09-03 14:25:54 +10:00
Adam Murdoch
228b9c3dde
Create a separate jar file for each native library variant.
2012-09-03 14:24:49 +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
efa6e683ee
Tweaked build for linux machines where multi-arch support is not available.
2012-09-03 13:59:11 +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
ee7f527b41
Added
2012-08-27 19:56:57 +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
743a1f90c9
updated
2012-08-27 06:27:24 +10:00
Adam Murdoch
3b2fb7d7ca
Don't throw exception away.
2012-08-13 11:40:01 +10:00
Adam Murdoch
1878bd9ff0
Use the system character encoding to encode file names before passing them to the native code.
2012-08-12 13:13:11 +10:00
Adam Murdoch
058df967a4
Implemented FileSystems on Linux.
2012-08-12 12:59:00 +10:00
Adam Murdoch
b494c52441
Split OS X specific functions out of posix.cpp.
2012-08-12 07:50:08 +10:00
Adam Murdoch
462350d8ae
Updated readme.
2012-08-12 07:45:23 +10:00
Adam Murdoch
2e5f9cb546
Moved creation of integrations to Platform.
2012-08-12 07:45:10 +10:00
Adam Murdoch
97038bbf6e
Build native library for i386 and x86_64 on OS X
2012-08-12 07:44:51 +10:00
Adam Murdoch
3a58e27eeb
Added SystemInfo and FileSystems to query system and file system information, respectively.
2012-08-12 06:17:58 +10:00
Adam Murdoch
5f3761dd41
Some updates.
2012-08-10 08:50:51 +10:00
Adam Murdoch
8621ef80e9
- Bundle native library in jar and extract at runtime.
...
- Don't reinitialise terminal in TerminalAccess.getTerminal() if already initialised.
2012-08-10 08:50:40 +10:00
Adam Murdoch
3c9720f9ab
Fixed dependencies.
2012-08-10 07:33:24 +10:00
Adam Murdoch
243bd5514c
Added some diagnostics.
2012-08-10 07:29:01 +10:00
Adam Murdoch
6aa1c12bdc
Updated.
2012-08-10 06:02:53 +10:00
Adam Murdoch
ec2eb737a6
- Added Terminal.supportsTextAttributes(), supportsColor() and supportCursorMotion().
...
- Changed semantics for Terminal.normal(), bold(), foreground() and reset() so that they are no-ops when not supported.
- Fixed test app not to blow up on unsupported capability.
2012-08-10 06:00:05 +10:00
Adam Murdoch
0180d2f035
fixes for Solaris
2012-08-06 15:30:08 +10:00