Examples of Paths


Examples of org.apache.tomee.installer.Paths

                }
            }
        }

        // from prefix
        final Paths paths = new Paths(new File(System.getProperty("openejb.home"))); // parameter is useless
        for (final String prefix : PREFIXES_TO_ADD) {
            final File file = paths.findTomEELibJar(prefix);
            if (file != null) {
                try {
                    urls.add(file.toURI().toURL());
                } catch (final MalformedURLException e) {
                    // ignored
View Full Code Here

Examples of org.apache.tomee.installer.Paths

        // install conf/openejb.xml and conf/logging.properties files
        final String openejbWarDir = properties.getProperty("tomee.war");
        if (openejbWarDir != null) {

            final Paths paths = new Paths(new File(openejbWarDir));
            if (paths.verify()) {
                final Installer installer = new Installer(paths);
                if (installer.getStatus() != Status.INSTALLED) {
                    installer.installConfigFiles();
                }
            }
View Full Code Here

Examples of org.apache.tomee.installer.Paths

                System.setProperty("catalina.home", openejbHome.getAbsolutePath());
                System.setProperty("catalina.base", openejbHome.getAbsolutePath());

                System.setProperty("openejb.deploymentId.format", System.getProperty("openejb.deploymentId.format", "{appId}/{ejbJarId}/{ejbName}"));

                final Paths paths = new Paths(webapp);
                installer = new Installer(paths, true);
                if (!configuration.isUseInstallerServlet()) {
                    installer.installAll();

                }
View Full Code Here

Examples of org.apache.tomee.installer.Paths

                }
            }
        }

        // from prefix
        final Paths paths = new Paths(new File(System.getProperty("openejb.home"))); // parameter is useless
        for (final String prefix : PREFIXES_TO_ADD) {
            final File file = paths.findTomEELibJar(prefix);
            if (file != null) {
                try {
                    urls.add(file.toURI().toURL());
                } catch (final MalformedURLException e) {
                    // ignored
View Full Code Here

Examples of org.apache.tomee.installer.Paths

        // install conf/openejb.xml and conf/logging.properties files
        final String openejbWarDir = properties.getProperty("tomee.war");
        if (openejbWarDir != null) {

            final Paths paths = new Paths(new File(openejbWarDir));
            if (paths.verify()) {
                final Installer installer = new Installer(paths);
                if (installer.getStatus() != Status.INSTALLED) {
                    installer.installConfigFiles(false);
                }
            }
View Full Code Here

Examples of org.apache.tomee.installer.Paths

        }
        return file.getPath();
    }

    public List<Map<String, String>> get() {
        final Paths paths = new Paths(openejbWarDir);
        final List<Map<String, String>> result = new ArrayList<Map<String, String>>();
        final Installer installer = new Installer(paths);
        result.add(Common.build("status", String.valueOf(installer.getStatus())));
        result.add(Common.build("isListenerInstalled", String.valueOf(Installer.isListenerInstalled())));
        result.add(Common.build("isAgentInstalled", String.valueOf(Installer.isAgentInstalled())));
        result.add(Common.build("catalinaConfDir", getSafePath(paths.getCatalinaConfDir())));
        result.add(Common.build("catalinaLibDir", getSafePath(paths.getCatalinaLibDir())));
        result.add(Common.build("catalinaBinDir", getSafePath(paths.getCatalinaBinDir())));
        result.add(Common.build("catalinaShFile", getSafePath(paths.getCatalinaShFile())));
        result.add(Common.build("catalinaBatFile", getSafePath(paths.getCatalinaBatFile())));
        result.add(Common.build("openEJBLibDir", getSafePath(paths.getOpenEJBLibDir())));
        result.add(Common.build("openEJBTomcatLoaderJar", getSafePath(paths.getOpenEJBTomcatLoaderJar())));
        result.add(Common.build("openEJBJavaagentJar", getSafePath(paths.getOpenEJBJavaagentJar())));
        result.add(Common.build("catalinaHomeDir", getSafePath(paths.getCatalinaHomeDir())));
        result.add(Common.build("catalinaBaseDir", getSafePath(paths.getCatalinaBaseDir())));
        result.add(Common.build("serverXmlFile", getSafePath(paths.getServerXmlFile())));
        return result;
    }
View Full Code Here

Examples of org.apache.tomee.installer.Paths

            result.add(Common.build(key, message));
        }
    }

    public List<Map<String, String>> execute() {
        final Paths paths = new Paths(openejbWarDir);
        final Installer installer = new Installer(paths);
        final List<Map<String, String>> result = new ArrayList<Map<String, String>>();
        if (org.apache.tomee.installer.Status.NONE.equals(installer.getStatus())) {
            paths.reset();
            installer.reset();
            paths.setCatalinaHomeDir(this.catalinaHome);
            paths.setCatalinaBaseDir(this.catalinaBase);
            paths.setServerXmlFile(this.serverXmlFile);
            if (paths.verify()) {
                installer.installAll();
            }
        }
        result.add(Common.build("status", String.valueOf(installer.getStatus())));
        setAlerts("errors", installer.getAlerts().getErrors(), result);
View Full Code Here

Examples of org.apache.tomee.installer.Paths

                System.setProperty("catalina.home", openejbHome.getAbsolutePath());
                System.setProperty("catalina.base", openejbHome.getAbsolutePath());

                System.setProperty("openejb.deploymentId.format", System.getProperty("openejb.deploymentId.format", "{appId}/{ejbJarId}/{ejbName}"));

                final Paths paths = new Paths(webapp);
                installer = new Installer(paths, true);
                if (!configuration.isUseInstallerServlet()) {
                    installer.installAll();

                }
View Full Code Here

Examples of org.apache.tomee.installer.Paths

                }
            }
        }

        // from prefix
        final Paths paths = new Paths(new File(System.getProperty("openejb.home"))); // parameter is useless
        for (String prefix : PREFIXES_TO_ADD) {
            final File file = paths.findTomEELibJar(prefix);
            if (file != null) {
                try {
                    urls.add(file.toURI().toURL());
                } catch (MalformedURLException e) {
                    // ignored
View Full Code Here

Examples of org.apache.tomee.installer.Paths

        // install conf/openejb.xml and conf/logging.properties files
        String openejbWarDir = properties.getProperty("tomee.war");
        if (openejbWarDir != null) {

            Paths paths = new Paths(new File(openejbWarDir));
            if (paths.verify()) {
                Installer installer = new Installer(paths);
                if (installer.getStatus() != Status.INSTALLED) {
                    installer.installConfigFiles();
                }
            }
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.