com.samskivert.BuildDeviceMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of monotouch-maven-plugin Show documentation
Show all versions of monotouch-maven-plugin Show documentation
A Maven plugin for building a MonoTouch project and deploying it to iOS simulator or device.
The newest version!
//
// monotouch-maven-plugin - builds and deploys MonoTouch projects
// http://github.com/samskivert/monotouch-maven-plugin/blob/master/LICENSE
package com.samskivert;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
/**
* Goal which builds the project for an iOS device.
*/
@Mojo(name="build-device", defaultPhase=LifecyclePhase.NONE,
requiresDependencyResolution=ResolutionScope.COMPILE_PLUS_RUNTIME)
public class BuildDeviceMojo extends MonoTouchMojo
{
/**
* The the build profile to use when building for the device.
*/
@Parameter(property="device.build", defaultValue="Release")
public String build;
public void execute () throws MojoExecutionException {
build(build, DEVICE);
}
protected static final String DEVICE = "iPhone";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy