[Scons-dev] Java tests
Rob Boehne
robb at datalogics.com
Sat Apr 30 11:52:52 EDT 2016
Scons developers,
I've written a test case that demonstrates the problem of building interdependent Java sources from two directories.
Unfortunately, I'm a bit stumped in my efforts to fix the problem, so any suggestions would be appreciated.
I'm hoping that this can be fixed in the next release, which would allow my product to use the latest unaltered tools. We are currently stuck using Python 2.5 with a patched version of scons 0.97, which doesn't have this particular problem. I see that sometime since release 0.97 the Java builder was entirely rewritten, which seems to be when this feature stopped working.
Thanks,
Robert Boehne
From: Scons-dev <scons-dev-bounces at scons.org<mailto:scons-dev-bounces at scons.org>> on behalf of Bill Deegan <bill at baddogconsulting.com<mailto:bill at baddogconsulting.com>>
Reply-To: SCons developer list <scons-dev at scons.org<mailto:scons-dev at scons.org>>
Date: Wednesday, April 6, 2016 at 8:16 PM
To: SCons developer list <scons-dev at scons.org<mailto:scons-dev at scons.org>>
Subject: Re: [Scons-dev] Java tests
Files in test which call Jar()..
Java/JAR.py:env.Jar(target = 'test1.jar', source = 'test1.class')
Java/JAR.py:env.Jar(target = 'test2.jar', source = 'test2.CLASS')
Java/JAR.py:env.Jar(target = 'classes.jar', source = [ 'testdir/bar.class',
Java/JAR.py:foo.Jar(target = 'foo', source = 'classes/com/sub/foo')
Java/JAR.py:bar.Jar(target = 'bar', source = 'classes/com/sub/bar')
Java/jar_not_in_PATH.py:env.Jar(target = 'test1.jar', source = 'test1.class')
Java/JARCHDIR.py:jar = env.Jar(File('c.jar', dir), bin)
Java/JARCHDIR.py:inner = env.Jar('inner.jar', 'Inner$$Class.class')
Java/JARCHDIR.py:target_env.Jar('out/t.jar', 'in/t.class')
Java/JARCHDIR.py:source_env.Jar('out/s.jar', 'in/s.class')
Java/JARCOM.py:env.Jar(target = 'test1', source = ['file1.in<http://file1.in>', 'file2.in<http://file2.in>', 'file3.in<http://file3.in>'])
Java/JARCOMSTR.py: JARCOMSTR = "Jar'ing up $TARGET from $SOURCES")
Java/JARCOMSTR.py:env.Jar(target = 'test1', source = ['file1.in<http://file1.in>', 'file2.in<http://file2.in>', 'file3.in<http://file3.in>'])
Java/JARCOMSTR.py:Jar'ing up test1.jar from file1.in<http://file1.in>file2.in<http://file2.in> file3.in<http://file3.in>
Java/JARFLAGS.py:env.Jar(target = 'test.jar', source = class_files)
Java/multi-step.py:denv.Jar('HelloApplet',classes)
Java/multi-step.py:denv.Jar('myid','MyID.java')
Java/multi-step.py:denv.Jar(['Sample.i','A.java'])
Java/nested-classes.py:env.Jar(target = 'anon.jar', source = classes)
Java/no-JARCHDIR.py:Verify the Jar() behavior when we have no JARCHDIR set (it should
Java/no-JARCHDIR.py:jar = env.Jar('x.jar', env.Java(target = 'classes', source = 'src'))
Java/no-JARCHDIR.py:jar = env.Jar('x.jar', env.Java(target = 'classes', source = 'src'))
Java/swig-dependencies.py:foopack_jar = env.Jar(target = 'foopack.jar', source = 'classes')
VariantDir/include-subdir.py:Test case supplied by Jared Grubb, based on a minimal example supplied
Note that the JARCOMSTR has a fake jar python script so likely that's not what you're looking for.
-Bill
On Wed, Apr 6, 2016 at 9:14 PM, William Blevins <wblevins001 at gmail.com<mailto:wblevins001 at gmail.com>> wrote:
Rob,
Tests exist under #test with Java-related integration tests under #test/Java. Not sure if all of them build jars.
Information on the SCons test framework can be found under #QMTest as a README.txt and some *.rst file(s).
https://bitbucket.org/scons/scons/wiki/DeveloperGuide/TestingMethodology
V/R,
William
On Wed, Apr 6, 2016 at 4:13 PM, Rob Boehne <robb at datalogics.com<mailto:robb at datalogics.com>> wrote:
All,
I'm working on fixing an issue with scons, and It would help if someone could point me to a test currently in the test suite that compiles java into a jar.
Thanks,
Robert Boehne
_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org<mailto:Scons-dev at scons.org>
https://pairlist2.pair.net/mailman/listinfo/scons-dev
_______________________________________________
Scons-dev mailing list
Scons-dev at scons.org<mailto:Scons-dev at scons.org>
https://pairlist2.pair.net/mailman/listinfo/scons-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160430/07d61c97/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Compile2Dirs.py
Type: text/x-python-script
Size: 4061 bytes
Desc: Compile2Dirs.py
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160430/07d61c97/attachment.bin>
More information about the Scons-dev
mailing list