build.CopyrightInsertionTask.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400-jdk8 Show documentation
Show all versions of jt400-jdk8 Show documentation
The Open Source version of the IBM Toolbox for Java
The newest version!
???? . CopyrightInsertionTask *org/apache/tools/ant/taskdefs/MatchingTask copyrightStringPart1_ Ljava/lang/String;
ConstantValue Copyright (C) copyrightStringPart2_ 1997-2019 copyrightStringPart3_ 8 International Business Machines Corporation and others. copyrightString_ OCopyright (C) 1997-2019 International Business Machines Corporation and others. copyrightStringLength_ I verbose_ Z destDir_ Ljava/io/File; numFilesProcessed_ numFilesStamped_ numFilesAlreadyStamped_ ()V Code
" ! java/lang/String # $ length ()I & LineNumberTable LocalVariableTable
+ ) - / 1 this LCopyrightInsertionTask;
setDestdir (Ljava/io/File;)V 7 destDir
setVerbose (Z)V < verbose execute
Exceptions A #org/apache/tools/ant/BuildException
C D E getDirectoryScanner 7(Ljava/io/File;)Lorg/apache/tools/ant/DirectoryScanner;
G I H %org/apache/tools/ant/DirectoryScanner J K getIncludedFiles ()[Ljava/lang/String; M java/io/File
L O ) P #(Ljava/io/File;Ljava/lang/String;)V R T S java/lang/System U V out Ljava/io/PrintStream; X java/lang/StringBuffer Z Processing
W \ ) ] (Ljava/lang/String;)V
W _ ` a append ,(Ljava/lang/String;)Ljava/lang/StringBuffer;
W c d e toString ()Ljava/lang/String;
g i h java/io/PrintStream j ] println
l m 5 insertCopyrightString o !Number of class files processed:
W q ` r (I)Ljava/lang/StringBuffer; t Number of class files stamped: v 'Number of class files already stamped: scanner 'Lorg/apache/tools/ant/DirectoryScanner; classFileNames [Ljava/lang/String; i classFile
R ~ ? currentTimeMillis ()J ? java/io/DataInputStream ? java/io/BufferedInputStream ? java/io/FileInputStream
? ? ) 5
? ? ) ? (Ljava/io/InputStream;)V
? ?
? ? ? ? read ([B)I
? ? ? $ readUnsignedShort ? CopyrightInsertionTask$Constant
? ? ? $ readUnsignedByte
? ? ) ? 5(LCopyrightInsertionTask;ILjava/io/DataInputStream;)V
? ? ?
? ? ? e getName
? ? ?
startsWith (Ljava/lang/String;)Z
? ? ? endsWith
? ? ? close ? "Already exists. Found it at index
? ? ? $ available ? java/io/DataOutputStream ? java/io/BufferedOutputStream ? java/io/FileOutputStream
? ?
? ? ) ? (Ljava/io/OutputStream;)V
? ?
? ? ? ? write ([BII)V
? ? ? ?
writeShort (I)V
? ? ? ? (Ljava/io/DataOutputStream;)V
? ? ? $ getType
? ? ? ? writeByte
? ? ? ] writeUTF
? ? ? flush
? ? ? Stamped. Time:
W ? ` ? (J)Ljava/lang/StringBuffer; ? ms ? java/lang/Exception
? c
? ? ? valueOf &(Ljava/lang/Object;)Ljava/lang/String; ? caught processing
L c
? \
? ? ? ? initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;
@ ? ) ? (Ljava/lang/Throwable;)V start J dis Ljava/io/DataInputStream; prePoolBytes [B constantPoolCount entries "[LCopyrightInsertionTask$Constant; tag name bytesLeft
postPoolBytes dos Ljava/io/DataOutputStream; end e Ljava/lang/Exception; e2
SourceFile CopyrightInsertionTask.java InnerClasses Constant !
) ? ? %? '
( ) N *? **? ,*? .*? 0? ' ( 2 3 4 5 > *+? 6? '
( 2 3 8 9 : > *? ;? '
( 2 3 = > ? @ % ?**? 6? BL+? FM>? E? LY*? 6,2? N:*? ;? ? Q? WYY? [,2? ^? b? f*? k*Y? ,`? ,?,????? Q? WYn? [*? ,? p? b? f? Q? WYs? [*? .? p? b? f? Q? WYu? [*? 0? p? b? f? ' 2 % &