public void execute()

in src/main/java/org/apache/maven/plugin/doap/DoapMojo.java [398:431]


    public void execute() throws MojoExecutionException {
        if (skip) {
            getLog().info("Skipping DOAP generation");
            return;
        }

        // single artifact
        if (artifact != null) {
            MavenProject givenProject = getMavenProject(artifact);
            if (givenProject != null) {
                File outDir = new File(outputDirectory);
                if (!outDir.isAbsolute()) {
                    outDir = new File(project.getBasedir(), outputDirectory);
                }
                File outFile = new File(outDir, artifact.getDoapFileName());
                writeDoapFile(givenProject, outFile);
                return;
            }
        }

        // current project
        File outFile = new File(doapFile);
        if (!outFile.isAbsolute()) {
            outFile = new File(project.getBasedir(), doapFile);
        }
        if (!doapFile.replaceAll("\\\\", "/").contains("/")) {
            File outDir = new File(outputDirectory);
            if (!outDir.isAbsolute()) {
                outDir = new File(project.getBasedir(), outputDirectory);
            }
            outFile = new File(outDir, doapFile);
        }
        writeDoapFile(project, outFile);
    }