de.enough.polish.obfuscate
Class AntCallObfuscator
java.lang.Object
de.enough.polish.Extension
de.enough.polish.obfuscate.Obfuscator
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:
polish.obfuscate.source: the source JAR file (which is not obfuscated)
polish.obfuscate.target: the target JAR file (which should be generated)
polish.obfuscate.bootclasspath: the boot class path
polish.obfuscate.classpath: the class path
polish.obfuscate.keepcount: the number of classes that should be kept
polish.obfuscate.keep: a comma separated list of classnames that should be kept/not obfuscated
polish.obfuscate.keep.0..polish.obfuscate.keep.[keepcount-1]: each class name that should be kept in a single Ant property
Copyright Enough Software 2005
history
22-May-2005 - rob creation
- Author:
- Robert Virkus, j2mepolish@enough.de
| 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 |
AntCallObfuscator
public AntCallObfuscator()
- Creates a new obfuscator.
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 devicesourceFile - The jar-file containing the projects classestargetFile - The file to which the obfuscated classes should be copied topreserve - 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)