View Javadoc
1   /*
2    * Copyright (C) 2009 Jayway AB
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.simpligility.maven.plugins.android.configuration;
17  
18  import org.apache.maven.plugins.annotations.Parameter;
19  
20  /**
21   * Configuration for signing. Only receives config parameter values, and there is no logic in here. Logic is in
22   * {@link com.simpligility.maven.plugins.android.AndroidSigner}.
23   *
24   * @author hugo.josefson@jayway.com
25   */
26  public class Sign
27  {
28  
29      /**
30       * Whether to sign with the debug keystore. Valid values are:
31       * <ul>
32       * <li><code>true</code> = sign with the debug keystore.
33       * <li><code>false</code> = don't sign with the debug keystore.
34       * <li><code>auto</code> (default) = sign with debug keystore, unless another keystore is defined. (Signing with
35       * other keystores is not yet implemented. See
36       * <a href="http://code.google.com/p/maven-android-plugin/issues/detail?id=2">Issue 2</a>.)
37       * </ul>
38       */
39      @Parameter (  property = "android.sign.debug", defaultValue = "auto" )
40      private String debug;
41  
42      public String getDebug()
43      {
44          return debug;
45      }
46  }