Package org.gudy.azureus2.plugins.update

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


                      installer.addMoveAction( shared_options.getAbsolutePath(), old_shared_options.getAbsolutePath());
                     
                      if ( !local_options.exists()){

                        installer.addResource( "local_options", new ByteArrayInputStream( options.getBytes( "UTF-8" )));
                       
                        installer.addMoveAction( "local_options", local_options.getAbsolutePath());
                      }                           

                      installer.addResource( "redirect", new ByteArrayInputStream( ( redirect + "\r\n" ).getBytes( "UTF-8" )));
View Full Code Here


                        installer.addResource( "local_options", new ByteArrayInputStream( options.getBytes( "UTF-8" )));
                       
                        installer.addMoveAction( "local_options", local_options.getAbsolutePath());
                      }                           

                      installer.addResource( "redirect", new ByteArrayInputStream( ( redirect + "\r\n" ).getBytes( "UTF-8" )));
                     
                      installer.addMoveAction( "redirect", shared_options.getAbsolutePath());
                       
                      final AESemaphore sem = new AESemaphore( "vmopt" );
                     
View Full Code Here

                  if ( !informUpdateRequired()){
                   
                    return;
                  }

                  installer.addResource( "redirect", new ByteArrayInputStream( ( redirect + "\r\n" ).getBytes( "UTF-8" )));
                 
                  installer.addMoveAction( "redirect", shared_options.getAbsolutePath());
                   
                  final AESemaphore sem = new AESemaphore( "vmopt" );
                 
View Full Code Here

       
          // all jars
       
        if ( name.endsWith( ".jar" )){
         
          installer.addResource(name,zip,false);
         
          if ( Constants.isOSX ){
           
            installer.addMoveAction(name,installer.getInstallDir() + OSX_APP + "/Contents/Resources/Java/" + name);
           
View Full Code Here

          }
        }else if ( name.endsWith(".jnilib") && Constants.isOSX ){
         
            //on OS X, any .jnilib
         
          installer.addResource(name,zip,false);
         
          installer.addMoveAction(name,installer.getInstallDir() + OSX_APP + "/Contents/Resources/Java/dll/" + name);
         
        }else if ( name.equals("java_swt")){
         
View Full Code Here

         
        }else if ( name.equals("java_swt")){
         
            //on OS X, java_swt (the launcher to start SWT applications)
            
          installer.addResource(name,zip,false);
         
          installer.addMoveAction(name,installer.getInstallDir() + OSX_APP + "/Contents/MacOS/" + name);
         
          installer.addChangeRightsAction("755",installer.getInstallDir() + OSX_APP + "/Contents/MacOS/" + name);
         
View Full Code Here

         
        }else if( name.endsWith( ".dll" ) || name.endsWith( ".so" ) || name.indexOf( ".so." ) != -1 ) {
         
             // 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" )){
         
View Full Code Here

                  {
                      StatusBoxUtils.mainStatusAdd(" Could not update because " + from.getName() " is not a real file",2);
                  }
                  //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());
                  }
View Full Code Here

                      StatusBoxUtils.mainStatusAdd(" Could not update because " + from.getName() " is not a real file",2);
                  }
                  String file_to = complete_file_to.peek();
                 // 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());
                       
                  }
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){
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.