de.enough.polish.obfuscate
Class AntCallObfuscator

java.lang.Object
  extended by de.enough.polish.Extension
      extended by de.enough.polish.obfuscate.Obfuscator
          extended by de.enough.polish.obfuscate.AntCallObfuscator

public class AntCallObfuscator
extends Obfuscator

Call another Ant target for obfuscating.

Within the target you can use following Ant properties:

Copyright Enough Software 2005

 history
        22-May-2005 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Field Summary
 
Fields inherited from class de.enough.polish.obfuscate.Obfuscator
libDir, libraryManager, project, setting, SYMBOL_ENVIRONMENT_HAS_BEEN_OBFUSCATED, VARIABLE_DYNAMIC_KEEP_CLASSES
 
Fields inherited from class de.enough.polish.Extension
antProject, autoStartCondition, environment, extensionDefinition, extensionManager, extensionSetting, extensionTypeDefinition, isBuildStarted
 
Constructor Summary
AntCallObfuscator()
          Creates a new obfuscator.
 
Method Summary
 void obfuscate(Device device, File sourceFile, File targetFile, String[] preserve, org.apache.tools.ant.types.Path bootClassPath)
          Obfuscates a jar-file for the given device.
 void setParameters(Variable[] properties, File baseDir)
           
 
Methods inherited from class de.enough.polish.obfuscate.Obfuscator
execute, getClassPath, getInstance, getSetting, init
 
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

AntCallObfuscator

public AntCallObfuscator()
Creates a new obfuscator.

Method Detail

obfuscate

public void obfuscate(Device device,
                      File sourceFile,
                      File targetFile,
                      String[] preserve,
                      org.apache.tools.ant.types.Path bootClassPath)
               throws BuildException
Description copied from class: Obfuscator
Obfuscates a jar-file for the given device.

Specified by:
obfuscate in class Obfuscator
Parameters:
device - The J2ME device
sourceFile - The jar-file containing the projects classes
targetFile - The file to which the obfuscated classes should be copied to
preserve - All names of classes which should be preserved, that means not renamed or removed.
bootClassPath - A path to the library containing either the MIDP1.0 or MIDP2.0 environment.
Throws:
BuildException - when the obfuscation failed

setParameters

public void setParameters(Variable[] properties,
                          File baseDir)