beautypg.com

1 setting the application directory, 2 setting the javac encoding property, 3 working with revision control systems – Sun Microsystems J2ME User Manual

Page 39: Setting the application directory, Setting the javac encoding property, Working with revision control systems

background image

Chapter 3

Working With Projects

27

3.7.1

Setting the Application Directory

By default, the J2ME Wireless Toolkit stores applications in directories under
{toolkit}

\apps

. You can change this by adding a line to

ktools.properties

of

the following form:

kvem.apps.dir:

Any backslash ('\') characters in the directory’s path should be preceded by
another backslash. Also, the directory’s path should not contain any spaces.

For example, to set the application directory to

D:\dev\midlets

, you would use:

kvem.apps.dir: D:\\dev\\midlets

3.7.2

Setting the javac Encoding Property

By default, the Java compiler uses the encoding set in the J2SE environment that
you are running. For information on how to override the default source file
encoding, see

Appendix C, “Internationalization

.”

3.7.3

Working with Revision Control Systems

Using the

filterRevisionControl

property, you can configure KToolbar to

recognize and ignore auxiliary files created by the SCCS, RCS and CVS revision
control systems.

To recognize and ignore auxiliary files, include the following line in

ktools.properties

:

kvem.filterRevisionControl: true

As a result, you prevent KToolbar from treating revision control files as source and
resource files. For example, KToolbar would treat a file named

src\SCCS\s.MyClass.java

as being an SCCS revision control file and not a Java

source file.