
org.mule.tools.maven.plugin.domain.AttachTestResourcesMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-domain-maven-plugin Show documentation
Show all versions of mule-domain-maven-plugin Show documentation
Provides a packaging target for building a Mule domain from a maven project
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