Package org.apache.syncope.installer.utilities

Examples of org.apache.syncope.installer.utilities.FileSystemUtils.writeToFile()


        handler.logOutput("Configure web.xml file according to " + selectedContainer + " properties", true);
        InstallLog.getInstance().info("Configure web.xml file according to " + selectedContainer + " properties");

        if (withDataSource) {
            fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH), CoreWebXml.
                    withDataSource());
            switch (selectedContainer) {
                case JBOSS:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH),
                            CoreWebXml.withDataSourceForJBoss());
View Full Code Here


        if (withDataSource) {
            fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH), CoreWebXml.
                    withDataSource());
            switch (selectedContainer) {
                case JBOSS:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH),
                            CoreWebXml.withDataSourceForJBoss());
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + PersistenceContextEMFactoryXml.PATH), PersistenceContextEMFactoryXml.FILE);
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + JBossDeploymentStructureXml.PATH),
View Full Code Here

                    withDataSource());
            switch (selectedContainer) {
                case JBOSS:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH),
                            CoreWebXml.withDataSourceForJBoss());
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + PersistenceContextEMFactoryXml.PATH), PersistenceContextEMFactoryXml.FILE);
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + JBossDeploymentStructureXml.PATH),
                            String.format(JBossDeploymentStructureXml.FILE, jbossJdbcModuleName));
                    break;
View Full Code Here

                case JBOSS:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + CoreWebXml.PATH),
                            CoreWebXml.withDataSourceForJBoss());
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + PersistenceContextEMFactoryXml.PATH), PersistenceContextEMFactoryXml.FILE);
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + JBossDeploymentStructureXml.PATH),
                            String.format(JBossDeploymentStructureXml.FILE, jbossJdbcModuleName));
                    break;
                case GLASSFISH:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + GlassfishCoreWebXml.PATH),
View Full Code Here

                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId
                            + JBossDeploymentStructureXml.PATH),
                            String.format(JBossDeploymentStructureXml.FILE, jbossJdbcModuleName));
                    break;
                case GLASSFISH:
                    fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + GlassfishCoreWebXml.PATH),
                            GlassfishCoreWebXml.withDataSource());
                    break;
            }
        }
View Full Code Here

        final MavenUtils mavenUtils = new MavenUtils(mavenDir, handler);
        mavenUtils.archetypeGenerate(
                syncopeVersion, groupId, artifactId, secretKey, anonymousKey, installPath);

        fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + Pom.PATH),
                String.format(Pom.FILE, syncopeVersion, syncopeVersion, groupId, artifactId));
        fileSystemUtils.createDirectory(confDirectory);
        fileSystemUtils.createDirectory(logsDirectory);
        fileSystemUtils.createDirectory(bundlesDirectory);
        mavenUtils.createPackage(installPath + "/" + artifactId, confDirectory, logsDirectory, bundlesDirectory);
View Full Code Here

                        PersistenceProperties.SQLSERVER, persistenceUrl, persistenceUser, persistencePassword));
                writeOrmFile(fileSystemUtils, OrmXml.SQLSERVER_ORM);
                break;
        }

        fileSystemUtils.writeToFile(new File(
                installPath + "/" + artifactId + PersistenceProperties.PATH), persistenceProperties.toString());

    }

    private void writeOrmFile(final FileSystemUtils fileSystemUtils, final String content) {
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.