- Fix the env.Action() method so it returns the correct type of
Action for its argument(s).
+ - Fix specifying .class files as input to JavaH with the .class suffix
+ when they weren't generated using the Java Builder.
+
From Vincent Risi:
- Add support for the bcc32, ilink32 and tlib Borland tools.
import SCons.Builder
import SCons.Node.FS
+import SCons.Tool.javac
def emit_java_headers(target, source, env):
"""Create and return lists of Java stub header files that will
classname = str(src)
if c_ and classname[:len(c_)] == c_:
classname = classname[len(c_):]
- if class_suffix and classname[:-len(class_suffix)] == class_suffix:
- classname = classname[-len(class_suffix):]
+ if class_suffix and classname[-len(class_suffix):] == class_suffix:
+ classname = classname[:-len(class_suffix)]
+ classname = SCons.Tool.javac.classname(classname)
s = src.rfile()
s.attributes.java_classdir = classdir
s.attributes.java_classname = classname
JAVAH = '/usr/local/j2sdk1.3.1/bin/javah')
javah = foo.Dictionary('JAVAH')
bar = foo.Copy(JAVAH = r'%s wrapper.py ' + javah)
-fff = foo.Java(target = 'class1', source = 'com/sub/foo')
+foo.Java(target = 'class1', source = 'com/sub/foo')
bar_classes = bar.Java(target = 'class2', source = 'com/sub/bar')
foo_classes = foo.Java(target = 'class3', source = 'src')
foo.JavaH(target = 'outdir1',
JAVACLASSDIR = 'class1')
bar.JavaH(target = 'outdir2', source = bar_classes)
foo.JavaH(target = File('output.h'), source = foo_classes)
+foo.Install('class4/com/sub/foo', 'class1/com/sub/foo/Example1.class')
+foo.JavaH(target = 'outdir4',
+ source = ['class4/com/sub/foo/Example1.class'],
+ JAVACLASSDIR = 'class4')
""" % python)
test.subdir('com',