1 /**
2 * Pyx4me framework
3 * Copyright (C) 2006-2008 pyx4j.com.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing,
12 * software distributed under the License is distributed on an
13 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 * KIND, either express or implied. See the License for the
15 * specific language governing permissions and limitations
16 * under the License.
17 *
18 * @author vlads
19 * @version $Id: GammuDeploy2tMojo.java 2066 2008-06-21 23:16:18Z vlads $
20 */
21 package com.pyx4me.maven.gammu;
22
23 import org.apache.maven.plugin.MojoExecutionException;
24 import org.apache.maven.plugin.MojoFailureException;
25
26 /**
27 *
28 * Handy shortcut for "gammu:deploy -Dgammu.c=2 -Dgammu.classifier=test" if you
29 * have multiple phones Use configuration 2 for application installation.
30 *
31 * @author vlads
32 *
33 * @goal d2t
34 * @description Handy shorcut for gammu:deploy if you have multiple phones, Use
35 * configuration 2
36 */
37
38 public class GammuDeploy2tMojo extends GammuDeployMojo {
39
40 /**
41 * Specifies specifies which config section to use.
42 *
43 * @parameter default-value="2"
44 */
45 protected String confign = "2";
46
47 /**
48 * Classifier to added to the artifact generated.
49 *
50 * @parameter expression="test"
51 * @required
52 */
53 protected String classifier;
54
55 public void execute() throws MojoExecutionException, MojoFailureException {
56 super.confign = confign;
57 super.classifier = classifier;
58 super.execute();
59 }
60 }