[Scons-users] Questions about building Java code
Russel Winder
russel at winder.org.uk
Sat Apr 27 05:48:38 EDT 2013
On Sat, 2013-04-27 at 08:51 +0200, Dirk Heinrichs wrote:
> On 26.04.2013 20:48, Dirk Bächle wrote:
[…]
> > ad 2): You changed "MainClass.java", so SCons has to recompile
> > it...also using ExtraClass.class, since it might contain definitions
> > MainClass depends on.
>
> That's how javac works. It has to recompile something, so it recompiles
> _everything_.
Not exactly, it is all much more complicated than that :-)
> > So it all makes sense to me.
>
> A useless cache retrieval of an up-to-date file that is then recompiled
> anyway doesn't make sense to me. But I guess it's the best it can do
> considering how javac works ;)
It is not just javac causing the issue here it is the tension between
the way javac works and the way SCons builds an ADG of the build state.
What works for C, C++, Fortran and LaTeX, does not work for D, Go,
Chapel, Java, Scala, Groovy, Kotlin, Ceylon, Clojure, etc. I am trying
to make things work for D and Chapel, but it is looking increasingly
difficult. Go now has it's own build tool. As noted earlier for the
JVM-based languages, I just use Gradle.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20130427/2052b129/attachment-0001.pgp>
More information about the Scons-users
mailing list