[Scons-users] Deal with package-info.class empty file
pierreluc.boily at gmail.com
Sun Dec 1 09:47:50 EST 2019
Finally, it is quite easy, javac compiler has an argument to force
Just need to pass -Xpkginfo:always to scons JAVACFLAGS. Unfortunately, my
version of javac (1.7.0_25) is crashing when I am passing this argument.
javac 1.8 is working fine with this arguments.
Le jeu. 28 nov. 2019, à 23 h 19, Pierre-Luc Boily <pierreluc.boily at gmail.com>
a écrit :
> I have a problem where my java build is nover up to date, because within
> scons java builder, package-info.class is not generated.
> This question has already been asked there :
> Its been almost 10 years ago and I am wondering if someone found something
> And it looks like the solution actually doesn't work anymore. The
> code :
> tgts = env.Java(target = 'classes', source = 'src')
> for f in tgts:
> if f.path.endswith('package-info.class'):
> jar = env.Jar(target = 'dds-interface.jar', source = tgts)
> returns error :
> AttributeError: <class 'SCons.Node.FS.File'> object has no attribute
> From what I read into the doc, Jar only accept java file or 'classes' as
> I could simply remove package-info.java file, I think they are not useful
> our case, we do not have documentation. But just in case, would be great
> I can keep it.
> Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html
> Scons-users mailing list
> Scons-users at scons.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scons-users