chris@1: # This file is used to build and automatically test sonews
chris@1: 
chris@1: import os
chris@1: env = Environment()
chris@1: 
chris@1: env['ENV']['LANG'] = 'en_GB.UTF-8'
chris@1: env['JAVACFLAGS']    = '-source 1.6 -target 1.6'
chris@1: 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'
chris@1: 
chris@1: # Build Java classes
chris@1: classes = env.Java(target='classes', source=['org/sonews/'])
chris@1: test_classes   = env.Java(target='classes', source=['test'])
chris@1: 
chris@1: # Setting dependencies
chris@1: Depends(test_classes, classes)
chris@1: