summaryrefslogblamecommitdiff
path: root/ant-build-nsc.sh
blob: 0769f443b82f4b050fef1372e939c617f3227a90 (plain) (tree)
1
2
3
4
5
6
7
8
9

         
               
 



                                                                                         
 

                                                                      
 

                
                              
                




                                                                                                                                               
 

                                
#!/bin/sh

. ant-common.sh

# jars for `scalac' task MUST EXIST
if ! addJar $fjbg_jar fjbg_jar;  then exit -1; fi
if ! addJar $scala_jar scala_jar; then echo "try: make jar target=LIBRARY" && exit -1; fi
if ! addJar $tools_jar tools_jar; then echo "try: make jar target=TOOLS" && exit -1; fi

# jars for `pico' task MUST EXIST including the `-scala-hacks' enabled
if ! addJar $jaco_jar jaco_jar;  then exit -1; fi 

export CLASSPATH

# for debugging your classpath
#echo $CLASSPATH
if [ -f developer/${USER}/build-nsc-excludes.xml ]; then
  sed -e "s/userExcludes\ \"\"/userExcludes\ SYSTEM\ \"developer\/${USER}\/build-nsc-excludes.xml\"/" < build-nsc.xml > concrete-build-nsc.xml;
 else
  ln -s build-nsc.xml concrete-build-nsc.xml;
fi

ant -f concrete-build-nsc.xml $*
rm -f concrete-build-nsc.xml