Package org.gudy.azureus2.plugins.update

Examples of org.gudy.azureus2.plugins.update.UpdateInstaller.addMoveAction()


         
             // native stuff for windows and linux
          
          installer.addResource(name,zip,false);
         
          installer.addMoveAction(name,installer.getInstallDir() + File.separator + name);
 
        }else if ( name.equals("javaw.exe.manifest") || name.equals( "azureus.sig" )){
         
          // silently ignore this one
        }else{
View Full Code Here


                  //System.out.println("From: " + from.getPath() + " To: " + complete_file_to.peek());
                  //System.out.println("addResource: azcvsupdater_" + i);
                  updateInstaller.addResource("azcvsupdater_" + i , new FileInputStream (from));
                  if(!complete_file_to.isEmpty())
                  {
                      updateInstaller.addMoveAction("azcvsupdater_" + i , complete_file_to.pop());
                  }

                    i++;
              }
              //System.out.println("AZCVSUpdater:  Sleeping for 5 seconds to ensure all has completed");
View Full Code Here

                 // System.out.println("From: " + from.getPath() + " To: " + file_to);
                 
                  updateInstaller.addResource("azcvsupdater_" + i , new FileInputStream (from));
                  if(!complete_file_to.isEmpty())
                  {
                      updateInstaller.addMoveAction("azcvsupdater_" + i , complete_file_to.pop());
                       
                  }
                  StatusBoxUtils.mainStatusAdd(" Successfully added " + from.getName() + " for insertion as " + file_to + " on next restart ",1);
        /*          if(from.getName().startsWith("azcvsupdater")){
                        StatusBoxUtils.mainStatusAdd(" Successfully deleted " + from.getName());
View Full Code Here

                   
                   
                    //System.out.println("From: " + complete_file_from.peek() + " To: " + complete_file_to.peek());
                    if(!complete_file_to.isEmpty())
                    {
                       updateInstaller.addMoveAction(complete_file_from.pop(),complete_file_to.pop());
                    }

                    i++;
                }
                //System.out.println("AZCVSUpdater:  Sleeping for 5 seconds to ensure all has completed");
View Full Code Here

                            }
                            //System.out.println("AZCVSUpdater:  One File Restart/Exit Action");
                            //System.out.println("From: " + from.getPath() + " To: " + complete_file_to);
                           
                            //updateInstaller.addResource("azcvsupdater_restart_stream" , new FileInputStream (from));
                            updateInstaller.addMoveAction(complete_file_from , complete_file_to);
                           
       
                                                   
                        //System.out.println("AZCVSUpdater:  Sleeping for 5 seconds to ensure all has completed, because Tim says my plugin is lazy ;)");
                        logger.log("Sleeping for 5 seconds to ensure all has completed");
View Full Code Here

                            }
                            //System.out.println("AZCVSUpdater:  One File Insert only Action");
                            //System.out.println("From: " + from.getPath() + " To: " + complete_file_to);
                           
                            //updateInstaller.addResource("azcvsupdater_restart_stream" , new FileInputStream (from));
                            updateInstaller.addMoveAction(complete_file_from , complete_file_to);
                           
                            StatusBoxUtils.mainStatusAdd(" Successfully added " + from.getName() + " for insertion as " + complete_file_to + " on next restart ",1);
                                                   
                        //System.out.println("AZCVSUpdater:  Sleeping for 5 seconds to ensure all has completed, because Tim says my plugin is lazy)");
                        //Thread.sleep(5000);
View Full Code Here

            String toFile = sourceDir + "stuffer_" + current_ver + ".jar";
           
            UpdateManager um = Plugin.getPluginInterface().getUpdateManager();
            UpdateInstaller updateInstaller = um.createInstaller();   
            updateInstaller.addResource("stuffer_updater" , new FileInputStream (newVer));
            updateInstaller.addMoveAction("stuffer_updater" , toFile);
           
            System.out.println("Stuffer Auto Upgrade: Successfully upgraded stuffer to version " + current_ver);
           
        }catch(Exception e){
            e.printStackTrace();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.