1
package freeguide.plugins.program.freeguide.migration;
3
import freeguide.common.lib.general.FileHelper;
5
import freeguide.plugins.program.freeguide.FreeGuide;
9
import java.util.prefs.BackingStoreException;
17
public class Migrate0_10_8To0_10_9 extends MigrationProcessBase
20
* Creates a new Migrate0_10_8To0_10_9 object.
22
* @param nodeName DOCUMENT ME!
24
* @throws BackingStoreException DOCUMENT ME!
26
public Migrate0_10_8To0_10_9( final String nodeName )
27
throws BackingStoreException
35
* @throws Exception DOCUMENT_ME!
37
public void migrate( ) throws Exception
39
FreeGuide.log.info( "Upgrading preferences 0.10.8 -> 0.10.9" );
42
System.getProperty( "os.name" ).startsWith( "Windows" );
44
// Delete the installed XMLTV version so we can unzip a newer one
48
new File( FreeGuide.config.workingDirectory, "xmltv" );
50
FileHelper.deleteDir( xmltvDir );
55
getAndRemoveKey( "version" );
56
putKey( "version", "0.10.9" );