- When building a .jar file and there is a $JARCHDIR, put the -C
in front of each .class file on the command line.
+ - Recognize the Java 1.5 enum keyword.
+
From Chris Pawling:
- Have the linkloc tool use $MSVS_VERSION to select the Microsoft
if len(self.listClasses) > 0:
return self.__getAnonClassState()
return self.__getSkipState() # Skip the class name
- elif token == 'class' or token == 'interface':
+ elif token in ['class', 'interface', 'enum']:
if len(self.listClasses) == 0:
self.nextAnon = 1
self.stackBrackets.append(self.brackets)
assert pkg_dir == None, pkg_dir
assert classes == ['MyTabs$MyInternal', 'MyTabs'], classes
+ def test_enum(self):
+ """Test the Java 1.5 enum keyword"""
+
+ pkg_dir, classes = SCons.Tool.JavaCommon.parse_java("""\
+package p;
+public enum a {}
+""")
+ assert pkg_dir == 'p', pkg_dir
+ assert classes == ['a'], classes
+
if __name__ == "__main__":
suite = unittest.TestSuite()
tclasses = [ parse_javaTestCase ]