Examples of ApplicationInfo


Examples of barrysoft.application.ApplicationInfo

  public void runUpdate(Class<?> main, String appcastUrl, String appinfoUrl)
  {
    //Initialize the updater
    Updater.getInstance();
   
    ApplicationInfo info = new ApplicationInfo(main.getResourceAsStream(appinfoUrl));
   
    final UpdateRequest r;
    try
    {
      r = new UpdateRequest
View Full Code Here

Examples of com.cloudbees.api.ApplicationInfo

        if (type != null) {
            parameters.put("app_type", type);
        }

        ApplicationCreateResponse res = client.applicationCreate(getAppId(), parameters, appParameters, appVariables);
        ApplicationInfo applicationInfo = res.getApplicationInfo();
        System.out.println( "Application     : " + applicationInfo.getId());
        System.out.println( "Title           : " + applicationInfo.getTitle());
        System.out.println( "Created         : " + applicationInfo.getCreated());
        System.out.println( "Status          : " + applicationInfo.getStatus());
        System.out.println( "URL             : " + applicationInfo.getUrls()[0]);
        Map<String, String> settings = applicationInfo.getSettings();
        if (settings != null) {
            List<String> list = new ArrayList<String>(settings.size());
            for (Map.Entry<String, String> entry: settings.entrySet()) {
                list.add(Helper.getPaddedString(entry.getKey(), 16) + ": " + entry.getValue());
            }
View Full Code Here

Examples of com.intellij.openapi.application.ApplicationInfo

    public FloobitsApplication() {
        self = this;
    }

    public void initComponent() {
        ApplicationInfo instance = ApplicationInfo.getInstance();
        IdeaPluginDescriptor plugin = PluginManager.getPlugin(PluginId.getId("com.floobits.unique.plugin.id"));
        createAccount = Bootstrap.bootstrap(instance.getVersionName(), instance.getMajorVersion(), instance.getMinorVersion(), plugin != null ? plugin.getVersion() : "???");
    }
View Full Code Here

Examples of com.zeroturnaround.liverebel.api.ApplicationInfo

  private static void showActiveAppVersionsAndUrls(CommandCenter center) {
    Map<String, ApplicationInfo> applications = center.getApplications();
    for (Entry<String, ApplicationInfo> entry : applications.entrySet()) {
      String appIdInCenter = entry.getKey();
      ApplicationInfo app = entry.getValue();
      log.info("active version of '{}' are: {}. Application is deployed to following urls: {}", appIdInCenter, app.getActiveVersions(), app.getUrls());
    }
  }
View Full Code Here

Examples of edu.stanford.nlp.sempre.paraphrase.rules.RuleApplication.ApplicationInfo

  private RuleApplication generateApplications(LanguageInfo antecedent, int i, int j, List<WordInfo> rhsMatch, SubstitutableSyntacticRule rule) {
    LanguageInfo consequent = new LanguageInfo();
    consequent.addSpan(antecedent, 0, i);
    consequent.addWordInfos(rhsMatch);
    consequent.addSpan(antecedent, j, antecedent.numTokens());
    RuleApplication application = new RuleApplication(antecedent, consequent, new ApplicationInfo(SYNT_SUBST, rule.toString()));
    FeatureVector fv = new FeatureVector();
    fv.add(SYNT_SUBST, rule.toString());
    fv.add(SYNT_SUBST, "score" ,rule.count);
    application.addFeatures(fv);
    if(opts.verbose>0)
View Full Code Here

Examples of edu.stanford.nlp.sempre.paraphrase.rules.RuleApplication.ApplicationInfo

        res.addSpan(antecedent, matchingInterval.start, matchingInterval.end);
      }
      else
        throw new RuntimeException("Rhs should be a list of wordinfo or integer keys to intervals only");
    }
    RuleApplication application = new RuleApplication(antecedent, res, new ApplicationInfo(RULE,""));
    application.addFeatures(featurizeParaphraseRule());
    return Collections.singletonList(application);
  }
View Full Code Here

Examples of org.apache.geronimo.j2ee.ApplicationInfo

    private static ApplicationInfo createApplicationInfo(PortletRequest request, URL moduleUrl) throws Exception {
        ConfigurationBuilder configurationBuilderBuilder = getConfigurationBuilder(request);
        File moduleFile = new File(moduleUrl.toURI());
        JarFile moduleJar = new JarFile(moduleFile);
        ApplicationInfo applicationInfo = (ApplicationInfo) configurationBuilderBuilder.getDeploymentPlan(null, moduleJar,
                new ModuleIDBuilder());
        return applicationInfo;
    }
View Full Code Here

Examples of org.apache.geronimo.j2ee.ApplicationInfo

    public static void parseWarReferences(PortletRequest request, WARConfigData data, URL warUrl)
            throws Exception {
        WebDeployable webDeployable = new WebDeployable(warUrl);
        ClassLoader classLoader = webDeployable.getModuleLoader();

        ApplicationInfo applicationInfo = createApplicationInfo(request, warUrl);
        Module module = (Module) (applicationInfo.getModules().toArray()[0]);
        WebAppType webApp = (WebAppType) module.getSpecDD();

        ClassFinder classFinder = null;
        try {
            classFinder = AbstractWebModuleBuilder.createWebAppClassFinder(webApp, classLoader);
View Full Code Here

Examples of org.apache.geronimo.j2ee.ApplicationInfo

    public Object getDeploymentPlan(File planFile, JarFile jarFile, ModuleIDBuilder idBuilder) throws DeploymentException {
        if (planFile == null && jarFile == null) {
            return null;
        }
        ApplicationInfo plan = getEarPlan(planFile, jarFile, idBuilder);
        if (plan != null) {
            return plan;
        }
        //Only "synthetic" ears with only external modules can have no jar file.
        if (jarFile == null) {
            return null;
        }

        // get the modules either the application plan or for a stand alone module from the specific deployer
        Module module = null;
        if (getWebConfigBuilder() != null) {
            module = getWebConfigBuilder().createModule(planFile, jarFile, naming, idBuilder);
        }
        if (module == null && getEjbConfigBuilder() != null) {
            module = getEjbConfigBuilder().createModule(planFile, jarFile, naming, idBuilder);
        }
        if (module == null && getConnectorConfigBuilder() != null) {
            module = getConnectorConfigBuilder().createModule(planFile, jarFile, naming, idBuilder);
        }
        if (module == null && getAppClientConfigBuilder() != null) {
            module = getAppClientConfigBuilder().createModule(planFile, jarFile, naming, idBuilder);
        }
        if (module == null) {
            return null;
        }

        return new ApplicationInfo(module.getType(),
                module.getEnvironment(),
                module.getModuleName(),
                null,
                null,
                new LinkedHashSet(Collections.singleton(module)),
View Full Code Here

Examples of org.apache.geronimo.j2ee.ApplicationInfo

                throw (Error) e;
            }
            throw new DeploymentException(e);
        }

        return new ApplicationInfo(ConfigurationModuleType.EAR,
                environment,
                earName,
                application,
                gerApplication,
                modules,
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.