public abstract class BasePackager extends Object implements Packager
| Modifier and Type | Field and Description |
|---|---|
protected PackagingRequest |
request |
| Constructor and Description |
|---|
BasePackager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyArtifactToLocation(org.apache.maven.artifact.Artifact artifact,
File target) |
protected List<String> |
getAdtCommand() |
protected void |
makeExecutableIfExists(File file) |
protected void |
makeSymlink(File source,
File target) |
boolean |
prepare()
Method to setup the work-directory as the adt packaging requires
a directory structure similar to the AIR sdk we only want to copy
and unpack stuff if it's not already there.
|
protected void |
runAdt(List<String> adtArgs) |
void |
setRequest(PackagingRequest request) |
protected void |
unpackArtifactToLocation(org.apache.maven.artifact.Artifact artifact,
File target) |
void |
validateConfiguration()
Method that allows implmenting platform dependant validation of the
configuration.
|
protected PackagingRequest request
public void setRequest(PackagingRequest request)
setRequest in interface Packagerpublic void validateConfiguration()
throws PackagingException
PackagervalidateConfiguration in interface PackagerPackagingExceptionpublic boolean prepare()
throws PackagingException
Packagerprepare in interface PackagerPackagingException - something went wrong.protected void runAdt(List<String> adtArgs) throws PackagingException
PackagingExceptionprotected void copyArtifactToLocation(org.apache.maven.artifact.Artifact artifact,
File target)
throws PackagingException
PackagingExceptionprotected void unpackArtifactToLocation(org.apache.maven.artifact.Artifact artifact,
File target)
throws PackagingException
PackagingExceptionprotected void makeExecutableIfExists(File file) throws PackagingException
PackagingExceptionprotected void makeSymlink(File source, File target) throws PackagingException
PackagingExceptionCopyright © 2008–2017 Sonatype, Inc.. All rights reserved.