public class DeploymentPreprocessor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTAINER_FILE |
static String |
CONTAINER_FILE_COMPAT |
static String |
FRAGMENT_FILE |
Constructor and Description |
---|
DeploymentPreprocessor(File dir) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectXMLFragments(ContainerDescriptor cd,
File file) |
protected ContainerDescriptor |
getContainer(File home,
File file)
Reads a container fragment metadata file and returns the container descriptor.
|
protected ContainerDescriptor |
getDefaultContainer(File directory) |
protected FragmentDescriptor |
getDirectoryFragment(File directory) |
protected String |
getJarArtifactName(String name) |
protected FragmentDescriptor |
getJARFragment(File file) |
static String |
getRelativeChildPath(String parent,
String child) |
ContainerDescriptor |
getRootContainer() |
protected String |
getSymbolicName(File file) |
protected FragmentDescriptor |
getXMLFragment(File file) |
void |
init() |
protected void |
init(ContainerDescriptor cd) |
protected void |
init(ContainerDescriptor cd,
File dir) |
protected void |
init(ContainerDescriptor cd,
File[] files) |
void |
init(File metadata,
File[] files) |
protected void |
initContextProperties(CommandContext ctx) |
protected static String |
listFragmentDescriptor(FragmentDescriptor fd) |
static void |
main(String[] args) |
void |
predeploy() |
protected static void |
predeploy(ContainerDescriptor cd) |
protected static void |
printInfo(FragmentRegistry fragments) |
static void |
process(File home,
File metadata,
File[] files)
Run preprocessing in the given home directory and using the given list of bundles.
|
protected void |
processBundleForCompat(FragmentDescriptor fd,
File file) |
protected void |
processFile(ContainerDescriptor cd,
File file) |
protected void |
processManifest(FragmentDescriptor fd,
String fileName,
Manifest mf) |
public static final String FRAGMENT_FILE
public static final String CONTAINER_FILE
public static final String CONTAINER_FILE_COMPAT
public DeploymentPreprocessor(File dir)
public ContainerDescriptor getRootContainer()
public void init() throws IOException
IOException
public void init(File metadata, File[] files) throws IOException
IOException
protected void init(ContainerDescriptor cd) throws IOException
IOException
protected void initContextProperties(CommandContext ctx)
protected void processFile(ContainerDescriptor cd, File file) throws IOException
IOException
protected String getSymbolicName(File file)
protected String getJarArtifactName(String name)
protected void init(ContainerDescriptor cd, File[] files) throws IOException
IOException
protected void init(ContainerDescriptor cd, File dir) throws IOException
IOException
public void predeploy() throws IOException
IOException
protected static String listFragmentDescriptor(FragmentDescriptor fd)
protected static void printInfo(FragmentRegistry fragments)
protected static void predeploy(ContainerDescriptor cd) throws IOException
IOException
protected FragmentDescriptor getXMLFragment(File file) throws IOException
IOException
protected void collectXMLFragments(ContainerDescriptor cd, File file) throws IOException
IOException
protected void processBundleForCompat(FragmentDescriptor fd, File file)
protected FragmentDescriptor getDirectoryFragment(File directory) throws IOException
IOException
protected FragmentDescriptor getJARFragment(File file) throws IOException
IOException
protected void processManifest(FragmentDescriptor fd, String fileName, Manifest mf)
protected ContainerDescriptor getContainer(File home, File file) throws IOException
IOException
protected ContainerDescriptor getDefaultContainer(File directory) throws IOException
IOException
public static String getRelativeChildPath(String parent, String child)
public static void process(File home, File metadata, File[] files) throws IOException
The metadata file is the metadat file to be used to configure the processor. If null the default location will be
used (relative to home): CONTAINER_FILE
.
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2018 Nuxeo. All rights reserved.