[izpack-changes] r1571 - izpack-src/trunk/src/lib/com/izforge/izpack/installer

noreply at berlios.de noreply at berlios.de
Wed Sep 6 22:35:36 CEST 2006


Author: eppelman
Date: 2006-09-06 22:35:36 +0200 (Wed, 06 Sep 2006)
New Revision: 1571

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/installer/UninstallData.java
Log:
-implemented  the X-KDE subsitute user - shortcut attribute (see Unix_shortcutSpec.xml).
-write Desktop shortcuts to all known local and ypbinded users "desktop" folders.
-write common shortcuts  to the new freedesktop.org common "/usr/share/applications" 
and "/usr/share/pixmaps" folders to display these in the commons [start].menu
Here: updated the uninstaller

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/installer/UninstallData.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/installer/UninstallData.java	2006-09-06 20:34:33 UTC (rev 1570)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/installer/UninstallData.java	2006-09-06 20:35:36 UTC (rev 1571)
@@ -21,10 +21,13 @@
 
 import java.util.ArrayList;
 import java.util.HashMap;
+import java.util.Hashtable;
 import java.util.List;
 import java.util.Map;
 
+
 import com.izforge.izpack.ExecutableFile;
+import com.izforge.izpack.util.os.unix.UnixUser;
 
 /**
  * Holds uninstallation data. Implemented as a singleton.
@@ -33,7 +36,6 @@
  */
 public class UninstallData
 {
-
     /** The uninstall data object. */
     private static UninstallData instance = null;
 
@@ -51,6 +53,9 @@
 
     /** Additional uninstall data like uninstaller listener list. */
     private Map additionalData;
+    
+    /** Filesmap which should removed by the root user for another user */
+    private Hashtable rootData;
 
     /** The constructor. */
     private UninstallData()
@@ -58,7 +63,10 @@
         filesList = new ArrayList();
         executablesList = new ArrayList();
         additionalData = new HashMap();
+        rootData = new Hashtable();
     }
+    
+    public final static String RootFiles = "rootfiles";
 
     /**
      * Returns the instance (it is a singleton).
@@ -172,4 +180,27 @@
         additionalData.put(name, value);
     }
 
+    /**
+     * 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
+     */
+    public void addRootAsUserFile( String aFilePath, UnixUser aUser )
+    {    
+        rootData.put(aFilePath, aUser);
+    }
+    
+    /**
+     * Returns the root data.
+     * 
+     * @return root data
+     */
+    public Hashtable getRootData()
+    {
+        return rootData;
+    }
+    
+    
+
 }




More information about the izpack-changes mailing list