de.tsl2.nano.core.update.Updater.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
???? ='
java/lang/Object ()V h5
de/tsl2/nano/core/update/Updater appName Ljava/lang/String;
downloadURL
currentVersion
lastUpdate Ljava/util/Date;
dayInterval I
run K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Z
" # $ % & java/lang/String equals (Ljava/lang/Object;)Z
( ) * getVersionNo &(Ljava/lang/String;)Ljava/lang/String; , - . makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
0 1 2 3 4 de/tsl2/nano/core/util/FileUtil copy '(Ljava/lang/String;Ljava/lang/String;)Z
6 7 8
versionUpdate 9(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V : java/lang/Exception
9 < = > toString ()Ljava/lang/String; @ - A J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
C D E F G de/tsl2/nano/core/log/LogFactory log (Ljava/lang/Object;)V
I J K findLastVersionUpdaterClass 7(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Class;
M N O P Q de/tsl2/nano/core/cls/BeanClass createInstance 8(Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object; S 'de/tsl2/nano/core/update/IVersionRunner U de/tsl2/nano/core/ENV R W X ,(Lde/tsl2/nano/core/ENV;Ljava/lang/String;)V
Z [ \ getClass ()Ljava/lang/Class;
^ _ ` getVersionUpdaterClass 7(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;
M b c d load =(Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/lang/Class; f g h i j java/lang/System out Ljava/io/PrintStream;
9 l m >
getMessage
o p q r s java/io/PrintStream println (Ljava/lang/String;)V
u v * evalPreviousVersion x - * z -
| } ~ A !de/tsl2/nano/core/util/StringUtil substring
? ? ? ? ? java/lang/Class
getPackage ()Ljava/lang/Package;
? ? ? ? > java/lang/Package getName
? ? ? >
getSimpleName
" ? ? ? replace (CC)Ljava/lang/String; @ ? .
| ? ? L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Ljava/lang/String;
| ? ? K(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
? ? ? ? ? java/lang/Integer valueOf '(Ljava/lang/String;)Ljava/lang/Integer;
? ? ? ? intValue ()I
? ? ? ? (I)Ljava/lang/Integer; ? - ? 9(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/String;
? ? 4 checkAndUpdate
? ? ?
hasToCheck (Ljava/util/Date;I)Z ? - ? %(Ljava/util/Date;I)Ljava/lang/String;
? ? ? ? ? de/tsl2/nano/core/util/NetUtil isOnline ()Z
? ? ? * get ,
? ? * getDownloadURL ? user.dir
f ? ? * getenv
? ? ? ? download 4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; ? #offline -> no update-check possible ? java/lang/Throwable
? < x ? Qmay be you should download and install the unlimited jce-policy files in your jdk ? !http[s]?\:\/\/.*-standalone[.]jar
| ? ? ? extract @(Ljava/lang/CharSequence;Ljava/lang/String;[I)Ljava/lang/String;
? ? ? ? ? de/tsl2/nano/core/util/DateUtil addDays #(Ljava/util/Date;I)Ljava/util/Date; ? java/util/Date
?
? ? ? ? before (Ljava/util/Date;)Z Code LineNumberTable LocalVariableTable this "Lde/tsl2/nano/core/update/Updater; J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Date;I)V 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Z
configFile
newVersion environment Ljava/lang/Object; e Ljava/lang/Exception; vo vn
StackMapTable newVersionNumber updClass Ljava/lang/Class; LocalVariableTypeTable ;
versionNumber Signature b(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Class; txt cls version &Ljava/lang/Class<+Ljava/lang/Object;>; L(Ljava/lang/Class<+Ljava/lang/Object;>;Ljava/lang/String;)Ljava/lang/String; n Ljava/lang/Integer; V part v Ljava/lang/Throwable;
versionURL
SourceFile Updater.java BootstrapMethods
- $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; . NOTHING TO DO: -> () - .update.Update +Updater: next update not before: + days updating tsl2.nano: -> .UPDATE-ERROR: couldn't download new version: InnerClasses# %java/lang/invoke/MethodHandles$Lookup% java/lang/invoke/MethodHandles Lookup !
? = *? *? ? ? %
&