
de.tsl2.nano.core.execution.SystemUtil.class Maven / Gradle / Ivy
???? 4?
? ? ?
?
?
?
? ? ? ? ? ?
? ?
?
?
? ? ?
? ? ?
?
? ?
? ? ?
? ? ? ?
? ? ? ?
?
? ?
?
=
?
=
? !"#$%
?&
'()
'*+
,
D-
D./
D0123
L ?
4
L567
L"89
T ?:
;<
;=
>?@
ABC
AD
'E
FG
'HIJK
L
? ?M
NOPQ ?R
'S
TU
V
WXY
Z[
\]^
?_
?`
=a
bc
de
| ?f
~g
hi
jkl 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; ?mn ?# 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; cmdsi+1
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;3o ? 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/io/File ?pqrsrtuv ? ? java/lang/StringBuilder 2only directory but not executable given! command: wxwyz{n|} ? ? java/lang/ProcessBuilder ? ? ?~ starting process with command: z?
dir: ???r
env: ?? ?} ? ??? java/lang/NoSuchMethodError?}??m?????? process input: ?? N
-------------------------------------------------------------------
process ' ' finished with errorlevel: w? process errors: ??
?? D
------------------------------------------------------------------- java/lang/Exception??? java_home??? java.home?? ? java/jre?? /jre?? /JAVA_HOME wasn't set correctly. setting it to: JAVA_HOME?? java/lang/String rundll32 url.dll,FileProtocolHandler ? ???? su? ? java/io/DataOutputStream?? ???p 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.myipo?{ 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 (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; 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; ! ? ? ? ? ? ? ? / *? ? ? ? ? ? ? ? ? ? ? T? Y*2? L+? ?
+? ? L? 2*?? **?? ? K? ? ? Y?
? *?
? ? +*? ? ? * + , . $ / 2 1 M 3 ? T ? ? I ? ? ? ? ? ? ? ? ? ; *+? ? ? 7 ? ? ? ? ? ? ? ? ? /? Y,? N-*? W:? ? Y?
? ,?? ? ? -? ?
? ? ? ? Y?
? -? ?
? ? ? ? ? -? ? -? W? :? ? ? ! -? ":? ?? #? $:? %? ? ? Y?
&? ? ? ? ? '6? ? Y?
(? ,? ? )? ? *? ? ? '? ? Y?
+? ? ,-? .? ? ? ? /? ? :? 1W? o t w !$ 0 ? v E F G I 1 K : L O M c I h O o Q t T w R y S ? U ? W ? X ? Y ? Z ? \ ? ^ ? _ ? ^ ? ` ? a c! g$ e&