net.jangaroo.jooc.mvnplugin.MavenSenchaProfileConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jangaroo-maven-plugin Show documentation
Show all versions of jangaroo-maven-plugin Show documentation
This plugin compiles Jangaroo sources to JavaScript.
package net.jangaroo.jooc.mvnplugin;
import com.google.common.collect.ImmutableList;
import net.jangaroo.jooc.mvnplugin.sencha.SenchaProfileConfiguration;
import org.apache.maven.plugins.annotations.Parameter;
import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.List;
public class MavenSenchaProfileConfiguration implements SenchaProfileConfiguration {
/**
* @see SenchaProfileConfiguration#getAdditionalCssNonBundle()
*/
@Parameter
private List additionalCssNonBundle;
/**
* @see SenchaProfileConfiguration#getAdditionalJsNonBundle()
*/
@Parameter
private List additionalJsNonBundle;
/**
* @see SenchaProfileConfiguration#getAdditionalCssIncludeInBundle()
*/
@Parameter
private List additionalCssIncludeInBundle;
/**
* @see SenchaProfileConfiguration#getAdditionalJsIncludeInBundle()
*/
@Parameter
private List additionalJsIncludeInBundle;
/**
* @see SenchaProfileConfiguration#getRequiredClasses()
*/
@Parameter
private List requiredClasses;
@Nonnull
@Override
public List getAdditionalCssNonBundle() {
return additionalCssNonBundle != null ? ImmutableList.copyOf(additionalCssNonBundle) : Collections.emptyList();
}
@Nonnull
@Override
public List getAdditionalJsNonBundle() {
return additionalJsNonBundle != null ? ImmutableList.copyOf(additionalJsNonBundle) : Collections.emptyList();
}
@Nonnull
@Override
public List getAdditionalCssIncludeInBundle() {
return additionalCssIncludeInBundle != null ? ImmutableList.copyOf(additionalCssIncludeInBundle) : Collections.emptyList();
}
@Nonnull
@Override
public List getAdditionalJsIncludeInBundle() {
return additionalJsIncludeInBundle != null ? ImmutableList.copyOf(additionalJsIncludeInBundle) : Collections.emptyList();
}
@Nonnull
@Override
public List getRequiredClasses() {
return requiredClasses == null ? Collections.emptyList() : requiredClasses;
}
}