Make Spark search for a profile in old profile location

Description

Currently 2.6.0 version is storing profile in a new location, so it can be confusing for most users (and admins) to upgrade from 2.5.8 version. While launching Spark should search in old profile location, if no profile is present in the current location, and if one is found, then it should import old profile (not move, just copy, to let users easily downgrade also). That means it should copy settings and history files. Not sure about all the folders, as it can pull older extracted plugins, but those probably should be overwritten by the new versions anyway.

Environment

Windows/Linux

Activity

Show:
wroot
February 26, 2011, 12:08 PM

Fix is in the svn.

Mike McMahon
February 25, 2011, 10:35 PM
Edited

thanks for the update wroot - fixed. Seems eclipse decided it would import the wrong log class - doh.

wroot
February 25, 2011, 9:01 PM

As usually, Spark is not building with that patch for me in Netbeans (though patch applies successfully)

build:
D:\My Documents\JiveSoftware\Spark\build.xml:207: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Compiling 320 source files to D:\My Documents\JiveSoftware\Spark\target\classes
D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\SparkCompatibility.java:14: package net.java.sipmack.common does not exist
import net.java.sipmack.common.Log;
D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\SparkCompatibility.java:33: cannot find symbol
symbol : variable Log
location: class org.jivesoftware.SparkCompatibility
Log.debug("Transferring settings from: " + USER_SPARK_HOME);
^
D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\SparkCompatibility.java:34: cannot find symbol
symbol : variable Log
location: class org.jivesoftware.SparkCompatibility
Log.debug("To: " + userSparkHome);
^
D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\spark\util\GraphicUtils.java:639: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release
sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);
D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\spark\util\GraphicUtils.java:639: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release
sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
2 warnings
D:\My Documents\JiveSoftware\Spark\build.xml:207: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 8 seconds)

Mike McMahon
February 25, 2011, 6:53 PM

Updated slightly to include a collection of files or directories to be skipped per Wolf Posdorfer's advice!

Mike McMahon
February 25, 2011, 6:53 AM

Attached, MM_SPARK-1184_1.0.txt is a combination of the patch posted by http://community.igniterealtime.org/message/209660#209660 and some minor modifications by myself.

I externalized the move method into its own class (SparkCompatibility.java) and placed the class inside the org/jivesoftware/ package.

Additionally, this code will skip the plugins directory.

Testing of this patch would be greatly appreciated so we can get this issue closed up

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Priority

Blocker

Assignee

Mike McMahon

Reporter

wroot