All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jlgrock.javascriptframework.sourcearchive.JavaScriptTestSourceArchiveMojo Maven / Gradle / Ivy

package com.github.jlgrock.javascriptframework.sourcearchive;

import org.apache.maven.project.MavenProject;

/**
 * This Mojo will zip everything in the declared source directory into
 * a Source Archive file, which will be stored into the local
 * repository.
 * 
 * @author Justin Grant
 * @requiresProject
 * @goal js-test-source-archive
 * @phase package
 * @inheritByDefault false
 * @threadSafe
 */
public class JavaScriptTestSourceArchiveMojo extends AbstractSourceArchiveMojo {

	/**
	 * The resource to assemble with.
	 */
	public static final String DESCRIPTOR_RESOURCE_NAME = "js-src-assembly.xml";
	
    /**
     * @parameter default-value="${project}"
     * @required
     * @readonly
     */
    private MavenProject project;

    @Override
    public final MavenProject getProject() {
        return project;
    }

    @Override
    protected final String getDescriptorResourceName() {
		return DESCRIPTOR_RESOURCE_NAME;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy