- fix problem with upgrader git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10133 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
6b7daa4af1
commit
0a6c41cb1c
@ -0,0 +1,28 @@ |
||||
/* |
||||
* To change this template, choose Tools | Templates |
||||
* and open the template in the editor. |
||||
*/ |
||||
package com.jme3.gde.upgrader; |
||||
|
||||
import java.util.logging.Level; |
||||
import java.util.logging.Logger; |
||||
import org.netbeans.upgrade.AutoUpgrade; |
||||
import org.openide.util.Exceptions; |
||||
|
||||
/** |
||||
* |
||||
* @author normenhansen |
||||
*/ |
||||
public class Upgrader { |
||||
private static final Logger logger = Logger.getLogger(Upgrader.class.getName()); |
||||
public static void checkUpgrade(){ |
||||
try { |
||||
logger.log(Level.INFO, "Start upgrade.."); |
||||
AutoUpgrade.main(new String[0]); |
||||
logger.log(Level.INFO, "Finished upgrade."); |
||||
} catch (Exception ex) { |
||||
Exceptions.printStackTrace(ex); |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue