Package org.appfuse.tool

Examples of org.appfuse.tool.RenamePackages


            renamePackages = Boolean.valueOf(System.getProperty("renamePackages"));
        }

        if (renamePackages && !project.getPackaging().equals("pom")) {
            log("Renaming packages to '" + project.getGroupId() + "'...");
            RenamePackages renamePackagesTool = new RenamePackages(project.getGroupId());
            if (project.hasParent()) {
                renamePackagesTool.setBaseDir(project.getBasedir() + "/src");
            }

            renamePackagesTool.execute();
        }

        // when performing full-source on a modular project, add the properties to the root pom.xml at the end
        if (project.getPackaging().equals("war") && project.hasParent()) {
            // store sorted properties in a thread local for later retrieval
View Full Code Here


            renamePackages = Boolean.valueOf(System.getProperty("renamePackages"));
        }

        if (renamePackages && !project.getPackaging().equals("pom")) {
            log("Renaming packages to '" + project.getGroupId() + "'...");
            RenamePackages renamePackagesTool = new RenamePackages(project.getGroupId());
            if (project.hasParent()) {
                if (project.getPackaging().equals("jar")) {
                    renamePackagesTool.setBaseDir("core");
                } else {
                    renamePackagesTool.setBaseDir("web");
                }
            }

            renamePackagesTool.execute();
        }

        // todo: gather and add repositories from appfuse projects
        // should work for now since most artifacts are in static.appfuse.org/repository
View Full Code Here

public class AppFusePackageRefactorMojo extends HibernateExporterMojo {

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {

        RenamePackages tool = new RenamePackages(getProject().getGroupId());
        tool.execute();
       
    }
View Full Code Here

TOP

Related Classes of org.appfuse.tool.RenamePackages

Copyright © 2018 www.massapicom. 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.