View Javadoc

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: ObexDeploy3Mojo.java 2873 2008-12-27 00:57:36Z vlads $
20   */
21  package com.pyx4me.maven.obex;
22  
23  import org.apache.maven.plugin.MojoExecutionException;
24  import org.apache.maven.plugin.MojoFailureException;
25  
26  /**
27   * Handy shortcut for "obex -Dobex.c=3" if you have multiple phones Use
28   * configuration 3 for application installation.
29   * 
30   * @author vlads
31   * 
32   * @goal d3
33   * @description Handy shortcut for obex:deploy if you have multiple phones, Use
34   *              configuration 3
35   */
36  public class ObexDeploy3Mojo extends ObexDeployMojo {
37  
38  	/**
39  	 * Specifies optional suffix for server ID to use.
40  	 * 
41  	 * @parameter expression="${obex.c}" default-value="3"
42  	 */
43  	protected String serverSufix = "3";
44  
45  	public void execute() throws MojoExecutionException, MojoFailureException {
46  		super.serverSufix = this.serverSufix;
47  		super.execute();
48  	}
49  
50  }