public abstract class CommonHandler extends Object implements NodeElementProcessor
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationNode |
applicationNode |
| Constructor and Description |
|---|
CommonHandler(ApplicationNode applicationNode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createDriver(org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
File packageFolder,
Map<String,String> replacements,
String driverName) |
protected void |
createDrivers(org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
File packageFolder,
Map<String,String> replacements) |
protected void |
createEquinox(File sourceBase,
File packageFolder,
Map<String,String> replacements,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected abstract String |
getBaseFolderName() |
protected File |
getPackageFolder(org.eclipse.core.resources.IFolder nodeDir) |
String |
getPackageName() |
protected abstract void |
handleProcess(org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
Map<String,String> properties) |
protected Set<String> |
makeDriverList() |
protected Set<String> |
makeEquinoxList() |
protected boolean |
needP2() |
protected void |
patchProfile(String name,
File file)
Inject the CA bootstrap property to the profile
|
void |
process(String phase,
org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
Map<String,String> properties)
Process a node
|
protected void |
processDriver(org.eclipse.core.runtime.IProgressMonitor monitor,
File packageFolder,
Map<String,String> replacements,
String driverName,
File sourceDir,
File driverDir) |
protected void |
processEquinox(File sourceBase,
File packageFolder,
Map<String,String> replacements,
org.eclipse.core.runtime.IProgressMonitor monitor,
String name) |
protected final ApplicationNode applicationNode
public CommonHandler(ApplicationNode applicationNode)
public void process(String phase, org.eclipse.core.resources.IFolder nodeDir, org.eclipse.core.runtime.IProgressMonitor monitor, Map<String,String> properties) throws Exception
NodeElementProcessor
A processor should only do stuff it is supposed to do for the phase that
is is called. If the phase is null it should do all its
stuff at the same time.
process in interface NodeElementProcessorphase - the phase the processor should handle, or nullnodeDir - the base directory for outputmonitor - the monitorproperties - global properties that miay influence the processingException - if anything goes wrongprotected abstract void handleProcess(org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
Map<String,String> properties)
throws Exception
Exceptionprotected abstract String getBaseFolderName()
public String getPackageName()
protected File getPackageFolder(org.eclipse.core.resources.IFolder nodeDir)
protected void createDrivers(org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
File packageFolder,
Map<String,String> replacements)
throws IOException,
Exception
IOExceptionExceptionprotected void createDriver(org.eclipse.core.resources.IFolder nodeDir,
org.eclipse.core.runtime.IProgressMonitor monitor,
File packageFolder,
Map<String,String> replacements,
String driverName)
throws IOException,
Exception
IOExceptionExceptionprotected void processDriver(org.eclipse.core.runtime.IProgressMonitor monitor,
File packageFolder,
Map<String,String> replacements,
String driverName,
File sourceDir,
File driverDir)
throws IOException,
Exception
IOExceptionExceptionprotected boolean needP2()
protected void createEquinox(File sourceBase, File packageFolder, Map<String,String> replacements, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception
Exceptionprotected void processEquinox(File sourceBase, File packageFolder, Map<String,String> replacements, org.eclipse.core.runtime.IProgressMonitor monitor, String name) throws IOException, Exception, FileNotFoundException
protected void patchProfile(String name, File file) throws IOException
file - the profile.xml file in the debian package targetIOException