Changeset 17839


Ignore:
Timestamp:
11/12/08 16:11:56 (12 years ago)
Author:
oranfry
Message:

show the error message when the startmenu property cannot be read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/uninstaller/Uninstaller.java

    r17828 r17839  
    266266            try {
    267267                smp = getPropertyValue( "startmenu.path", gs2InstallProps );
    268             } catch ( Exception e ) {}
     268            } catch ( Exception e ) {
     269                System.err.println( e.getMessage() );
     270            }
    269271            if ( smp != null ) {
    270272                startMenuPath = new File( smp );
     
    274276            try {
    275277                smp = getPropertyValue( "startmenu.path", gs3InstallProps );
    276             } catch ( Exception e ) {}
     278            } catch ( Exception e ) {
     279                System.err.println( e.getMessage() );
     280            }
    277281            if ( smp != null ) {
    278282                startMenuPath = new File( smp );
     
    367371
    368372    public String getPropertyValue( String propertyName, File file ) throws Exception {
     373
    369374        String regex = "^" + propertyName.replaceAll("\\.","\\\\.") + "[:=]\\s*(.*)$";
    370375        Pattern wantedLine = Pattern.compile( regex );
Note: See TracChangeset for help on using the changeset viewer.