mirror of https://github.com/sbt/sbt.git
Add `java` mock scripts to avoid running a JVM during tests
The script simply prints out each argument in an unambigous form on a single line and handles to the `--version` option. For windows, add `java.cmd` script which simply calls the former `java` script.
This commit is contained in:
parent
234273db41
commit
a108c46851
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
if '--version' in sys.argv or '-version' in sys.argv:
|
||||
print 'openjdk version "1.8.0_212"'
|
||||
else:
|
||||
for arg in sys.argv[1:]:
|
||||
print(repr(arg)[1:-1])
|
||||
|
|
@ -0,0 +1 @@
|
|||
@python "%~dp0%~n0" %*
|
||||
Loading…
Reference in New Issue