
de.tsl2.nano.core.execution.SystemUtil.class Maven / Gradle / Ivy
???? 4?
? ?
? ? ? ? ? ? ? ?
? ?
? ? ?
?
?
?
? ? ? ?
?
?
?
'
!
"#
$%
&'(
)*+,-.
/01
23
456,789
?:;
<=>
<?@
A
LB
LCD
LEFGHI
U ?
/J
UKLM
U7NO
] ?P
QR
STU
VWXY
VZ
<[
\]
<^_`a
/b
?c
defg ?h
<i
jk
l
mno
pq
rst
u
v
w
xy
/z{
? ?|
?}
/~
??? 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; 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 executeRegisteredLinuxBrowser runAsRoot ([Ljava/lang/String;)V c p os Ljava/io/DataOutputStream; Ljava/io/IOException; cmds@F
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;I? ? 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??????????? process input: ?? 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; 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 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? ? ?
? ?
&