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 (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() != Installer.Status.INSTALLED) {
                    installer.installConfigFiles();
                }
            }
View Full Code Here

Examples of org.apache.tomee.installer.Paths

        final String path = Application.getInstance().getRootPath();
        File openejbWarDir = null;
        if (path != null) {
            openejbWarDir = new File(path);
        }
        final Paths paths = new Paths(openejbWarDir);
        final Installer installer = new Installer(paths);

        final Map<String, Object> json = new HashMap<String, Object>();

        if (Installer.Status.NONE.equals(installer.getStatus())) {
            paths.reset();
            installer.reset();

            if (Boolean.valueOf(String.valueOf(params.get("auto")))) {
                paths.setCatalinaHomeDir(System.getProperty("catalina.home"));
                paths.setCatalinaBaseDir(System.getProperty("catalina.base"));
                paths.setServerXmlFile(System.getProperty("catalina.base") + "/conf/server.xml");
            } else {
                paths.setCatalinaHomeDir((String) params.get("catalina-home"));
                paths.setCatalinaBaseDir((String) params.get("catalina-base"));
                paths.setServerXmlFile((String) params.get("catalina-server-xml"));
            }

            if (paths.verify()) {
                installer.installAll();
            }
        }
        json.put("status", installer.getStatus());
        json.put("errors", installer.getAlerts().getErrors());
View Full Code Here

Examples of org.apache.tomee.installer.Paths

        final String path = Application.getInstance().getRootPath();
        File openejbWarDir = null;
        if (path != null) {
            openejbWarDir = new File(path);
        }
        final Paths paths = new Paths(openejbWarDir);

        final Map<String, Object> json = new HashMap<String, Object>();
        json.put("isListenerInstalled", Installer.isListenerInstalled());
        json.put("isAgentInstalled", Installer.isAgentInstalled());


        final Map<String, String> strPaths = new HashMap<String, String>();
        strPaths.put("catalina-conf", getSafePath(paths.getCatalinaConfDir()));
        strPaths.put("catalina-lib", getSafePath(paths.getCatalinaLibDir()));
        strPaths.put("catalina-bin", getSafePath(paths.getCatalinaBinDir()));
        strPaths.put("catalina-catalina-sh", getSafePath(paths.getCatalinaShFile()));
        strPaths.put("catalina-catalina-bat", getSafePath(paths.getCatalinaBatFile()));
        strPaths.put("openEJB-lib", getSafePath(paths.getOpenEJBLibDir()));
        strPaths.put("openEJB-loader-jar", getSafePath(paths.getOpenEJBTomcatLoaderJar()));
        strPaths.put("openEJB-javaagent-jar", getSafePath(paths.getOpenEJBJavaagentJar()));


        final Map<String, String> strMainPaths = new HashMap<String, String>();
        strMainPaths.put("catalina-home", getSafePath(paths.getCatalinaHomeDir()));
        strMainPaths.put("catalina-base", getSafePath(paths.getCatalinaBaseDir()));
        strMainPaths.put("catalina-server-xml", getSafePath(paths.getServerXmlFile()));

        json.put("paths", strPaths);
        json.put("mainPaths", strMainPaths);

        final Installer installer = new Installer(paths);
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", "{appId}/{ejbJarId}/{ejbName}");

                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() != Installer.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", "{appId}/{ejbJarId}/{ejbName}");

                Paths paths = new Paths(webapp);
                Installer installer = new Installer(paths, true);
                installer.installAll();
            }

            Files.assertDir(openejbHome);
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() != Installer.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", "{appId}/{ejbJarId}/{ejbName}");

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

                }
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.