de.enough.polish.libraryprocessor
Class LibraryProcessor

java.lang.Object
  extended by de.enough.polish.Extension
      extended by de.enough.polish.libraryprocessor.LibraryProcessor

public abstract class LibraryProcessor
extends Extension

Processes binary libraries before they are compiled.

Copyright Enough Software 2009

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.Extension
antProject, autoStartCondition, environment, extensionDefinition, extensionManager, extensionSetting, extensionTypeDefinition, isBuildStarted
 
Constructor Summary
LibraryProcessor()
          Creates a new library processor
 
Method Summary
 void execute(Device device, Locale locale, Environment env)
          Executes this extension.
abstract  void processLibrary(File baseDir, String[] relativeClassPaths, Device device, Locale locale, Environment env)
          Processes a binary library
 
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

LibraryProcessor

public LibraryProcessor()
Creates a new library processor

Method Detail

execute

public void execute(Device device,
                    Locale locale,
                    Environment env)
             throws BuildException
Description copied from class: Extension
Executes this extension. Not all extension types are executed.

Specified by:
execute in class Extension
Parameters:
device - the current device
locale - the current locale, can be null
env - the environment/configuration
Throws:
BuildException - when the execution failed

processLibrary

public abstract void processLibrary(File baseDir,
                                    String[] relativeClassPaths,
                                    Device device,
                                    Locale locale,
                                    Environment env)
                             throws IOException
Processes a binary library

Parameters:
baseDir - the base directory
relativeClassPaths - an array of paths to class files of that library
device - the device
locale - the current locale
env - the environment
Throws:
IOException - when processing fails