greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 17839

Show
Ignore:
Timestamp:
2008-11-12 16:11:56 (2 months ago)
Author:
oranfry
Message:

show the error message when the startmenu property cannot be read

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 );