com.day.cq.dam.core.process.CommandLineProcess$2.class Maven / Gradle / Ivy
???? 2? o ? o ? o ?
p ? ?
?
?
? ? ? ? ? ?
? ?
? ?
? ? ?
? ?
? ?
? ? ? ?
? ?
? ? ? ?
? ? ? ?
? ? ? ? ? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ? ?
* ?
* ?
? ? ?
*
3 ?
3
3 ?
:
= ?
? ?
A ? ?
?
? ?!"
#$ ?%
?&'()
U*
?+
,- ?. ?/ ?0 ?1 ?2 ?345!678!94: ?; ? ? ?<
=>?@
mABCE InnerClasses
val$arguments [Ljava/lang/String; val$args *Lcom/day/cq/workflow/metadata/MetaDataMap; this$0 0Lcom/day/cq/dam/core/process/CommandLineProcess; p(Lcom/day/cq/dam/core/process/CommandLineProcess;[Ljava/lang/String;Lcom/day/cq/workflow/metadata/MetaDataMap;)V Code LineNumberTable LocalVariableTable this 2Lcom/day/cq/dam/core/process/CommandLineProcess$2; run F(Lcom/day/cq/dam/api/Asset;Lcom/day/cq/dam/commons/util/AssetUpdate;)V cmd Ljava/lang/String; exec )Lorg/apache/commons/exec/DefaultExecutor; commandLine %Lorg/apache/commons/exec/CommandLine; argument e Ljava/lang/Exception; config .Lcom/day/cq/dam/api/thumbnail/ThumbnailConfig; indexOf I strG Config ALcom/day/cq/dam/core/process/CreateWebEnabledImageProcess$Config; webRendTemp 1Lcom/day/cq/dam/api/renditions/RenditionTemplate; rendition Lcom/day/cq/dam/api/Rendition; thumbnailConfigs Ljava/util/Set; templates Ljava/util/List;
createWebRend Ljava/lang/Boolean; delCommRend result Ljava/io/File; original tmpFile fos Ljava/io/OutputStream; in Ljava/io/InputStream; lastLine
parameters Ljava/util/Map; Ljava/io/IOException; asset Lcom/day/cq/dam/api/Asset; update )Lcom/day/cq/dam/commons/util/AssetUpdate; tmpDir is os LocalVariableTypeTable ?Ljava/util/Set; CLjava/util/List; 5Ljava/util/Map;
StackMapTableBHI ?JKLMNO tPQR'?
Exceptions
SourceFile CommandLineProcess.java EnclosingMethodSTU w x s t u v yV cqdamWXYZ[ZH\] java/io/File^_`ab yc java/io/FileOutputStream ydLefghijkjl java/util/HashMap filenameOmn fileo_ directory basename \..*$Npq extension ^.*\.rtuv_wxyz{|}_~??_ 'org/apache/commons/exec/DefaultExecutor?d?? 4execute: executing command line [{}] for asset [{}].?_???T? java/lang/Exception java/lang/StringBuilder 3execute: failed to execute command [{}] for asset [?? ]: ?? 2com/day/cq/dam/core/process/CommandLineProcess$2$1 y??? java/io/FileInputStream?b?? java/util/HashSet?u ?????Q?? 2execute: thumbnail dimensions [{}] for asset [{}].?? Aexecute: cannot add invalid thumbnail config [{}] for asset [{}]. ,com/day/cq/dam/api/thumbnail/ThumbnailConfig?? /[Lcom/day/cq/dam/api/thumbnail/ThumbnailConfig;?? =thumbnail template created at [{}] with [{}] thumbnails for [ ].R?z????u?_ java/lang/Boolean????Z???????? ?? ?? ?? ?? t??? AWeb rendition template created at [{}] with [{}] thumbnails for [?? /com/day/cq/dam/api/renditions/RenditionTemplate 2[Lcom/day/cq/dam/api/renditions/RenditionTemplate;???u????d java/io/IOException %com/day/cq/workflow/WorkflowException y? 0com/day/cq/dam/core/process/CommandLineProcess$2 java/lang/ObjectI .com/day/cq/dam/commons/util/AssetUpdate$Runner Runner ?com/day/cq/dam/core/process/CreateWebEnabledImageProcess$Config com/day/cq/dam/api/Asset 'com/day/cq/dam/commons/util/AssetUpdate java/io/InputStream java/io/OutputStream com/day/cq/dam/api/Rendition java/lang/Throwable java/lang/String
java/util/Map [Ljava/io/File;
java/util/Set java/util/List .com/day/cq/dam/core/process/CommandLineProcess execute u(Lcom/day/cq/workflow/exec/WorkItem;Lcom/day/cq/workflow/WorkflowSession;Lcom/day/cq/workflow/metadata/MetaDataMap;)V ()V createTempFile 4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; delete ()Z mkdir getOriginal ()Lcom/day/cq/dam/api/Rendition; getName ()Ljava/lang/String; org/apache/jackrabbit/util/Text escape &(Ljava/lang/String;)Ljava/lang/String; #(Ljava/io/File;Ljava/lang/String;)V (Ljava/io/File;)V getStream ()Ljava/io/InputStream; org/apache/commons/io/IOUtils copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)I closeQuietly (Ljava/io/InputStream;)V (Ljava/io/OutputStream;)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; getAbsolutePath replaceFirst 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 8com/day/cq/dam/core/process/CommandLineProcess$Arguments Arguments COMMANDS :Lcom/day/cq/dam/core/process/CommandLineProcess$Arguments; getArgumentPrefix
startsWith (Ljava/lang/String;)Z length ()I substring (I)Ljava/lang/String; trim #org/apache/commons/exec/CommandLine parse H(Ljava/lang/String;Ljava/util/Map;)Lorg/apache/commons/exec/CommandLine; toString setWorkingDirectory
access$000 D(Lcom/day/cq/dam/core/process/CommandLineProcess;)Lorg/slf4j/Logger; getPath org/slf4j/Logger info 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ((Lorg/apache/commons/exec/CommandLine;)I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; error C(Lcom/day/cq/dam/core/process/CommandLineProcess$2;Ljava/io/File;)V listFiles %(Ljava/io/FileFilter;)[Ljava/io/File; recheck addRendition Y(Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lcom/day/cq/dam/api/Rendition;
THUMBNAILS (Ljava/lang/String;)I 2com/day/cq/dam/core/process/CreateThumbnailProcess parseThumbnailArguments B(Ljava/lang/String;)Lcom/day/cq/dam/api/thumbnail/ThumbnailConfig; add (Ljava/lang/Object;)Z debug toArray (([Ljava/lang/Object;)[Ljava/lang/Object;
access$100 ?(Lcom/day/cq/dam/core/process/CommandLineProcess;Lcom/day/cq/dam/api/Rendition;[Lcom/day/cq/dam/api/thumbnail/ThumbnailConfig;)Ljava/util/List; size java/lang/Integer valueOf (I)Ljava/lang/Integer; GENERATE_WEB_RENDITION name (com/day/cq/workflow/metadata/MetaDataMap get 7(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; booleanValue
access$200 l(Lcom/day/cq/dam/core/process/CommandLineProcess;)Lcom/day/cq/dam/core/process/CreateWebEnabledImageProcess; 8com/day/cq/dam/core/process/CreateWebEnabledImageProcess parseConfig m(Lcom/day/cq/workflow/metadata/MetaDataMap;)Lcom/day/cq/dam/core/process/CreateWebEnabledImageProcess$Config; renditionMaker .Lcom/day/cq/dam/api/renditions/RenditionMaker; width height quality mimeType mimeTypesToKeep ,com/day/cq/dam/api/renditions/RenditionMaker createWebRenditionTemplate y(Lcom/day/cq/dam/api/Rendition;IIILjava/lang/String;[Ljava/lang/String;)Lcom/day/cq/dam/api/renditions/RenditionTemplate; '(Ljava/lang/String;Ljava/lang/Object;)V generateRenditions ^(Lcom/day/cq/dam/api/Asset;[Lcom/day/cq/dam/api/renditions/RenditionTemplate;)Ljava/util/List; DELETE_COMMAND_RENDITION removeRendition (Ljava/lang/String;)V org/apache/commons/io/FileUtils deleteDirectory (Ljava/lang/Throwable;)V o p q s t u v w x y z { H *+? *,? *-? *? ? | ? } ~ w x ? ? { e ?N::? N-? W-? W+? :?
Y-+? ? ?
:? Y? :: ? : ? W? ? ? :
? ?
?:? Y? :? ? W? ? W-? ? W? ? ? W ? !? ? W*? :
?66? n
2:? "? #? $? S? "? #? %? &? ':? (:
? ):? *Y? +:-? ,*? ? -.+? / ? 0
? 1W????? 2:
*? ? -? 3Y? 45? 6+? / ? 67? 6? 8
? 9 -? :Y*? ;? <:
?66??
2:+? ? =Y? >*? ? ? ?? @ :? AY? B:*? :?66? x2:? C? #? D6? X? C? #? %`? &? E:? &? F W*? ? -G+? / ? H ? *? ? -I+? / ? 9 ????*? ? J? K ? L? M:*? ? -? 3Y? 4N? 6+? / ? 6O? 6? 8? P ? Q ? R? H *? ? S? TU? V ? U:? ~? W? v*? ? X*? ? Y:*? ? Z? [? \? ]? ^? _? ` :? a W*? ? -? 3Y? 4b? 6+? / ? 6O? 6? 8? P ? c *? ? Z+? d? e ? f? g W*? ? h? TU? V ? U:? ? W? +? i ? j ???? ? -? <-? k? 5:? mY? n?:? ? -? -? k? :? mY? n??? B S ` ` b ` ?TW 2??? l ?? ??? l??? | r \ ? ? ? ? ? ? ? ! ? 4 ? ? ? B ? K ? S ? X ? ] ? ` ? g ? l ? o ? s ? | ? ? ? ? ? ? ? ?
!*0FNTWY??$?%?$?(?)?* +,
-,."/,0E2Q3V2[)a8m9u8z:?;?:?=???@?ACD@EEDJIfM|N?O??T?U?V?X?[?Y?Z?T?U?V?X?[?Y?Z?]?^ } . = ? ? * $ ? ? 4 ? ?
? ^ ? ? Y - ? ?
? ? ? [ ? ? ? h ? ? ? c ? ? : ? ? ?? ? ? ?? ? ? z ? ? ? ? ? ? | ? ? ?? ? ? !{ ? ? 4h ? ? ?] ? ? BZ ? ? s) ? ? | ? ? ?
? ? ?
? ? ? ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? ? ? z ? ? | ? ? ? e ? `
? ? ? ? ? ? ? ? ? ? ?? r ? ? ? ? ? ? ? ? ? ? ? ? ? ? k? B ?.? ?? F ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? _ ? ?? ? ? ? ? ?? K ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? T ?K ?? ? ? ? ? ? ? ? ?? ? ? ? ? ? ? ? m 2 ? ? ? ? ? r * o : ?, ? qDF ? ?s@