public class FlexBuildArtifacts
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected WorkflowExecutionContext |
mContext |
protected static java.lang.String |
MISSING_FILE_MESSAGE_PREFIX |
Constructor and Description |
---|
FlexBuildArtifacts(WorkflowExecutionContext pWorkflowExecutionContext) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
calculateDirectoryHash(java.io.File dirToHash)
This is not common but during build all files in a folder are used to
calculate hash of entire folder.
|
protected java.lang.String |
calculateFileHash(java.io.File pFile)
This is most commonly used during build as most partial deployment
project work with individual files.
|
protected java.lang.String |
calculateHash(ProjectObject projectObject)
If isMetaDataOnlyProjectObject then we do not have enough details to
calculate hash, so just use System.currentTimeMillis in this case.
|
java.io.File |
checkFileInSource(java.lang.String pFile,
boolean pThrowException) |
protected java.io.File |
checkFolder(java.lang.String pTargetFolder) |
java.util.List<PackageObject> |
finalizePackageObjects(java.util.List<PackageObject> pPackageObjects,
boolean pZipObjects) |
java.util.List<PackageObject> |
generateZIPArtifact(java.util.List<PackageObject> pPackageObjects)
Utility for Partial Deployments.
|
WorkflowExecutionContext |
getContext() |
protected java.io.File |
getFile(java.lang.String pSourceFolder,
java.lang.String pFile) |
java.util.List<java.lang.String> |
getSourceDirectories() |
java.lang.String |
getTargetDirectory() |
java.lang.String |
getZipFileName() |
protected boolean |
includeObjectInZip(ProjectObject projectObject)
This is used by classes that extend it to determine if files should be included in the zip.
|
protected boolean |
isMetaDataOnlyProjectObject(ProjectObject pProjectObject) |
protected void |
prepareTempFileCollectionFolder(java.io.File pTempFileCollectionFolder)
Overridden by subclasses to add any files to the collection folder which should be part of the
zip even if they are not included
in package.
|
protected static final java.lang.String MISSING_FILE_MESSAGE_PREFIX
protected WorkflowExecutionContext mContext
public FlexBuildArtifacts(WorkflowExecutionContext pWorkflowExecutionContext)
public WorkflowExecutionContext getContext()
public java.lang.String getTargetDirectory()
public java.lang.String getZipFileName()
public java.util.List<java.lang.String> getSourceDirectories()
public java.util.List<PackageObject> generateZIPArtifact(java.util.List<PackageObject> pPackageObjects) throws FlexCheckedException
FlexCheckedException
public java.util.List<PackageObject> finalizePackageObjects(java.util.List<PackageObject> pPackageObjects, boolean pZipObjects) throws FlexCheckedException
FlexCheckedException
protected boolean includeObjectInZip(ProjectObject projectObject)
protected java.io.File checkFolder(java.lang.String pTargetFolder)
pTargetFolder
- the folder to check if it's a real folderprotected java.io.File getFile(java.lang.String pSourceFolder, java.lang.String pFile)
protected java.lang.String calculateDirectoryHash(java.io.File dirToHash) throws FlexCheckedException
FlexCheckedException
protected java.lang.String calculateFileHash(java.io.File pFile) throws FlexCheckedException
FlexCheckedException
protected java.lang.String calculateHash(ProjectObject projectObject)
public java.io.File checkFileInSource(java.lang.String pFile, boolean pThrowException)
protected boolean isMetaDataOnlyProjectObject(ProjectObject pProjectObject)
protected void prepareTempFileCollectionFolder(java.io.File pTempFileCollectionFolder) throws FlexCheckedException
FlexCheckedException