|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.Extension
de.enough.polish.postcompile.PostCompiler
public abstract class PostCompiler
Is the base class for any custom post compilers.
Custom post compilers can modify the bytecode of an application before the application is obfuscated and then preverified.
Copyright Enough Software 2005
history
24-Mar-2005 - rob creation
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.Extension |
|---|
antProject, autoStartCondition, environment, extensionDefinition, extensionManager, extensionSetting, extensionTypeDefinition, isBuildStarted |
| Constructor Summary | |
|---|---|
protected |
PostCompiler()
Creates a new instance of a custom post compiler. |
| Method Summary | |
|---|---|
void |
execute(Device device,
Locale locale,
Environment env)
Executes this extension. |
protected ArrayList |
findFiles(File classesDir,
FilenameFilter filter)
Helper method to find all files to post compile in a given directory and all its subdirectories. |
static PostCompiler |
getInstance(PostCompilerSetting postCompilerSetting,
ExtensionManager manager,
Environment environment)
Retrieves a new PostCompiler |
PostCompilerSetting |
getSetting()
Retrieves the settings for this post compiler. |
abstract void |
postCompile(File classesDir,
Device device)
Postcompiles the project for the given target device. |
String |
verifyBootClassPath(Device device,
String bootClassPath)
Subclasses can override this method for setting a different bootclasspath for the current device. |
String |
verifyClassPath(Device device,
String classPath)
Subclasses can override this method for setting a different classpath for the current device. |
| Methods inherited from class de.enough.polish.Extension |
|---|
configure, executeAntTarget, executeAntTarget, finalize, getAntProject, getAutoStartCondition, getEnvironment, getExtensionDefinition, getExtensionSetting, getInstance, getParameterValue, getType, init, initialize, isConditionFulfilled, notifyBuildEnd, notifyBuildStart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PostCompiler()
| Method Detail |
|---|
public static PostCompiler getInstance(PostCompilerSetting postCompilerSetting,
ExtensionManager manager,
Environment environment)
throws BuildException
postCompilerSetting - the ant settingsmanager - the extension managerenvironment - the environment settings
BuildException - when the class could not be loaded or initialized
public void execute(Device device,
Locale locale,
Environment env)
throws BuildException
Extension
execute in class Extensiondevice - the current devicelocale - the current locale, can be nullenv - the environment/configuration
BuildException - when the execution failed
public abstract void postCompile(File classesDir,
Device device)
throws BuildException
classesDir - the directory that contains all compiled classesdevice - the current target device
BuildException - when post-compiling fails
public String verifyBootClassPath(Device device,
String bootClassPath)
device - the current devicebootClassPath - the current bootclasspath
public String verifyClassPath(Device device,
String classPath)
device - the current deviceclassPath - the current classpath
public PostCompilerSetting getSetting()
protected ArrayList findFiles(File classesDir,
FilenameFilter filter)
classesDir - the directory that contains all compiled classesfilter - the filter to apply on the file names, or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||