1 package com.atlassian.maven.plugins.amps;
2
3 import com.atlassian.maven.plugins.amps.util.FileUtils;
4 import org.apache.maven.plugin.MojoExecutionException;
5 import org.apache.maven.plugin.MojoFailureException;
6 import org.jfrog.maven.annomojo.annotations.MojoGoal;
7
8 import java.io.File;
9
10
11
12
13
14
15
16 @MojoGoal("create-home-zip")
17 public class CreateHomeZipMojo extends AbstractProductAwareMojo {
18
19 public void execute() throws MojoExecutionException, MojoFailureException {
20 final File appDir = FileUtils.file(getMavenContext().getProject().getBuild().getDirectory(),getProductId());
21 final File homeDir = new File(appDir, "home");
22 final File zipFile = new File(appDir, "generated-test-resources.zip");
23
24 getMavenGoals().createHomeResourcesZip(homeDir, zipFile, getProductId());
25 }
26 }