[izpack-changes] r1587 - izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer

noreply at berlios.de noreply at berlios.de
Tue Sep 12 22:37:34 CEST 2006


Author: eppelman
Date: 2006-09-12 22:37:33 +0200 (Tue, 12 Sep 2006)
New Revision: 1587

Modified:
   izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/UninstallData.java
Log:
Optimized/Fixed UnixRootShortcutShellscript: 
Here: store only the RootScript content

Modified: izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/UninstallData.java
===================================================================
--- izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/UninstallData.java	2006-09-12 20:36:53 UTC (rev 1586)
+++ izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/UninstallData.java	2006-09-12 20:37:33 UTC (rev 1587)
@@ -55,7 +55,7 @@
     private Map additionalData;
     
     /** Filesmap which should removed by the root user for another user */
-    private Hashtable rootData;
+    private String rootScript;
 
     /** The constructor. */
     private UninstallData()
@@ -63,10 +63,11 @@
         filesList = new ArrayList();
         executablesList = new ArrayList();
         additionalData = new HashMap();
-        rootData = new Hashtable();
+        rootScript = new String();
     }
     
-    public final static String RootFiles = "rootfiles";
+    /** Constant RootFiles = "rootfiles" */
+    public final static String ROOTSCRIPT = "rootscript";
 
     /**
      * Returns the instance (it is a singleton).
@@ -183,12 +184,11 @@
     /**
      * Adds the given File to delete as Root for the given User.
      * 
-     * @param aFilePath The file to delete.
-     * @param aUser a User to delete for
+     * @param aRootUninstallScript The Script to exec as Root at uninstall.
      */
-    public void addRootAsUserFile( String aFilePath, UnixUser aUser )
+    public void addRootUninstallScript( String aRootUninstallScript )
     {    
-        rootData.put(aFilePath, aUser);
+        rootScript = new String( aRootUninstallScript );
     }
     
     /**
@@ -196,9 +196,9 @@
      * 
      * @return root data
      */
-    public Hashtable getRootData()
+    public String getRootScript()
     {
-        return rootData;
+        return rootScript;
     }
     
     




More information about the izpack-changes mailing list