diff options
author | Steven Knight <knight@baldmt.com> | 2003-04-08 05:00:51 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-04-08 05:00:51 (GMT) |
commit | 393e4ca7e9d1308803da49bee667f1a874c612db (patch) | |
tree | f0ac1818542b5cc730b5c6792f64fc5ee6f3b814 /doc | |
parent | b967a4a50e7ad193583412bc5a585acde1fddbe7 (diff) | |
download | SCons-393e4ca7e9d1308803da49bee667f1a874c612db.zip SCons-393e4ca7e9d1308803da49bee667f1a874c612db.tar.gz SCons-393e4ca7e9d1308803da49bee667f1a874c612db.tar.bz2 |
Enhance Java support for package names that don't match the source directory hierarchy.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/scons.1 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index 410dd8d..54afbb0 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -1256,6 +1256,34 @@ env.Jar(target = 'foo.jar', source = 'classes') .IP Java Builds one or more Java class files from a source tree of .java files. +The class files will be placed underneath +the specified target directory. +SCons assumes that each .java file +contains a single public class +with the same name as the basename of the file; +that is, the file +.I Foo.java +contains a single public class named +.IR Foo . +SCons will search each Java file +for the Java package name, +which it assumes can be found on a line +beginning with the string +.B package +in the first column. +The resulting .class file +will be placed in a directory reflecting +the specified package name; +that is, +the file +.I Foo.java +with a package name of +.I sub.dir +will generate a corresponding +.IR sub/dir/Foo.class +class file. + +Example: .ES env.Java(target = 'classes', source = 'src') |