diff -r 000000000000 -r 11402b568081 SConstruct --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SConstruct Wed May 04 18:34:21 2011 +0200 @@ -0,0 +1,16 @@ +# This file is used to build and automatically test sonews + +import os +env = Environment() + +env['ENV']['LANG'] = 'en_GB.UTF-8' +env['JAVACFLAGS'] = '-source 1.6 -target 1.6' +env['JAVACLASSPATH'] = '/usr/share/java/junit4.jar:/usr/share/java/glassfish-mail.jar:/usr/share/java/servlet-api-2.5.jar:/usr/share/java/jchart2d.jar:classes' + +# Build Java classes +classes = env.Java(target='classes', source=['org/sonews/']) +test_classes = env.Java(target='classes', source=['test']) + +# Setting dependencies +Depends(test_classes, classes) +