
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?
} ? ?
?
?
?
? ? ? { ? ?
? ?
?
?
? ? ?
{ ? ?
?
? ?
? ? ?
? ? ? ?
? ? ? ?
{ ?
? ?
? ? ?
?
? ?
? ?
= ? ?
? ? ? ?
?
?
=
?
{
?
D
D!"
D#$%&
L ?
'
L()*
L+,
T ?-
./
.0
123
456
47
8
9:
;<=>
?
} ?@
ABCD ?E
F
GH
I
JKL
MN
OPQ
?R
?S
=T
UVW
XYZ LOG Lorg/apache/commons/logging/Log; ()V Code LineNumberTable LocalVariableTable this (Lde/tsl2/nano/core/execution/SystemUtil; execute (([Ljava/lang/String;)Ljava/lang/Process; command [Ljava/lang/String; dir Ljava/io/File;
StackMapTable ? 6(Ljava/io/File;[Ljava/lang/String;)Ljava/lang/Process; directory 7(Ljava/io/File;Z[Ljava/lang/String;)Ljava/lang/Process; err Ljava/lang/NoSuchMethodError; input Ljava/lang/String; result I e Ljava/lang/Exception; waitFor Z processBuilder Ljava/lang/ProcessBuilder; process Ljava/lang/Process; ?[\ ? ? provideJdkAsJavaHome (Ljava/util/Map;)V javaHome env Ljava/util/Map; LocalVariableTypeTable 5Ljava/util/Map; Signature 8(Ljava/util/Map;)V executeRegisteredWindowsPrg '(Ljava/lang/String;)Ljava/lang/Process; fileName runAsRoot ([Ljava/lang/String;)V c p os Ljava/io/DataOutputStream; Ljava/io/IOException; cmdsW$
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;&] ? createBatchStream *([Ljava/lang/String;)Ljava/io/InputStream; concat
SourceFile SystemUtil.java ? ? java/io/File ?^_`a`bcd ~ java/lang/StringBuilder 2only directory but not executable given! command: efeghi\jk ? ? java/lang/ProcessBuilder ? ? ?l starting process with command: mhn
dir: ?op`
env: qr ?k ? ?st java/lang/NoSuchMethodErrorukvw[xyz{|} process input: ?} N
-------------------------------------------------------------------
process ' ' finished with errorlevel: e~ process errors: y
z? D
------------------------------------------------------------------- java/lang/Exception??? java_home??? java.home?? ? java/jre?? /jre?? %JAVA_HOME wasn't set. setting it to: JAVA_HOME?? java/lang/String rundll32 url.dll,FileProtocolHandler ? ???? su? ? java/io/DataOutputStream?? ???^ exit
? ? java/io/IOException? 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}
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]?i inetadress.hostname?i??????? memory free
of total ?? (policy: ??? )
processors?}??????i ( ?? /?? disc
build.info?? ?????x? &de/tsl2/nano/core/execution/SystemUtil??? java/lang/Object java/lang/Process org/apache/commons/logging/Log java/net/InetAddress (Ljava/lang/String;)V exists ()Z isFile %de/tsl2/nano/core/util/CollectionUtil 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; inheritIO ()Ljava/lang/ProcessBuilder; warn start ()Ljava/lang/Process; getInputStream ()Ljava/io/InputStream; fromInputStream )(Ljava/io/InputStream;)Ljava/lang/String; length ()I (I)Ljava/lang/StringBuilder; getErrorStream ;(Ljava/io/InputStream;Ljava/lang/String;)Ljava/lang/String; "de/tsl2/nano/core/ManagedException forward ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;
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 java/lang/Thread
currentThread ()Ljava/lang/Thread; 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; de/tsl2/nano/core/log/LogFactory getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; ! { } ~
? ? ? / *? ? ? ? ? ? ? ? ? ? ? T? Y*2? L+? ?
+? ? L? 2*?? **?? ? K? ? ? Y?
? *?
? ? +*? ? ? ( ) * , $ - 2 / M 1 ? T ? ? I ? ? ? ? ? ? ? ? ? ; *+? ? ? 5 ? ? ? ? ? ? ? ? ? /? Y,? N-*? W:? ? Y?
? ,?? ? ? -? ?
? ? ? ? Y?
? -? ?
? ? ? ? ? -? ? -? W? :? ? ? ! -? ":? ?? #? $:? %? ? ? Y?
&? ? ? ? ? '6? ? Y?
(? ,? ? )? ? *? ? ? '? ? Y?
+? ? ,-? .? ? ? ? /? ? :? 1W? o t w !$ 0 ? v C D E G 1 I : J O K c G h M o O t R w P y Q ? S ? U ? V ? W ? X ? Z ? \ ? ] ? \ ? ^ ? _ a! e$ c&