
de.tsl2.nano.core.execution.SystemUtil.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.terminal Show documentation
Show all versions of tsl2.nano.terminal Show documentation
TSL2 Framework Terminal (Console Application Framework named SIShell, providing Actions, Options, Commands, Inputs, lots of Selectors, PlatformManagement)
???? 4
? ?
? ? ? ? ? ? ? ?
?
?
? ?
?
?
?
?
!
"#
*
$
%
&'()
*+
&,-
./0
12
?3
&4
56789
:;<
=>
?@A7BCD
?EF
GHI
GJK
&L
NM
NNO
NPQRST
W ?
:U
WVWX
WBYZ
_ ?[
\]
^_`
abcd
ae
Gf
gh
Gijkl
:m
?n
opqr ?s
Gt
uv
w
xyz
{|
}~
?
?
?
??
:??
? ??
??
:??
??? LOG Lorg/apache/commons/logging/Log; ()V Code LineNumberTable LocalVariableTable this (Lde/tsl2/nano/core/execution/SystemUtil; executeShell 6(Ljava/io/File;[Ljava/lang/String;)Ljava/lang/Process; directory Ljava/io/File; command [Ljava/lang/String; shell
StackMapTable execute (([Ljava/lang/String;)Ljava/lang/Process; dir 7(Ljava/io/File;Z[Ljava/lang/String;)Ljava/lang/Process; waitFor Z 8(Ljava/io/File;ZZ[Ljava/lang/String;)Ljava/lang/Process; err Ljava/lang/NoSuchMethodError; result I e Ljava/lang/Exception; inheritIO processBuilder Ljava/lang/ProcessBuilder; process Ljava/lang/Process;?? ?#0 executeAndGetOutput '([Ljava/lang/String;)Ljava/lang/String; getExecutionOutput '(Ljava/lang/Process;)Ljava/lang/String; prc provideJdkAsJavaHome (Ljava/util/Map;)V javaHome Ljava/lang/String; env Ljava/util/Map; LocalVariableTypeTable 5Ljava/util/Map; Signature 8(Ljava/util/Map;)V executeRegisteredWindowsPrg '(Ljava/lang/String;)Ljava/lang/Process; fileName executeRegisteredLinuxBrowser runAsRoot ([Ljava/lang/String;)V c p os Ljava/io/DataOutputStream; Ljava/io/IOException; cmds?KQ
createInfo &(Ljava/lang/String;)Ljava/lang/String; security i buildInfo info Ljava/util/Properties; myAddress Ljava/net/InetAddress; free total roots [Ljava/io/File; f Ljava/lang/StringBuilder;T? ? createBatchStream *([Ljava/lang/String;)Ljava/io/InputStream; concat
setPipedInput ()Ljava/io/PipedOutputStream; myOut Ljava/io/PipedOutputStream; testIn Ljava/io/InputStream;
Exceptions
SourceFile SystemUtil.java ? ???? java/lang/String cmd /C sh -c? ?? ? ? java/io/File ???????? ? ? java/lang/StringBuilder 2only directory but not executable given! command: ????????? ? ? ? ? java/lang/ProcessBuilder ? ? ?? starting process with command: ???
dir: ????
env: ?? ?? ? ? ??????? java/lang/NoSuchMethodError????? ?? N
-------------------------------------------------------------------
process ' ' finished with errorlevel: ?? process errors: ??
?? D
------------------------------------------------------------------- java/lang/Exception??? ? ????? java_home??? java.home?? ? java/jre?? /jre?? /JAVA_HOME wasn't set correctly. setting it to: JAVA_HOME?? rundll32 url.dll,FileProtocolHandler ? ?
x-www-browser??? su? ? java/io/DataOutputStream?? ???? exit
? ? java/io/IOException creating system-info...? build : ${build.info}
args : ${sun.java.command}
dir : ${user.dir}
time : ${nano.tstamp}
user : ${user.name}, home: ${user.home}
lang : ${user.country}_${user.language}, sun.jnu.encoding: ${sun.jnu.encoding}
encode: ${file.encoding}
loader: ${main.context.classloader}
secure: ${security}
java : ${java.vm.name}, ${java.runtime.version}, ${java.vm.vendor}
javhom: ${java.home}
complr: ${java.compiler}
memory: ${memory}
discs : ${disc}
io.tmp: ${java.io.tmpdir}
os : ${os.name}, ${os.version} ${sun.os.patch.level} ${os.arch}
system: ${sun.cpu.isalist} ${sun.arch.data.model} x${processors}
net-ip: ${inetadress.myip} (host-name: ${inetadress.hostname})
java/util/Properties??? ?
java.compiler unspecified nano.tstamp java/util/Date main.context.classloader?????? inetadress.myip??? evaluating hostname... inetadress.hostname????????? memory free
of total ?? (policy: ??? )
processors????????? ( ?? /?? disc
build.info?? ????????? java/io/PipedOutputStream java/io/PipedInputStream ???? &de/tsl2/nano/core/execution/SystemUtil?? java/lang/Object java/lang/Process org/apache/commons/logging/Log java/net/InetAddress de/tsl2/nano/core/AppLoader isWindows ()Z %de/tsl2/nano/core/util/CollectionUtil )([[Ljava/lang/Object;)[Ljava/lang/Object; (Ljava/lang/String;)V exists isFile copyOfRange *([Ljava/lang/Object;II)[Ljava/lang/Object; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; error (Ljava/lang/Object;)V *(Ljava/io/File;)Ljava/lang/ProcessBuilder; !de/tsl2/nano/core/util/StringUtil '(Ljava/lang/Object;I)Ljava/lang/String; ()Ljava/io/File; isDebugEnabled environment ()Ljava/util/Map; ()Ljava/lang/ProcessBuilder; !java/lang/ProcessBuilder$Redirect Redirect InnerClasses INHERIT #Ljava/lang/ProcessBuilder$Redirect;
redirectInput ?(Ljava/lang/ProcessBuilder$Redirect;)Ljava/lang/ProcessBuilder; warn start ()Ljava/lang/Process; ()I (I)Ljava/lang/StringBuilder; getErrorStream ()Ljava/io/InputStream; fromInputStream ;(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String; "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; getInputStream )(Ljava/io/InputStream;)Ljava/lang/String;
java/util/Map containsKey (Ljava/lang/Object;)Z java/lang/System getProperty contains (Ljava/lang/CharSequence;)Z substring J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java/lang/Runtime
getRuntime ()Ljava/lang/Runtime; exec getOutputStream ()Ljava/io/OutputStream; (Ljava/io/OutputStream;)V
writeBytes flush
getProperties ()Ljava/util/Properties; putAll de/tsl2/nano/core/util/Util getContextClassLoader ()Ljava/lang/ClassLoader; de/tsl2/nano/core/util/NetUtil getMyAddress ()Ljava/net/InetAddress; getHostAddress getHostName
freeMemory ()J de/tsl2/nano/core/util/BitUtil amount (J)Ljava/lang/String; totalMemory getSecurityManager ()Ljava/lang/SecurityManager; java/security/Policy getPolicy ()Ljava/security/Policy; availableProcessors java/lang/Integer valueOf (I)Ljava/lang/Integer; listRoots ()[Ljava/io/File; getName getFreeSpace
getTotalSpace insertProperties 5(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String; )([C[Ljava/lang/Object;)Ljava/lang/String; getBytes ()[B de/tsl2/nano/core/util/ByteUtil ([B)Ljava/io/InputStream; console ()Ljava/io/Console; (Ljava/io/PipedOutputStream;)V setIn (Ljava/io/InputStream;)V de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! ? ? ? ? ? ? ? / *? ? ? " ? ? ? ? ? ? ? ? =? ? ? YSYS? ? YSYSM*? Y,SY+S? ? ?
? ?
' &