Definition of the J2ME Polish Task

The J2ME Polish Task needs to be defined in the build.xml before it can be used:

<property 
	name="polish.home" 
	location="C:\Program Files\J2ME-Polish" />
	
<taskdef 
	name="j2mepolish" 
	classname="de.enough.polish.ant.PolishTask" 
	classpath="${polish.home}/lib/enough-j2mepolish-build.jar
		:${polish.home}/lib/jdom.jar" />
	

When not defined within the ${polish.home}/global.properties file, you should also define the Ant-property "wtk.home" which points to the directory containing the wireless toolkit:

<property 
	name="wtk.home" 
	location="C:\WTK2.5" />
	

On a system without the Wireless Toolkit (like Mac OS X) you can still use J2ME Polish by defining the mpp.home property (again, if not already defined in ${polish.home}/global.properties):

<property 
	name="mpp.home" 
	location="/Applications/mpp-sdk" />