com.adobe.octopus.extract.BundleExtractor.class Maven / Gradle / Ivy
???? 1?
f ? ? ?
? q ?
q ? ? ? ? q ? ?
D ? ?
? ? ? ? ? ?
q ?
q ?
q ? ? ?
?
? ?
q ?
q ? D ?
q ?
D ?
D ?
D ? ?
D ? ?
? ?
" ?
? ?
`
?
1 ?
? ?
q
7 ?
7
7
7 ?
B
D
`!
q"
D# ?$%&'
K ?
D(
B)
q*
+
,
q-
D./01
D23
?4
q5
6789:
6;
<=>?
@A
`BC
DE ?F ?GHI
DJ ROOT Ljava/lang/String;
ConstantValue VERSION_FILE bundle Lorg/osgi/framework/Bundle; baseDir Ljava/io/File; (Lorg/osgi/framework/Bundle;)V Code LineNumberTable LocalVariableTable e Ljava/io/IOException; this +Lcom/adobe/octopus/extract/BundleExtractor; context "Lorg/osgi/framework/BundleContext; packageAdmin ,Lorg/osgi/service/packageadmin/PackageAdmin; (Ljava/lang/Class;)V clazz Ljava/lang/Class; LocalVariableTypeTable Ljava/lang/Class<*>; Signature (Ljava/lang/Class<*>;)V extractResource "(Ljava/lang/String;)Ljava/io/File; path resolvedFile
Exceptions extractExecutable deleteDirectory (Ljava/io/File;)Z i I files [Ljava/io/File; resourcesNeedUpdate /(Lorg/osgi/service/packageadmin/PackageAdmin;)Z
fragmentId hostBundleId fragments [Lorg/osgi/framework/Bundle; prop Ljava/util/Properties; is Ljava/io/InputStream; Z versionFile updateVersionFile /(Lorg/osgi/service/packageadmin/PackageAdmin;)V fragment arr$ len$ i$ os Ljava/io/OutputStream; getBundleContext $()Lorg/osgi/framework/BundleContext; getEntry url Ljava/net/URL; entryPath target result rootUrl rootPath entries Ljava/util/Enumeration; Ljava/util/Enumeration<*>; copyOut (Ljava/net/URL;Ljava/io/File;)V in out copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)J read bytes [B total J markExecutable #(Ljava/lang/String;Ljava/io/File;)V Ljava/lang/NoSuchMethodError; markExecutable15 p Ljava/lang/Process; pe ioe Ljava/lang/Exception; safeClose (Ljava/io/Closeable;)V c Ljava/io/Closeable; startBundle ()V be $Lorg/osgi/framework/BundleException;
SourceFile BundleExtractor.java z ? "java/lang/IllegalArgumentException bundle == null zK v w ? ? .octopusLM ? x y ,the OSGi platform has no file system supportNO *org/osgi/service/packageadmin/PackageAdminPQRSTUV ? ? ? ? ? ? java/io/IOException java/lang/IllegalStateException zWXYZ z { ? ?[\ ? ?]^_O`O $.octopus/nativeCommExtractedVersionsaO java/util/Properties java/io/FileInputStream zbcdefghijklmnopqrsktuvwxy ?zR{| java/io/FileOutputStream}~ ? ? java/lang/StringBuilder bundle '???? ' has no BundleContext. -Either it is not active or a fragment bundle.????O?? java/net/URL?R java/io/File z? /?? ? ??O?? java/io/FileNotFoundException ' ' not found in Bundle ???? ? ? ???? ? ??? Failed to mark '
' of Bundle ' ' as executable. (?R ) java/lang/NoSuchMethodError ? ???? java/lang/String chmod +x????w chmod +x "%s" returned %i java/lang/Object?h??? java/lang/Exception z???w?? "org/osgi/framework/BundleException failed to start bundle ' )com/adobe/octopus/extract/BundleExtractor (Ljava/lang/String;)V org/osgi/framework/BundleContext getDataFile mkdir ()Z java/lang/Class getName ()Ljava/lang/String; getServiceReference 9(Ljava/lang/String;)Lorg/osgi/framework/ServiceReference;
getService 9(Lorg/osgi/framework/ServiceReference;)Ljava/lang/Object; (Ljava/lang/Throwable;)V org/osgi/framework/FrameworkUtil getBundle .(Ljava/lang/Class;)Lorg/osgi/framework/Bundle;
separatorChar C listFiles ()[Ljava/io/File; isDirectory delete exists (Ljava/io/File;)V load (Ljava/io/InputStream;)V org/osgi/framework/Bundle getBundleId ()J valueOf (J)Ljava/lang/String; containsKey (Ljava/lang/Object;)Z
getVersion ()Lorg/osgi/framework/Version; getProperty &(Ljava/lang/String;)Ljava/lang/String; org/osgi/framework/Version parseVersion 0(Ljava/lang/String;)Lorg/osgi/framework/Version; equals getFragments 9(Lorg/osgi/framework/Bundle;)[Lorg/osgi/framework/Bundle; size ()I java/io/InputStream close toString setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; store +(Ljava/io/OutputStream;Ljava/lang/String;)V java/io/OutputStream append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; findEntries >(Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/Enumeration; java/util/Enumeration hasMoreElements nextElement ()Ljava/lang/Object; getPath #(Ljava/io/File;Ljava/lang/String;)V endsWith (Ljava/lang/String;)Z mkdirs getResource "(Ljava/lang/String;)Ljava/net/URL;
getParentFile ()Ljava/io/File;
openStream ()Ljava/io/InputStream; ([B)I write ([BII)V
setExecutable (ZZ)Z getAbsolutePath java/lang/Runtime
getRuntime ()Ljava/lang/Runtime; exec (([Ljava/lang/String;)Ljava/lang/Process; java/lang/Process waitFor java/lang/Integer (I)Ljava/lang/Integer; format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; *(Ljava/lang/String;Ljava/lang/Throwable;)V java/io/Closeable getState start (I)V 1 q f r s t u s t v w x y z { | # ?*? +?
? Y? ?*+? *? M*,? ? *? ?
? Y
? ?*? ? W,, ?
? ? ? N*-? ? **? ? W*? ? W*-? ? :? Y? ?? W u x } J I J L O Q S ( T / V 9 X A [ W ` _ c h d p f u l x i z k ? m ~ 4 z
? ? ? ? ? v w i ? ? W . ? ? z ? | S *+? ? ? }
v w ~ ? ? ? ? ? ? ? ? ? ? ? | J *+? M,? }
? ? ~ ? ? ? s ? y ? ? ? | ` *+? M? /? *+,? ,? } ? ? ? ? ~ ? ? ? s ? y ? ? ? | ? 3+? M>,?? $,2? ? *,2? W?
,2? W????+? ? } ? ?
? ? ! ? ( ? . ? ~ * ' ? ? 3 ? ? 3 ? y . ? ? ? ? | =*? N-? :? ? ?? Y? !:? "Y? #:? $*? ? % ? &:? '? *? ? ( ? )? *? +? ? =:+? +*? ? , :? o? -d?? =6 `? -? N ?? F? B 2? % ? &:
? '? 2? (
? )? *? +? ? =? ???? ? -? =? .?
:? .?? - ? } f ? ? ? ? ? " ? - ? 4 ? B ? k ? n ? r ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ~ p ? * ? s
? W ? ? B ? ? s n ? ? ? " ? ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ? y ? ? ? | ~ ?? Y? !M,*? ? % ? &*? ? ( ? /? 0W+? J+*? ? , N-? ;-:?66? )2:,? % ? &? ( ? /? 0W????*? N-? :? 1Y? 2:,? 3? 4?
:? 4?? ? ? ? ? ? ? } B ? ? % ) 4 8 Q j p
u ? ? ? ? ? ~ p Q ? w ; 5 ? ? @ 0 ? ? C - ? ? 4 <