# The contents of this file are subject to the JOnAS Public License Version 
# 1.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License on the JOnAS web site.
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied.
# See the License for the specific terms governing rights and limitations
# under the License.
#
# The Original Code is JOnAS application server code released July 1999.
#
# The Initial Developer of the Original Code is Bull S.A.
# The Original Code and portions created by Bull S.A. are
#    Copyright (C) 1999 Bull S.A. All Rights Reserved.
#
# Contributor(s): ______________________________________.
#
# ---------------------------------------------------------------------------
# $Id: compile.sh,v 1.4 2000/02/03 14:04:56 durieuph Exp $
# ---------------------------------------------------------------------------

if [ ! -f $JONAS_ROOT/bin/config.env ]
then
    echo "JONAS_ROOT must be set"
    exit 1
fi

. $JONAS_ROOT/bin/config.env


set -x
 
#[ -d ../../classes ] || mkdir ../../classes

# Compiles the source files
javac -d ../../../classes	e1/interfaces/*.java 	e1/server/*.java 	e1/html/*.java  	e1/*.java 
 	       	            	
# Generates the deployemnt descriptor
#cd e1/deployment


#GenDD -d . E1.txt
#GenDD -d . E1Manager.txt
#cd ../../

# Generates the interposition classes and compiles them

GenIC -d ../../../classes ejb-jar_e1.xml
GenIC -d ../../../classes ejb-jar_e1manager.xml