ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronen Mashal <ro...@jacada.com>
Subject ClassConstants filterreader fails with IOException
Date Wed, 16 Feb 2005 10:01:58 GMT
Hello,

I'm trying to use the classconstants filterreader to read the a class file
but it fails with a IOException.
I tried removing some of the constants and at some point I found that I can
successfully read the file. Is there a limit to what classconstants can
read?

I'm using ant 1.6.0, but I also tried it with ant 1.6.2 - same results.

Source attachments: (See attached file: Ini.java)  (See attached file:
test.xml)

If the attachments don't come through, again:

********************* Ini.java ***********************
package cst.server.constants;

public final class Ini {

   private Ini() {}

   public final static int    ALGORITHM_AS_ON_HOST                   = 0;
   public final static int    ALLOW_MULTI_PAGE                       = 0;
   public final static int    RELEASE_MEMORY_AFTER_PAGING            = 0;
   public final static int    ALLOW_TO_REMAIN_AFTER_SKIPPING_DEFAULT = 0;
   public final static int    AUTOMATICPOPUPHANDLING_DEFAULT         = 0;
   public final static int    AUTOSYNCHRONIZE_DEFAULT                = 1;
   public final static int    BLEEDTHROUGH_MODE_ON                   = 1;
   public final static int    CACHE_MODE_NONE                        = 0;
   public final static int    CACHE_MODE_RESOURCESAVER               = 2;
   public final static int    CACHE_SIZE_DEFAULT                     = 1;
   public final static int    CLEAR_LIST_OPTIONS_DEFAULT             = 1;
   public final static int    DATE_BASE_YEAR_DEFAULT                 =
1910;
   public final static int    DEFAULT_DISPLAY_BREAK_MSGS             = 0;
   public final static int    DEFAULT_DUAL_EMULATOR_FLAG             = 0;
   public final static int    EMBEDDED_LINE_DEFAULT                  = 24;
   public final static int    EMBEDDED_COLUMN_DEFAULT                = 1;
   public final static int    EOF_3270_DEFAULT                       = 0;
   public final static int    EOF_3270_UPDATE_REG_DEFAULT            = 0;
   public final static int    FIELD_EXIT_400_DEFAULT                 = 0;
   public final static int    FOCUSEDLINE_ON_FIRST_PAGE_DEFAULT      = 0;
   public final static int    FRMT_IGNORE_LEADING_BLANKS_DEFAULT     = 0;
   public final static int    HIDE_PROTECTED_CB_DEFAULT              = 0;
   public final static int    HIDE_PROTECTED_CHB_DEFAULT             = 0;
   public final static int    HIDE_PROTECTED_EDIT_DEFAULT            = 1;
   public final static int    LINE_25_DEFAULT                        = 0;
   public final static int    LIST_ZOOM_WINDOW                       = 1;
   public final static int    LOGOFF_TYPE_NODIALOG                   = 0;
   public final static int    LOGOFF_TYPE_NODIALOG_NOMSG             = 1;
   public final static int    MAX_HOST_QUIET_DEFAULT                 = 0;
   public final static int    MAX_MILI_BLEED_THROUGH_DEFAULT         = 500;
   public final static int    MAX_MILI_NO_REACH_DEFAULT              =
8000;
   public final static int    MESSAGEHANDLINGBEFOREDEFAULT_DEFAULT   = 0;
   public final static int    MIN_HOST_QUIET_DEFAULT                 = 0;
   public final static int    MULTI_PAGE_MULTIPLIER_DEFAULT          = 1;
   public final static int    OMIT_VARS_WITH_NO_FLOW_DEFAULT         = 1;
   public final static int    REFRESH_ON_SAME_SUBAPPL_DEFAULT        = 0;
   public final static int    RESTORE_ON_SYNCHRO_DEFAULT             = 0;
   public final static int    RTMAIN_AUTO_ADD_AS_EXPECTED_SCREEN_DEFAULT =
1;
   public final static int    RTMAIN_SEARCH_ALL_LIBS_DEFAULT         = 0;
   public final static int    RTMAIN_WINDOW_HANDLEMSGS_DEFAULT       = 0;
   public final static int    RTMAIN_WINDOW_HELPMSGS_DEFAULT         = 0;
   public final static int    SAVE_COLUMN_ORDER_DEFAULT              = 0;
   public final static int    SELECT_DEFAULT_LINE_DEFAULT            = 1;
   public final static int    SHOULD_MOVE_CURSOR_DEFAULT             = 0;
   public final static int    STOP_ON_TWO_PAGES_DEFAULT              = 1;
   public final static int    STOP_TRANSITION_ON_MESSAGES_DEFAULT    = 0;
   public final static int    TEXT_ONLY_DATA_FLOW_DEFAULT            = 0;
   public final static int    USE_GOTF_DEFAULT                       = 1;
   public final static int    USE_HEADER_ALIGNMENT_DEFAULT           = 0;
   public final static int    SET_TEXT_FOR_PARTIAL_COLUMN_HEADERS_DEFAULT =
0;
   public final static short  DISPLAY_LINE_MSG_ON_DIL                =
0x0002;
   public final static short  DISPLAY_LINE_MSG_ON_WINDOW             =
0x0001;
   public final static String ALLOW_MULTI_PAGE_KEYWORD               =
"MultiPageTable";
   public final static String RELEASE_MEMORY_AFTER_PAGING_KEYWORD    =
"ReleaseMemoryAfterPaging";
   public final static String ALLOW_TO_REMAIN_AFTER_SKIPPING_KEYWORD =
"AllowToRemainOnSameScrAfterSkipping";
   public final static String AUTOMATICPOPUPHANDLING_KEYWORD         =
"AutomaticPopupHandling";
   public final static String AUTOSTART_KEYWORD                      =
"AutoStart";
   public final static String AUTOSYNCHRONIZE_KEYWORD                =
"AutoSynchronize";
   public final static String BLEEDTHROUGH_KEYWORD                   =
"BleedThrough";
   public final static String CACHE_MODE_KEYWORD                     =
"SubApplicationsCacheMode";
   public final static String CACHE_SA_GROUP                         =
"SubApplicationsCacheTreatment";
   public final static String CACHE_SIZE_KEYWORD                     =
"SubApplicationsCacheSize";
   public final static String CE_GROUP                               =
"ControlEditor";
   public final static String CLEAR_LIST_OPTIONS_KEYWORD             =
"ClearListOptions";
   public final static String CLUSTERED_APPLICATIONS_DEFAULT         = "";
   public final static String CLUSTERED_APPLICATIONS_GROUP           =
"Clustered Applications";
   public final static String CLUSTERED_APPLICATIONS_KEYWORD         =
"ClusteredList";
   public final static String DATE_BASE_YEAR_KEYWORD                 =
"DateBaseYear";
   public final static String DEFAULT_APPLICATION_MSGS_TITLE         =
"Application Messages";
   public final static String DEFAULT_BRK_SYS_MSGS_TITLE             =
"System Break Messages";
   public final static String DEFAULT_SYSTEM_MSGS_TITLE              =
"System Messages";
   public final static String DISPLAY_LINE_MSG_KEYWORD               =
"DisplayLineMsg";
   public final static String EMBEDDED_LINE_NUMBER                   =
"MessageLine";
   public final static String EMBEDDED_COLUMN_NUMBER                 =
"MessageColumn";
   public final static String EMBEDDED_MESSAGES                      =
"HandleProgressMessagesImmediately";
   public final static int EMBEDDED_MESSAGES_DEFAULT                 = 0;
   public final static String EMULATOR_TO_VIEW_GUISYS                =
"GUISys";
   public final static String EMULATOR_TO_VIEW_KEYWORD               =
"EmulatorToView";
   public final static String EOF_3270_KEYWORD                       =
"AlwaysEOF3270Update";
   public final static String EOF_3270_UPDATE_REG_KEYWORD            =
"Update3270TextFieldsCharByChar";
   public final static String FIELD_EXIT_400_KEYWORD                 =
"AlwaysFieldExit400Update";
   public final static String FOCUSEDLINE_ON_FIRST_PAGE              =
"SetFocusedLineOnFirstPage";
   public final static String FRMT_IGNORE_LEADING_BLANKS_KEYWORD     =
"FormatIgnoreLeadingBlanks";
   public final static String FULL_APPL_NAME_KEYWORD                 =
"ApplicationFullName";
   public final static String GDS_CONNECT_GROUP                      =
"GdsConnect";
   public final static String GROUP_EMULATOR                         =
"Emulator";
   public final static String GROUP_INITIALIZATION                   =
"Initialization";
   public final static String GROUP_PROGRAM                          =
"Program";
   public final static String HIDE_PROTECTED_CB_KEYWORD              =
"HideProtectedEmptyComboBox";
   public final static String HIDE_PROTECTED_CHB_KEYWORD             =
"HideProtectedEmptyCheckBox";
   public final static String HIDE_PROTECTED_EDIT_KEYWORD            =
"HideProtectedEmptyEdit";
   public final static String KEYWORD_APPLICATION_MSGS_TITLE         =
"ApplicationMessagesTitle";
   public final static String KEYWORD_BRK_SYS_MSGS_TITLE             =
"SystemBreakMessagesTitle";
   public final static String KEYWORD_DISPLAY_BREAK_MSGS             =
"DisplayBreakMessages";
   public final static String KEYWORD_DUAL_EMULATOR_FLAG             =
"DualEmulators";
   public final static String KEYWORD_FORMAT_SECTION                 =
"FormatSectionName";
   public final static String KEYWORD_SYSTEM_MSGS_TITLE              =
"SystemMessagesTitle";
   public final static String LINE_25_KEYWORD                        =
"Emulator25thInformationLine";
   public final static String LIST_ZOOM_KEYWORD                      =
"ListZoom";
   public final static String LOGOFF_TYPE_KEYWORD                    =
"LogoffType";
   public final static String MAX_HOST_QUIET_KEYWORD                 =
"MaxHostQuiet";
   public final static String MAX_MILI_BLEED_THROUGH_KEYWORD         =
"TimeOutToBleedThrough";
   public final static String MAX_MILI_NO_REACH_KEYWORD              =
"TimeOutLimit";
   public final static String MESSAGEHANDLINGBEFOREDEFAULT_KEYWORD   =
"MessageHandlingBeforeDefault";
   public final static String MIN_HOST_QUIET_KEYWORD                 =
"MinHostQuiet";
   public final static String MULTI_PAGE_MULTIPLIER_KEYWORD          =
"MultiPageMultiplier";
   public final static String OMIT_VARS_WITH_NO_FLOW_KWD             =
"OmitVariablesWithNoDataFlow";
   public final static String REFRESH_ON_SAME_SUBAPPL_KEYWORD        =
"RefreshOnSameSubAppl";
   public final static String RESTORE_ON_SYNCHRO_KEYWORD             =
"RestoreMainWindowOnSynchronize";
   public final static String RTMAIN_AUTO_ADD_AS_EXPECTED_SCREEN_KEYWORD =
"AutomaticAddAsExpectedScreen";
   public final static String RTMAIN_SEARCH_ALL_LIBS_KEYWORD         =
"SearchAllLibrariesForIdentification";
   public final static String RTMAIN_WINDOW_HANDLEMSGS_KEYWORD       =
"HandleNextPrevMessages";
   public final static String RTMAIN_WINDOW_HELPMSGS_KEYWORD         =
"HandleMessageHelp";
   public final static String RTMAIN_WINDOW_WINPREF_DEFAULT          = "&";
   public final static String RTMAIN_WINDOW_WINPREF_KEYWORD          =
"WindowsPrefixChar";
   public final static String SAVE_COLUMN_ORDER_KEYWORD              =
"SaveColumnOrder";
   public final static String SELECT_DEFAULT_LINE_KEYWORD            =
"SelectDefaultLine";
   public final static String SHOULD_MOVE_CURSOR_KEYWORD             =
"MoveCursorBeforePaging";
   public final static String STOP_ON_TWO_PAGES_KEYWORD              =
"CheckConsecutiveIdenticalPages";
   public final static String STOP_TRANSITION_ON_MESSAGES_KEYWORD    =
"StopDependentTransitionsOnHostMessages";
   public final static String TEXT_ONLY_DATA_FLOW_KEYWORD =
"TextOnlyDataFlow";
   public final static String UNSELECTABLE_LIST_CMD_CHARS_DEFAULT    = "";
   public final static String UNSELECTABLE_LIST_CMD_CHARS_KEYWORD    =
"HostCharsForUnselectedRecords";
   public final static String USE_GOTF_KEYWORD                       =
"UseJITGUI";
   public final static String USE_HEADER_ALIGNMENT_KEYWORD           =
"UseTableHeaderAlignment";
   public final static String SET_TEXT_FOR_PARTIAL_COLUMN_HEADERS     =
"SetTextForPartialColumnHeader";
   public final static String TAB_ON_EDIT_ONLY_KEYWORD               =
"TabOnEditOnly";
   public final static int TAB_ON_EDIT_ONLY_DEFAULT                  = 0;
   public final static String LEAVE_ONTAB_KEYWORD                    =
"LeaveTableOnLastCell";
   public final static int LEAVE_ONTAB                               = 1;
   public final static String JACADA_CLIENT_DISPLAY_MODE_KEYWORD     =
"JacadaClientDisplayMode";
   public final static int JACADA_CLIENT_DISPLAY_MODE_MDI            = 1;
   public final static int JACADA_CLIENT_DISPLAY_MODE_SDI            = 2;
   public final static int JACADA_CLIENT_DISPLAY_MODE_DEFAULT        =
JACADA_CLIENT_DISPLAY_MODE_MDI;
   public final static String  AUTO_SAVE_WINDOWS_LAYOUT_KEYWORD      =
"AutoSaveWindowsLayout";
   public final static int AUTO_SAVE_WINDOWS_LAYOUT_DEFAULT          = 0;
   public final static String
CONTINUE_RUNNING_APPLICATION_AFTER_USER_ERROR_KEYWORD =
"ContinueRunningApplicationAfterUserError";
   public final static int
CONTINUE_RUNNING_APPLICATION_AFTER_USER_ERROR_DEFAULT  = 0;
   public final static String
INCLUDE_APPLICATION_NAME_IN_WINDOW_TITLE_KEYWORD    =
"IncludeApplicationNameInWindowTitle";
   public final static int INCLUDE_APPLICATION_NAME_IN_WINDOW_TITLE_DEFAULT
= 1;
   public final static int BLEEDTHROUGH_DEFAULT                      =
BLEEDTHROUGH_MODE_ON;
   public final static int CACHE_MODE_DEFAULT                        =
CACHE_MODE_NONE;
   public final static int DISPLAY_LINE_MSG_DEFAULT                  =
DISPLAY_LINE_MSG_ON_WINDOW;
   public final static String KEYWORD_DIL                            =
"DIL";
   public final static String FIRST_SUBAPPL_NAME_KEYWORD             =
"FirstSubApplName";
   public final static String FIRST_SUBAPPL_NAME_DEFAULT             = "";
   public final static String LOAD_PUBLIC_FORMATS_KEYWORD            =
"LoadPublicFormats";
   public final static String LOAD_PUBLIC_FORMATS_DEFAULT            = "";
   public final static String HANDLE_MESSAGE_AFTER_REFRESH_KEYWORD   =
"HandleMsgsAfterRefresh";
   public final static int HANDLE_MESSAGE_AFTER_REFRESH_DEFAULT      = 1;
   public final static String LIBRARIES_KEYWORD                      =
"Libraries";
   public final static String PROTECTED_FIELD_TEXTCOLOR_KEYWORD      =
"ProtectedFieldTextColor";
   public final static String PROTECTED_FIELD_BKCOLOR_KEYWORD        =
"ProtectedFieldBkColor";
   public final static String  FOCUS_ON_DEFAULT_BUTTON               =
"FocusOnDefaultButton";
   public final static int DEFAULT_FOCUS_ON_DEFAULT_BUTTON           = 1;
   public final static String EMULATOR_TO_VIEW_DEFAULT               =
EMULATOR_TO_VIEW_GUISYS;
   public final static int LOGOFF_TYPE_DEFAULT                       =
LOGOFF_TYPE_NODIALOG;
   public final static String RTMAIN_WINDOW_MINIMIZE_KEYWORD         =
"MinimizeWindowOnStart";
   public final static int RTMAIN_WINDOW_MINIMIZE_DEFAULT            = 0;
   public final static String RTMAIN_WINDOW_MAXIMIZE_KEYWORD         =
"MaximizeWindowOnStart";
   public final static int RTMAIN_WINDOW_MAXIMIZE_DEFAULT            = 0;
   public final static String RTMAIN_WINDOW_HOSTHELP_KEYWORD         =
"HandleHostHelp";
   public final static int RTMAIN_WINDOW_HOSTHELP_DEFAULT            = 0;
   public final static String RTMAIN_WINDOW_ATTENTION_KEYWORD        =
"HandleAttention";
   public final static int RTMAIN_WINDOW_ATTENTION_DEFAULT           = 0;
   public final static String SEMIMDI_TYPE_KEYWORD                   =
"SemiMDIType";
   public final static int SEMIMDI_TYPE_DEFAULT                      = 0;
   public final static String IDENT_JUST_ONCE                        =
"StopScreenIdentificationAfterFirstMatch";
   public final static int IDENT_JUST_ONCE_DEFAULT                   = 0;
   public final static String PEND_AFTER_UNLOCK                      =
"AfterKeyboardUnlockWaitForScreenChangeBeforeIdentification";
   public final static int PEND_AFTER_UNLOCK_DEFAULT                 = 0;
   public final static String MAXIMUM_STACK_DEPTH_KEYWORD            =
"MaximalRecursiveScreenTransitions";
   public final static int MAXIMUM_STACK_DEPTH_DEFAULT               = 100;
   public final static String GROUP_HOST_LOCALE                      =
"HostLocaleInformation";
   public final static String KEYWORD_HOST_LOCALE_CLASS_NAME         =
"LocaleClassName";
   public final static String KEYWORD_HOST_LOCALE_LANGUAGE           =
"LocaleLanguage";
   public final static String KEYWORD_HOST_LOCALE_COUNTRY            =
"LocaleCountry";
}

********************* END OF SOURCE **********************


****************** test.xml *************************
<?xml version="1.0"?>
<project name="test" default="test">
<description>test</description>
   <property name="src.dir" location="src"/>
   <property name="aux.dir" location="build.aux.files"/>
   <property name="classes.dir" location="classes"/>

   <property name="jrodefaults.ini.file"
location="${classes.dir}\JroDefaults.ini"/>

   <target name="test">
      <loadproperties
srcfile="${classes.dir}/cst/server/constants/Ini.class">
         <filterchain>
            <classconstants/>
            <!-- prefixlines prefix="ini."/ -->
         </filterchain>
      </loadproperties>

      <copy file="${aux.dir}\JroDefaults.ini.skeleton"
            tofile="${jrodefaults.ini.file}">
         <filterchain>
            <expandproperties/>
         </filterchain>
      </copy>
   </target>
</project>



Ronen.


Mime
View raw message