Sun Java Solaris Communities My SDN Account Join SDN
 
FAQ

Revision Control with the Wireless Toolkit

 
 



Question

How can I use a revision control system with the J2ME Wireless Toolkit?

When I create an SCCS, RCS, or CVS directory under /src and build the project, KToolBar tries to compile the delta files saved in those directories, and my project doesn't get built correctly.

Answer

You can set a property in the ktools.properties file to make KToolBar ignore revision control files.

On Windows systems the file is:
<j2mewtk.dir>\wtklib\Windows\ktools.properties

On Solaris systems the file is:
<j2mewtk.dir>/wtklib/SunOS/ktools.properties

Simply add this line to the file to turn on revision control filtering:

kvem.filterRevisionControl: true

This setting will prevent KToolBar from treating SCCS, RCS, and CVS files as source and resource files. Be sure to restart KToolBar after modifying the properties file.

A number of other properties can be set in ktools.properties. Here are a few of the most popular:

PropertyDefaultDescription
kvem.apps.dirappsMIDlet Application Directory
kvem.filterRevisionControlfalseFilter RCS/SCCS/CVS files
obfuscator.runner.class.namecom.sun.kvem.ktools.RunRetroObfuscator classname
obfuscator.runner.classpathwtklib/ktools.zipObfuscator class path
obfuscate.script.nameignore.rgsObfusctor script name

Resources

J2ME Wireless Toolkit Documentation
http://java.sun.com/j2me/docs/index.html#wireless_toolkit

Note: If you have a question to which you need an answer, try the Mobility Forums. You can read through the existing topics or register for your free Sun Developer Network membership and post new messages or threads. For more information, go to the Why Register page.

Back To Top