Examples of Installer


Examples of com.alu.e3.installer.Installer

     
      if(logger.isDebugEnabled()) {
        logger.debug("Installing E3 on all topology targets ...");
      }
     
      Installer installer = new Installer(srcConfigFile.getAbsolutePath(), tmpTopology, springContextBootstrapper);
      installer.deploy(warnings);
     
      if(logger.isDebugEnabled()) {
        logger.debug("Installation of all topology targets done.");
        logger.debug("Copying configFile and topologyFile to home user ...");
      }
View Full Code Here

Examples of com.foreach.across.core.annotations.Installer

    for ( Object installer : moduleConfig.getInstallers() ) {
      Assert.notNull( installer, "Installer instance should never be null." );

      Class<?> installerClass = determineInstallerClass( installer );
      Installer metadata = installerClass.getAnnotation( Installer.class );

      if ( metadata == null ) {
        throw new AcrossException( "Installer " + installer.getClass() + " should have @Installer annotation" );
      }

      if ( metadata.phase() == phase ) {
        if ( areDependenciesMet( installerClass ) ) {
          LOG.trace( "Dependencies for installer {} are met.", installerClass );

          // Create installer instance if necessary
          Object instance = determineInstallerInstance( installer );
          InstallerAction action = determineInstallerAction( instance, moduleConfig );
          LOG.trace( "Determined action {} for installer {}.", action, installerClass );

          if ( shouldCheckRunCondition( action ) ) {
            if ( shouldPerformAction( action, moduleConfig.getModule(), installerClass, metadata ) ) {
              performInstallerAction( action, moduleConfig.getModule(), instance, metadata );
            }
            else {
              LOG.debug( "Skipping installer {} because action {} should not be performed.",
                         action, installerClass );
            }
          }
          else {
            LOG.debug( "Skipping installer {} because action is {}", installerClass, action );
          }
        }
        else {
          LOG.debug( "Skipping installer {} because dependencies are not met.", installerClass );
        }
      }
      else {
        LOG.trace( "Ignoring installer {} because it is defined for phase {}", installerClass,
                   metadata.phase().name() );
      }
    }

    LOG.trace( "Finished {} installers for module {}", phase.name(), moduleConfig.getModuleName() );
  }
View Full Code Here

Examples of com.google.wave.api.Installer

    blip.append(line);
    blip.append("bulleted!");

    // Test inserting extension installer.
    String installerUrl = "http://wave-skynet.appspot.com/public/extensions/areyouin/manifest.xml";
    blip.append(new Installer(installerUrl));

    // Test adding a proxied reply. The reply will be posted by
    // jkitchensinky+proxy@appspot.com. Note that as a side effect this will
    // also add this participant to the wave.
    wavelet.proxyFor("proxy").reply("\n").append("Douwe says Java rocks!");
View Full Code Here

Examples of com.instantiations.installer.core.model.Installer

   * Test to scan the Instantiations directory for unlinked directories
   */
  public static void main(String[] args) {
    InstallOptions options = new InstallOptions();
    options.setVerbose(true);
    Installer installer = new Installer(options) {
      protected Class getRequiredAdapterType() {
        return null;
      }
    };
   
View Full Code Here

Examples of com.jada.install.process.Installer

          else if (reason.equals("signout")) {
            messages.add("message", new ActionMessage("message.logout.successful"));
          }
        }
        if (ApplicationGlobal.isRequireInstall()) {
          Installer installer = Installer.getInstance();
          if (!installer.isInstallCompleted()) {
            messages.add("install", new ActionMessage("error.install.notCompleted"));
          }
        }
      saveMessages(request, messages);
            ActionForward actionForward = actionMapping.findForward("login");
View Full Code Here

Examples of com.jada.install.process.Installer

  private static final long serialVersionUID = -5724816778527823325L;
  ServletContext context = null;
 
  public void init(ServletConfig config) {
    String contextPath = null;
    Installer installer = null;
    context = config.getServletContext();

    try {
      URL rootURL = context.getResource ("/");
      File rootFile = new File(rootURL.toString());
      contextPath = rootFile.getName ();
      ApplicationGlobal.setContextPath(contextPath);
    }
    catch (Exception e) {
      log("Problem initializing JadaSite.", e);
      log("JadaSite startup aborted.");
      return;
    }
   
      String filename = Utility.getServletLocation(config.getServletContext()) + "jada.properties";
      File file = new File(filename);
      if (file.exists()) {
        try {
          if (!file.delete()) {
            log("Unable to remove " + filename);
              log("This file can be removed manually");
              return;
          }
        }
        catch (SecurityException e) {
          log("Unable to remove " + filename, e);
          log("This file can be removed manually");
          return;
        }
      }

   
      installer = Installer.getInstance();
      installer.init(config.getServletContext());
     
    ApplicationGlobal.setVersion(config.getInitParameter("version"));
    ApplicationGlobal.setDbVersion(config.getInitParameter("dbVersion"));
   
    String debug = config.getInitParameter(Constants.CONFIG_PROPERTY_LOCALTESTING);
    if (debug != null && debug.toLowerCase().equals("true")) {
      ApplicationGlobal.setLocalTesting(true);
    }

    String driver = config.getInitParameter(Constants.CONFIG_PROPERTY_DRIVER);
      String url = config.getInitParameter(Constants.CONFIG_PROPERTY_URL);
      String user = config.getInitParameter(Constants.CONFIG_PROPERTY_USER);
      String pass = config.getInitParameter(Constants.CONFIG_PROPERTY_PASS);
    String encryptionKey = config.getInitParameter(Constants.CONFIG_PROPERTY_ENCRYPTIONKEY);
    String workingDirectory = config.getInitParameter(Constants.CONFIG_PROPERTY_WORKINGDIRECTORY);
    String log4jDirectory = config.getInitParameter(Constants.CONFIG_PROPERTY_LOGDIRECTORY);
   
    boolean requireInstall = false;
    boolean installCompleted = installer.isInstallCompleted();
    ApplicationGlobal.setInstallCompleted(installCompleted);
    String value = config.getInitParameter(Constants.CONFIG_PROPERTY_REQUIREINSTALL);
    if (value != null && value.toLowerCase().equals("true")) {
      requireInstall = true;
      ApplicationGlobal.setRequireInstall(true);
    }
   
    if (requireInstall) {
      if (!installCompleted) {
        log("Installation has not been done.  Skipping custom initialization.");
        log("Please proceed to installation and remmember to restart before continue.");
        log("Awaiting installation....");
        return;
      }
      try {
        Properties installProperties = installer.getConfigProperties();
        driver = installProperties.getProperty(Constants.CONFIG_PROPERTY_DRIVER);
        url = installProperties.getProperty(Constants.CONFIG_PROPERTY_URL);
        user = installProperties.getProperty(Constants.CONFIG_PROPERTY_USER);
        pass = installProperties.getProperty(Constants.CONFIG_PROPERTY_PASS);
        encryptionKey = installProperties.getProperty(Constants.CONFIG_PROPERTY_ENCRYPTIONKEY);
View Full Code Here

Examples of com.jigen.ant.Installer

  }
 
  @Override
  public void executeTask() throws Exception
  {
    Installer installer = jigen.getInstallers().get(installerIndex);
   
    String targetsDescriptor = Installer.Target.getDescriptor(installer.getTargets());
   
    String installerId = jigen.getProduct().getUnixName() + "-" + jigen.getProduct().getVersion() + "-" + targetsDescriptor;

    File jarOutputFile = new File(installer.getDestination() + File.separator + installerId + ".jar");
   
    publish("Starting " + jarOutputFile.getName() + "...");
   
    JarGenerator jarGenerator = new JarGenerator(jarOutputFile, "/jix.jar");
   
    ConfigFileGenerator configFileGenerator = new ConfigFileGenerator();
   
    if (installer.containsTarget(Installer.Target.WIN))
    {
      File wsfOutputFile = new File(installer.getDestination() + File.separator + "Run " + installerId + ".wsf");
 
      MsiGenerator msiGenerator = new MsiGenerator(jigen);
     
      publish("Generating WiX file...");
     
      msiGenerator.generateWixFile();
     
      publish("Generating WiX object file...");
     
      StringWriter candleSw = new StringWriter();
     
      try
      {
        msiGenerator.candle(new PrintWriter(candleSw));
        publish(candleSw.toString());
      }
      catch(RuntimeException e)
      {
        publish(candleSw.toString());
        throw e;
      }
     
      publish("Generating MSI file...");
     
      StringWriter lightSw = new StringWriter();
     
      File msiFile;
     
      try
      {
        msiFile = msiGenerator.light(lightSw);
        publish(lightSw.toString());
      }
      catch(RuntimeException e)
      {
        publish(lightSw.toString());
        throw e;
      }
     
      publish("Appending MSI file...");
     
      jarGenerator.appendFile("windows-installer.msi", msiFile);
     
      configFileGenerator.appendValue("win.product.guid", msiGenerator.getProductGuid());

      msiGenerator.dispose();

      publish("Generating WSF script...");

      WsfGenerator wsfGenerator = new WsfGenerator(jarOutputFile.getName());
     
      wsfGenerator.format(wsfOutputFile);
    }
   
    if (installer.containsTarget(Installer.Target.UNIX))
    {
      UnixPackageGenerator packageGenerator = new UnixPackageGenerator(jigen);
     
      publish("Packaging runnable files...");
     
      packageGenerator.appendJigenRunnables();
     
      publish("Packaging runnable scripts and shortcuts...");
     
      packageGenerator.appendJigenRunnableScripts();
      packageGenerator.appendIcons();
      packageGenerator.appendShortcuts();
      packageGenerator.appendUninstaller();
     
      publish("Packaging resource files...");
     
      packageGenerator.appendJigenResources();
     
      publish("Closing package.");

      packageGenerator.closeFile();
     
      jarGenerator.appendFile("unix-package.zip", packageGenerator.getFile());
     
      publish("Adding text files list...");
     
      jarGenerator.appendFile("text-files.txt",       packageGenerator.getTextFilesList());
      jarGenerator.appendFile("executable-files.txt", packageGenerator.getExecutableFilesList());
         
      packageGenerator.dispose();
    }
   
    configFileGenerator.appendValue("product.is_license_attached",    jigen.getProduct().isSetLicense());
    configFileGenerator.appendValue("product.name",                   jigen.getProduct().getUnixName());
    configFileGenerator.appendValue("product.long_name",              jigen.getProduct().getName());
    configFileGenerator.appendValue("product.version",                jigen.getProduct().getVersion());

    configFileGenerator.appendValue("program.has_desktop_shortcuts",   jigen.hasDesktopShortcuts());
    configFileGenerator.appendValue("program.has_startmenu_shortcuts", jigen.hasStartMenuShortcuts());
   
    configFileGenerator.appendValue("environment.min_java_version", jigen.getEnvironment().getRequiredJava());
    configFileGenerator.appendValue("environment.extensions", ':',  jigen.getExtensionsMap());

    TreeMap<String,String> supportedPlatforms = new TreeMap<String,String>();
   
    for (Installer.Target target : installer.getTargets())
      supportedPlatforms.put(target.toString(), target.getLongDescription());
   
    configFileGenerator.appendValue("environment.platforms", ':', supportedPlatforms);
   
    if (jigen.getProduct().isSetLicense())
View Full Code Here

Examples of com.jigen.ant.Installer

    return antAssociate;
  }

  private Installer importInstaller(com.jigen.xsd.Installer installer)
  {
    Installer antInstaller = new Installer();
   
    antInstaller.setDestination(getFile(installer.getDestination()));
   
    for(OsName.Enum target : installer.getTargetArray())
      antInstaller.addTarget(target.toString());
   
    return antInstaller;
  }
View Full Code Here

Examples of com.salas.bb.installation.Installer

     */
    private GlobalModel resetIncompatibleDatabase()
    {
        splashEnsureOpenClosed(false);

        Installer installer = new Installer();
        GlobalModel model = installer.perform(getContextPath());

        splashEnsureOpenClosed(true);

        return model;
    }
View Full Code Here

Examples of com.skcraft.launcher.install.Installer

    private ProgressObservable progress = new DefaultProgress(0, _("updater.updating"));

    public SelfUpdater(@NonNull Launcher launcher, @NonNull URL url) {
        this.launcher = launcher;
        this.url = url;
        this.installer = new Installer(launcher.getInstallerDir());
    }
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.