[Scons-users] SCons always rebuilds on Windows

Dirk Heinrichs dirk.heinrichs at altum.de
Mon Apr 29 09:23:29 EDT 2013


Am 27.04.2013 14:47, schrieb Gary Oberbrunner:


> Perhaps the compiler isn't putting the class file where SCons expects it

> to, so SCons doesn't realize it's been built. Could you also try with

> --tree=prune and see if all the filenames and paths match with what it

> actually builds?


Using --tree=prune doesn't make any difference.


> If your example is small enough, you could post it here.


Sure. This is SConstruct:

build = Environment(JAVAC = 'C:/jdks/1.7/jdk/bin/javac.exe',tools=['javac'])
CacheDir('C:\Temp\build_cache')
SConscript('SConscript', exports={'env':build})

SConscript:

Import('env')
env.Java ('classes', 'src')

src/Hello.java:

class Hello
{
public static void main ( String[] args )
{
System.out.println("Hello World!");
}
}

As said, the same example with "JAVAC=/usr/bin/javac" and
"CacheDir('/tmp/build_cache')" works fine on Linux.

Bye...

Dirk
--
Dirk Heinrichs <dirk.heinrichs at altum.de>
Tel: +49 (0)2471 209385 | Mobil: +49 (0)176 34473913
GPG Public Key C2E467BB | Jabber: dirk.heinrichs at altum.de


More information about the Scons-users mailing list