@@ -0,0 +1,1881 @@
+/**%0A * Copyright Notice%0A *%0A * This is a work of the U.S. Government and is not subject to copyright%0A * protection in the United States. Foreign copyrights may apply.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage gov.va.isaac.mojos.changesets;%0A%0Aimport gov.va.isaac.config.changesets.ChangesetProcessor;%0Aimport java.io.File;%0Aimport org.apache.maven.plugin.AbstractMojo;%0Aimport org.apache.maven.plugin.MojoExecutionException;%0A%0A/**%0A * Goal which recursively processes any changeset (*.eccs) files found in the specified folder.%0A * %0A * @goal process-changesets%0A * @phase compile%0A */%0A%0Apublic class ProcessChangesets extends AbstractMojo%0A%7B%0A%0A%09/**%0A%09 * The location of the (already existing) profiles folder which contains changesets to process%0A%09 * %0A%09 * @parameter%0A%09 * @required%0A%09 */%0A%09File userProfileFolderLocation = null;%0A%0A%09/**%0A%09 * @throws MojoExecutionException%0A%09 */%0A%09public ProcessChangesets() throws MojoExecutionException%0A%09%7B%0A%09%09super();%0A%09%7D%0A%0A%09@Override%0A%09public void execute() throws MojoExecutionException%0A%09%7B%0A%09%09try%0A%09%09%7B%0A%09%09%09getLog().info(%22Processing %22 + userProfileFolderLocation.getAbsolutePath() + %22 for changesets%22);%0A%09%09%09ChangesetProcessor.processChangeSets(userProfileFolderLocation);%0A%09%09%09getLog().info(%22Done Processing changesets%22);%0A%09%09%7D%0A%09%09catch (Exception e)%0A%09%09%7B%0A%09%09%09throw new MojoExecutionException(%22Unexpected error configuring SCM for the profiles%22, e);%0A%09%09%7D%0A%09%7D%0A%7D%0A

add mojo for processing changesets during build