build.Jdbc42Task.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!
???? .n
Jdbc42Task *org/apache/tools/ant/taskdefs/MatchingTask copyright Ljava/lang/String;
ConstantValue OCopyright (C) 2009-2019 International Business Machines Corporation and others. verbose_ Z destDir_ Ljava/io/File; srcDir_ sourcelist_ numFilesProcessed_ I
STATE_NONE
STATE_IFDEF40
STATE_IFDEF42 STATE_IFNDEF40 STATE_IFNDEF42
FOUND_NONE
FOUND_IFDEF42
FOUND_IFDEF40 FOUND_IFNDEF42 FOUND_IFNDEF40 FOUND_ENDIF
FOUND_COMMENT FOUND_JDBC42DOC FOUND_JDBC40DOC ()V Code
- ) * / LineNumberTable LocalVariableTable this LJdbc42Task;
setSourcelist (Ljava/io/File;)V 7
sourcelist
setDestdir ;
destDir setSrcdir ?
srcDir
setVerbose (Z)V D
verbose execute
Exceptions I #org/apache/tools/ant/BuildException K java/util/ArrayList
J - N java/io/BufferedReader P java/io/FileReader
O R ) 5
M T ) U (Ljava/io/Reader;)V
M W X Y readLine ()Ljava/lang/String;
[ ] \ java/lang/String ^ Y trim
[ ` a b length ()I
[ d e f charAt (I)C
J h i j add (Ljava/lang/Object;)Z l n m java/lang/System o p out Ljava/io/PrintStream; r java/lang/StringBuffer t Error (
q v ) w (Ljava/lang/String;)V
q y z { append ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; }
) processing
q z ? ,(Ljava/lang/String;)Ljava/lang/StringBuffer;
q ? ? Y toString
? ? ? java/io/PrintStream ? w println
? ? ? java/lang/Exception ? ? printStackTrace (Ljava/io/PrintStream;)V
H v
H ? ? ? initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;
J ? ? b size
J ? ? ? get (I)Ljava/lang/Object; ? Processing ? .java
[ ? ? ? indexOf (Ljava/lang/String;)I
? ? w createJdbc42File
H ? ? Number of files processed:
q ? z ? (I)Ljava/lang/StringBuffer;
lastException %Lorg/apache/tools/ant/BuildException; list Ljava/util/ArrayList; reader Ljava/io/BufferedReader; line e Ljava/lang/Exception; be
destFileNames [Ljava/lang/String; i filename getLineType ((Ljava/lang/String;Ljava/lang/String;I)I ? /*
[ ? ? ? substring (I)Ljava/lang/String; ? ifdef ? JDBC40 ? Warning. Incorrect ifdef line ' ? ' at ? : ? JDBC42 ? ifndef ? */ ? !Warning. Incorrect ifndef line ' ? endif ? +Warning. Invalid /* endif */ structure: ' ? 'Warning. Invalid endif */ structure: ' ? 'Warning. Invalid endif... structure: ' ? // ? JDBC40DOC ? JDBC42DOC ? +Warning. Invalid JDBC40DOC after // line ' ? +Warning. Invalid JDBC42DOC after // line ' ? "Warning. Invalid JDBC40DOC line ' ? "Warning. Invalid JDBC42DOC line '
lineNumber originalLine typeCode
l ? ? ? currentTimeMillis ()J ? java/io/File
q - ? /
? v
? ? ? ?
getParentFile ()Ljava/io/File;
? ? ? ? exists ()Z Creating
? Y getAbsolutePath because it does not exist
? ? mkdirs
java/io/PrintWriter java/io/FileWriter
R
) (Ljava/io/Writer;)V
? ? /* ifdef JDBC40 */ /* ifdef JDBC42 */ /* ifndef JDBC40 /* ifndef JDBC42
removeJdbc40Doc &(Ljava/lang/String;)Ljava/lang/String;
! * close# FOUND INVALID ENDIF:% '' ' AT
? v* 0FOUND INVALID IFDEF (currently processing IFDEF:, ) '. /* endif */ 0 !WARNING: found comment in line '2 ' processing IFDEF:4 1FOUND INVALID IFDEF (currently processing IFNDEF:6
endif */ 8 ' processing IFNDEF:: #WARNING: found JDBC40DOC in line '
?= Processed. Time:
q? z@ (J)Ljava/lang/StringBuffer;B msD #CharConversionException processing F line :
HJI java/io/CharConversionException ? *
HLMN getCause ()Ljava/lang/Throwable;P (----------caused by --------------------
RJS java/lang/Throwable
RL
HV )W (Ljava/lang/Throwable;)VY Exception processing
?J start J inputFile
outputFile outputParent writer Ljava/io/PrintWriter; state linetype stateChangeLineNumber end !Ljava/io/CharConversionException; cause Ljava/lang/Throwable;j @WARNING: did not find JDBC40DOC when processing removeJdbc40Doc index
SourceFile Jdbc42Task.java !
! " # $ % &