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

org.mule.tools.maven.plugin.domain.AttachTestResourcesMojo Maven / Gradle / Ivy

The newest version!
/**
 * Mule ESB Maven Tools
 *
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.tools.maven.plugin.domain;

import org.apache.maven.model.Resource;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * @phase validate
 * @goal attach-test-resources
 */
public class AttachTestResourcesMojo extends AbstractMuleMojo
{
    public void execute() throws MojoExecutionException, MojoFailureException
    {
        String appFolder = this.appDirectory.getAbsolutePath();
        
        getLog().info("attaching test resource " + appFolder);

        Resource appFolderResource = new Resource();
        appFolderResource.setDirectory(appFolder);

        this.project.addTestResource(appFolderResource);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy