4 This file is processed by the bin/SConsDoc.py module.
5 See its __doc__ string for a discussion of the format.
15 Builds one or more Java class files
16 from one or more source trees of <filename>.java</filename> files.
17 The class files will be placed underneath
18 the specified target directory.
19 SCons will parse each source <filename>.java</filename> file
21 (including inner classes)
22 defined within that file,
23 and from that figure out the
24 target <filename>.class</filename> files that will be created.
25 SCons will also search each Java file
26 for the Java package name,
27 which it assumes can be found on a line
28 beginning with the string
29 <literal>package</literal>
31 the resulting <filename>.class</filename> files
32 will be placed in a directory reflecting
33 the specified package name.
36 <filename>Foo.java</filename>
37 defining a single public
38 <classname>Foo</classname>
40 containing a package name of
41 <classname>sub.dir</classname>
42 will generate a corresponding
43 <filename>sub/dir/Foo.class</filename>
49 env.Java(target = 'classes', source = 'src')
50 env.Java(target = 'classes', source = ['src1', 'src2'])
61 <cvar name="JAVACCOM">
63 The command line used to compile a directory tree containing
65 corresponding Java class files.
66 Any options specified in the &cv-link-JAVACFLAGS; construction variable
67 are included on this command line.
71 <cvar name="JAVACCOMSTR">
73 The string displayed when compiling
74 a directory tree of Java source files to
75 corresponding Java class files.
76 If this is not set, then &cv-link-JAVACCOM; (the command line) is displayed.
79 env = Environment(JAVACCOMSTR = "Compiling class files $TARGETS from $SOURCES")
84 <cvar name="JAVACFLAGS">
86 General options that are passed to the Java compiler.
90 <cvar name="JAVACLASSDIR">
92 The directory in which Java class files may be found.
93 This is stripped from the beginning of any Java .class
94 file names supplied to the
95 <literal>JavaH</literal>
100 <cvar name="JAVACLASSSUFFIX">
102 The suffix for Java class files;
103 <filename>.class</filename>
108 <cvar name="JAVASUFFIX">
110 The suffix for Java files;
111 <filename>.java</filename>