|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.Configuration
public class Configuration
Allows to configure J2ME Polish programmatically.
You can start a configuration automatically by specifying the Ant property polish.build.configuration.class that contains the fully classified name of the configuration class and polish.build.configuration.path that contains classpath for the configuration class.
Copyright Enough Software 2007
history
Nov 15, 2007 - rob creation
| Field Summary | |
|---|---|
protected PolishTask |
polishTask
|
| Constructor Summary | |
|---|---|
Configuration()
|
|
| Method Summary | |
|---|---|
void |
abortBuild(String message)
Aborts the build process by throwing a BuildException with the specified message. |
void |
addLibrary(File path)
Adds a binary library to J2ME Polish. |
void |
addLibrary(String path,
Environment env)
Adds a binary library to J2ME Polish. |
void |
addSourceDir(String path,
Environment env)
Adds a source directory to the build path. |
void |
configure(PolishTask task,
Environment env)
Configures this configuration initially and allows the configuration to add J2ME Polish extensions etc. |
void |
postInitialize(Device device,
Locale locale,
Environment env)
Allows this configuration to add settings at the end of the initialization of a new build. |
void |
preInitialize(Device device,
Locale locale,
Environment env)
Allows this configuration to add settings at the start of the initialization of a new build. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PolishTask polishTask
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public void configure(PolishTask task,
Environment env)
task - the J2ME Polish taskenv - the environment
public void preInitialize(Device device,
Locale locale,
Environment env)
device - the current devicelocale - the current locale, can be nullenv - the environment
public void postInitialize(Device device,
Locale locale,
Environment env)
device - the current devicelocale - the current locale, can be nullenv - the environment
public void addLibrary(String path,
Environment env)
path - the path to the libraryenv - the environmentpublic void addLibrary(File path)
path - the path to the library
public void addSourceDir(String path,
Environment env)
path - the path to the source directoryenv - the environmentpublic void abortBuild(String message)
message - the message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||