@Mojo(name="dex", defaultPhase=PREPARE_PACKAGE, requiresDependencyResolution=COMPILE) public class DexMojo extends AbstractAndroidMojo
aaptExtraArgs, aaptVerbose, adbConnectionTimeout, androidManifestFile, assetsDirectory, attachJar, attachSources, combinedAssets, configurations, customPackage, dependencyGraphBuilder, destinationManifestFile, device, devices, deviceThreads, ENV_ANDROID_HOME, ENV_ANDROID_NDK_HOME, execution, extractedDependenciesDirectory, extractedDependenciesJavaResources, extractedDependenciesJavaSources, finalName, genDirectory, generateApk, ips, nativeLibrariesDirectory, ndkOutputDirectory, proguardFile, project, projectHelper, projectOutputDirectory, release, renameManifestPackage, resourceDirectory, resourceOverlayDirectories, resourceOverlayDirectory, resources, session, sourceDirectory, sourceEncoding, SUPPORTED_PACKAGING_TYPES, targetDirectory, undeployBeforeDeploy
Constructor and Description |
---|
DexMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDirectory(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
File directory,
String prefix)
Adds a directory to a
JarArchiver with a directory prefix. |
protected void |
addJavaResource(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
org.apache.maven.model.Resource javaResource)
Adds a Java Resources directory (typically "src/main/resources") to a
JarArchiver . |
protected void |
addJavaResources(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
List<org.apache.maven.model.Resource> javaResources) |
protected File |
createApkSourcesFile() |
protected String |
endWithSlash(String prefix)
Makes sure the string ends with "/"
|
void |
execute() |
copyFolder, deployApk, deployBuiltApk, deployDependencies, doWithDevices, extractInstrumentationRunnerFromAndroidManifest, extractPackageNameFromAndroidArtifact, extractPackageNameFromAndroidManifest, extractPackageNameFromAndroidManifestXmlTree, extractPackageNameFromApk, getAndroidManifestPackageName, getAndroidNdk, getAndroidSdk, getArtifactResolverHelper, getDependencyResolver, getDirectDependencyArtifacts, getJack, getLibraryUnpackDirectory, getNativeHelper, getRelevantCompileArtifacts, getResourceOverlayDirectories, getTransitiveDependencyArtifacts, getTransitiveDependencyArtifacts, getUnpackedAarClassesJar, getUnpackedApkLibSourceFolder, getUnpackedLibAssetsFolder, getUnpackedLibFolder, getUnpackedLibHelper, getUnpackedLibNativesFolder, getUnpackedLibResourceFolder, getUnpackedLibsDirectory, initAndroidDebugBridge, isAPKBuild, isInstrumentationTest, resolveArtifactToFile, undeployApk, undeployApk, waitForInitialDeviceList
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected File createApkSourcesFile() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected String endWithSlash(String prefix)
prefix
- any string, or null.protected void addDirectory(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, File directory, String prefix)
JarArchiver
with a directory prefix.jarArchiver
- directory
- The directory to add.prefix
- An optional prefix for where in the Jar file the directory's contents should go.protected void addJavaResources(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, List<org.apache.maven.model.Resource> javaResources)
jarArchiver
- javaResources
- protected void addJavaResource(org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, org.apache.maven.model.Resource javaResource)
JarArchiver
.jarArchiver
- javaResource
- The Java resource to add.Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.