Commit Graph

150 Commits

Author SHA1 Message Date
Robinson
b54df61cda
Fixed issue when path is empty (no need to force run as shell then) 2022-02-02 20:53:27 +01:00
Robinson
225ec79637
Added ability to "addPath", which permits one to add directories (one or many) to the path of the executable. When done this way, the executable MUST be run in a way where the path can be set BEFORE the executable is run (otherwise it doesn't work). 2022-01-25 22:55:41 +01:00
Robinson
3959e2168a
Updated version 2022-01-25 08:58:17 +01:00
Robinson
8501dc0536
Cleaned up ping unit test 2022-01-25 08:56:22 +01:00
Robinson
1d27da4e25
windows is slow. Increase shell test timeout. 2022-01-21 20:24:12 +01:00
Robinson
9c31204a50
Better export of path when running as a shell 2022-01-21 14:48:07 +01:00
Robinson
b60d8c15e6
Added another shell test 2022-01-21 14:31:36 +01:00
Robinson
a123392425
Fixed error messages for when a single file source code file is used for java execution, and that file is ALSO on the classpath... 2022-01-20 16:14:14 +01:00
Robinson
54b0006b59
Fixed JvmHelper to have passed in parameters for mac/windows, isntead of accessing via Executor class 2022-01-20 16:08:42 +01:00
Robinson
59be72a066
Added back JPMS support 2022-01-20 16:07:54 +01:00
Robinson
ac0c939eb2
Fixed java9 unit tests for junit5 2022-01-20 16:07:43 +01:00
Robinson
76ed9a87b8
gradle update via windows 2022-01-20 13:58:24 +01:00
Robinson
d5b0badbdf
Proper class execution when the single class to execute is already on the classpath. 2022-01-20 13:57:54 +01:00
Robinson
0e19b7699f
updated copyright, removed path check for mainClass (when running with the same classpath that has the compiled class, you cannot run it as a single file java program. It will throw a cryptic error.) 2022-01-20 13:51:31 +01:00
Robinson
5bd728a643
cleaned up comments 2022-01-20 13:14:49 +01:00
Robinson
d8d21fb279
jre 8+ always use the server vm (even if not specified) 2022-01-20 13:13:26 +01:00
Robinson
a27915d3da
Better fix for java11 2022-01-20 01:16:24 +01:00
Robinson
77fa8b6186
Added java11 args 2022-01-20 01:09:02 +01:00
Robinson
9463a09dd6
fixed issue with leading path separator in some cases 2022-01-20 00:35:36 +01:00
Robinson
955e4f4294
Tweaked timeout/timeoutUnit parameters (are now passed in via start() method calls). Fixed issues with launching JVM processes on macos 2022-01-20 00:08:35 +01:00
Robinson
0472d53582
updated gradle + libraries 2022-01-20 00:07:36 +01:00
Robinson
539c1e395c
upgraded to junit5 2022-01-20 00:07:18 +01:00
Robinson
ba21462d56
test fix for macos 2022-01-20 00:04:43 +01:00
Robinson
f6515341a5
Converted some files back to java, made sure they work properly with java11 single file execution 2022-01-20 00:04:21 +01:00
Robinson
29c81785de
wrapped stream.flush() with try/catch 2022-01-19 09:39:51 +01:00
Robinson
6ac76b6af3
Fixed issues with logging object arrays 2022-01-19 09:35:06 +01:00
Robinson
d1a23f130e
Wrapped possible exception in try/catch when checking stream availability 2022-01-18 14:39:11 +01:00
Robinson
3d00e594dc
Revert accidentally commited debug info 2022-01-18 14:07:05 +01:00
Robinson
b8d5203241
Added JVM helper with java9 (way more accurate) method of getting the currently executing process. 2022-01-18 14:04:36 +01:00
Robinson
d3c097c88c
updated gradlew 2022-01-17 22:33:25 +01:00
Robinson
06d49d2b47
updated license info 2022-01-17 22:33:17 +01:00
Robinson
1b6af4cbdc
updated gradle build properties 2022-01-17 22:33:07 +01:00
Robinson
fafa9a488d
Better approach to shell detection in *nix environments. Added command parameters as a single-shell parameter (with spaces, etc). 2022-01-17 22:31:30 +01:00
Robinson
519ba4dad2
Added additional unit test to evaluate the "java -version" command. 2022-01-17 22:30:33 +01:00
Robinson
7ef8999568
updated version info 2022-01-06 23:33:50 -07:00
Robinson
b07c3bf982
updated gradle info 2022-01-06 23:33:03 -07:00
Robinson
249445e50d
Updated libraries, updated gradle dependencies so they are transitively set by downstream projects 2022-01-04 11:51:03 -07:00
Robinson
c4a125b498
Removed unnecessary comments + yield. Changed timeUnit.lowercase -> chronoUnit.name 2021-12-14 23:08:20 -07:00
Robinson
1ec4408766
Updated dependencies. 2021-10-01 10:43:57 +02:00
Robinson
77d5c72825
Updated version 2021-09-24 13:24:41 +02:00
Robinson
1638ebbae6
Updated gradle to 7.2 2021-09-24 13:17:41 +02:00
Robinson
336834c77a
Added raw/buffered unit tests for pumping data between processes 2021-09-24 13:17:13 +02:00
Robinson
adb1db70f6
Added Raw/Buffered async process output, so the data can be streamed in different ways if desired 2021-09-24 13:16:07 +02:00
Robinson
f4142d49b9
Tweaked unit test finish conditions 2021-09-24 13:14:15 +02:00
Robinson
1faac35ec3
Added ability to flush process output streams 2021-09-24 13:13:44 +02:00
Robinson
1832fe5eaf Added static run() commands that will also accept a File as the executable 2021-08-29 13:57:01 -06:00
Robinson
cffa2af85b comment polish 2021-08-29 10:30:33 -06:00
Robinson
eed0f59ff2 fixed comment grammar 2021-08-29 10:29:20 -06:00
Robinson
ff1ea8632c Fixed pid typo 2021-08-29 10:29:08 -06:00
Robinson
c38c84aaed Easier to access exitValue (java -> kotlin accessor) 2021-08-29 10:22:08 -06:00