1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/SConstruct Sun Aug 29 23:23:15 2010 +0200
1.3 @@ -0,0 +1,16 @@
1.4 +# This file is used to build and automatically test sonews
1.5 +
1.6 +import os
1.7 +env = Environment()
1.8 +
1.9 +env['ENV']['LANG'] = 'en_GB.UTF-8'
1.10 +env['JAVACFLAGS'] = '-source 1.6 -target 1.6'
1.11 +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'
1.12 +
1.13 +# Build Java classes
1.14 +classes = env.Java(target='classes', source=['org/sonews/'])
1.15 +test_classes = env.Java(target='classes', source=['test'])
1.16 +
1.17 +# Setting dependencies
1.18 +Depends(test_classes, classes)
1.19 +