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 java.io.File;
19
20 import org.apache.maven.plugins.annotations.Parameter;
21
22 /**
23 * Configuration for an Android SDK. Only receives config parameter values, and there is no logic in here. Logic is in
24 * {@link com.simpligility.maven.plugins.android.AndroidSdk}.
25 *
26 * @author hugo.josefson@jayway.com
27 */
28 public class Sdk
29 {
30
31 /**
32 * Directory of the installed Android SDK, for example <code>/opt/android-sdk-linux_x86-1.5_r1</code>
33 */
34 @Parameter ( property = "android.sdk.path", required = true )
35 private File path;
36
37 /**
38 * <p>Chosen platform version. Valid values are whichever platforms are available in the SDK, under the directory
39 * <code>platforms</code>. Defaults to the highest available one if not set.</p>
40 * <p>Note: this parameter is just the version number, without <code>"android-"</code> in the
41 * beginning.</p>
42 */
43 @Parameter ( property = "android.sdk.platform" )
44 private String platform;
45
46 /**
47 * <p>Chosen Build-Tools version. Valid values are whichever build-tools are available in the SDK,
48 * under the directory <code>buildTools</code>. Defaults to the latest available one if not set.</p>
49 */
50 @Parameter ( property = "android.sdk.buildTools" )
51 private String buildTools;
52
53 public File getPath()
54 {
55 return path;
56 }
57
58 public String getPlatform()
59 {
60 return platform;
61 }
62
63 public String getBuildTools()
64 {
65 return buildTools;
66 }
67 }