1 package com.simpligility.maven.plugins.android.configuration;
2
3 import com.simpligility.maven.plugins.android.compiler.JackCompiler;
4 import java.util.Map;
5 import org.apache.maven.plugins.annotations.Parameter;
6 import org.apache.maven.project.MavenProject;
7
8 public class Jack
9 {
10
11 private Boolean enabled = false;
12
13 public Jack()
14 {
15 }
16
17 public Jack( Map pluginContext )
18 {
19 MavenProject project = ( MavenProject ) pluginContext.get( "project" );
20 mavenCompilerId = project.getProperties().getProperty( "maven.compiler.compilerId", "" );
21 }
22
23
24
25
26 @Parameter ( property = "maven.compiler.compilerId" , defaultValue = "" )
27 private String mavenCompilerId = "";
28
29 public Boolean isEnabled()
30 {
31 return enabled || mavenCompilerId.equals( JackCompiler.JACK_COMPILER_ID );
32 }
33
34
35 }