package com.atlassian.maven.plugins.amps;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.jfrog.maven.annomojo.annotations.MojoGoal;

@MojoGoal("compress-resources")
public class CompressResourcesMojo extends AbstractAmpsMojo
{
    public void execute() throws MojoExecutionException, MojoFailureException
    {
        getMavenGoals().compressResources();
    }
}

@@ -202,231 +202,796 @@
 al;%0A
-%0A@MojoGoal(%22compress-resources%22)%0Apublic class CompressResourcesMojo extends AbstractAmpsMojo%0A%7B%0A    public void execute() throws MojoExecutionException, MojoFailureException%0A    %7B%0A        getMavenGoals().compressResources();
+import org.jfrog.maven.annomojo.annotations.MojoParameter;%0A%0A/**%0A * Compresses JavaScript resources with the YUI compressor Maven plugin.  Creates compressed versions of all%0A * JavaScript resources by attaching the '-min' suffix.%0A *%0A * @since 3.2%0A */%0A@MojoGoal(%22compress-resources%22)%0Apublic class CompressResourcesMojo extends AbstractAmpsMojo%0A%7B%0A    /**%0A     * Whether to compress the resources or not.  Defaults to true.%0A     */%0A    @MojoParameter(defaultValue = %22true%22)%0A    private boolean compressResources;%0A%0A    public void execute() throws MojoExecutionException, MojoFailureException%0A    %7B%0A        if (compressResources)%0A        %7B%0A            getMavenGoals().compressResources();%0A        %7D%0A        else%0A        %7B%0A            getLog().debug(%22Compressing resources disabled%22);%0A        %7D
 %0A   

Allow resource compression to be disabled