SConstruct
author cli
Sun, 29 Aug 2010 17:43:58 +0200
changeset 36 c404a87db5b7
parent 1 6fceb66e1ad7
permissions -rw-r--r--
Add some checks to prevent #13 happen.
chris@1
     1
# This file is used to build and automatically test sonews
chris@1
     2
chris@1
     3
import os
chris@1
     4
env = Environment()
chris@1
     5
chris@1
     6
env['ENV']['LANG'] = 'en_GB.UTF-8'
chris@1
     7
env['JAVACFLAGS']    = '-source 1.6 -target 1.6'
chris@1
     8
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
     9
chris@1
    10
# Build Java classes
chris@1
    11
classes = env.Java(target='classes', source=['org/sonews/'])
chris@1
    12
test_classes   = env.Java(target='classes', source=['test'])
chris@1
    13
chris@1
    14
# Setting dependencies
chris@1
    15
Depends(test_classes, classes)
chris@1
    16