Changeset 17435 for release-kits
- Timestamp:
- 2008-10-01T16:46:57+13:00 (16 years ago)
- Location:
- release-kits/shared/uninstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/uninstaller/Uninstall.bat
r17433 r17435 14 14 rm uninst.flag 15 15 rm Uninstall.bat 16 17 if NOT EXIST *.* ( 18 set GSDEL=%CD% 19 cd .. 20 rmdir %GSDEL% 21 ) 22 16 23 ) -
release-kits/shared/uninstaller/Uninstaller.java
r17434 r17435 20 20 import java.util.regex.Pattern; 21 21 import java.util.regex.Matcher; 22 import java.util.ArrayList; 22 23 23 24 public class Uninstaller { … … 255 256 //delete the files 256 257 try { 257 ArrayList <File> exceptions = new ArrayList<File>();258 ArrayList exceptions = new ArrayList(); 258 259 259 260 //never delete the things we are currently running 260 exceptions.add( "bin/search4j.exe");261 exceptions.add( "packages/jre");262 exceptions.add( "uninst.jar");263 exceptions.add( "Uninstall.bat");264 exceptions.add( "Uninstall.sh");261 exceptions.add( new File("bin/search4j.exe") ); 262 exceptions.add( new File("packages/jre") ); 263 exceptions.add( new File("uninst.jar") ); 264 exceptions.add( new File("Uninstall.bat") ); 265 exceptions.add( new File("Uninstall.sh") ); 265 266 266 267 if ( keepCollections ) { … … 277 278 System.exit(0); 278 279 } 279 recursiveDelete( cd , exceptions.toArray() ); 280 281 File[] ex = new File[exceptions.size()]; 282 for ( int i=0; i<exceptions.size(); i++ ) { 283 ex[i] = (File)exceptions.get(i); 284 } 285 286 recursiveDelete( cd , ex ); 280 287 } catch ( CancelledException ce ) { 281 288 log.append( bundle.getString("cancelled") + "\n" );
Note:
See TracChangeset
for help on using the changeset viewer.