public void execute()

in core-it-support/core-it-plugins/maven-it-plugin-touch/src/main/java/org/apache/maven/plugin/coreit/CoreItTouchMojo.java [86:123]


    public void execute() throws MojoExecutionException {
        if (fail) {
            throw new MojoExecutionException(
                    "Failing per \'fail\' parameter" + " (specified in pom or system properties)");
        }

        File outDir = new File(outputDirectory);

        touch(outDir, "touch.txt");

        // This parameter should be aligned to the basedir as the parameter type is specified
        // as java.io.File
        if (!basedirAlignmentDirectory.isAbsolute()) {
            throw new MojoExecutionException("basedirAlignmentDirectory not aligned");
        }
        touch(basedirAlignmentDirectory, "touch.txt");

        // Test parameter setting
        if (pluginItem != null) {
            touch(outDir, pluginItem);
        }

        if (goalItem != null) {
            touch(outDir, goalItem);
        }

        if (artifactToFile != null) {
            Artifact artifact = pluginArtifacts.get(artifactToFile);

            File artifactFile = artifact.getFile();

            String filename = artifactFile.getAbsolutePath().replace('/', '_').replace(':', '_') + ".txt";

            touch(outDir, filename);
        }

        project.getBuild().setFinalName("coreitified");
    }