1 package com.atlassian.maven.plugins.amps.util;
2
3 import com.atlassian.maven.plugins.amps.MavenContext;
4
5 import static com.atlassian.maven.plugins.amps.util.FileUtils.file;
6
7 /**
8 * Utility methods dealing with Maven projects
9 *
10 * @since 3.3
11 */
12 public class ProjectUtils
13 {
14
15 /**
16 * @return If the test jar should be built based on atlassian-plugin.xml residing in src/test/resources
17 */
18 public static boolean shouldDeployTestJar(MavenContext context)
19 {
20 return file(context.getProject().getBuild().getTestOutputDirectory(), "atlassian-plugin.xml").exists();
21 }
22 }