1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#!/bin/sh
#
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation version
# 2.1 of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# END COPYRIGHT BLOCK
#
echo ###
echo ### Remember to setup NETSCAPE_SERVER_ROOT variable
echo ###
echo ### building
mkdir classes
mkdir classes/images
javac -d classes -classpath "classes;$NETSCAPE_SERVER_ROOT/java/base.jar;$NETSCAPE_SERVER_ROOT/java/ldapjdk.jar;$NETSCAPE_SERVER_ROOT/java/mcc40.jar;$NETSCAPE_SERVER_ROOT/java/mcc40_en.jar;$NETSCAPE_SERVER_ROOT/java/nmclf40.jar;$NETSCAPE_SERVER_ROOT/java/nmclf40_en.jar;$NETSCAPE_SERVER_ROOT/java/swingall.jar;$CLASSPATH" configuration/ConfigurationNode.java configuration/ConfigurationNodeRHP.java configuration/ConfigurationPage.java configuration/OperationNode.java configuration/OperationNodeRHP.java configuration/SuperMailServerNode.java configuration/SuperMailServerNodeRHP.java customview/SuperMailCustomView.java status/AccessLogModel.java status/ErrorLogModel.java status/LoggingNode.java status/PerformanceNode.java status/StatusPage.java topology/SuperMailTopologyPlugin.java ug/SuperMailUserPage.java
javac -d classes -classpath "classes;$NETSCAPE_SERVER_ROOT/java/base.jar;$NETSCAPE_SERVER_ROOT/java/ldapjdk.jar;$NETSCAPE_SERVER_ROOT/java/mcc40.jar;$NETSCAPE_SERVER_ROOT/java/mcc40_en.jar;$NETSCAPE_SERVER_ROOT/java/nmclf40.jar;$NETSCAPE_SERVER_ROOT/java/nmclf40_en.jar;$NETSCAPE_SERVER_ROOT/java/swingall.jar;$CLASSPATH" SuperMailFrameworkInitializer.java SuperMailServer.java
cp *.properties classes
cp classes.env classes
cp images/* classes/images
cd classes
jar c0f ../SuperMailPlugin.jar *
cd ..
cp SuperMailPlugin.jar SuperMailPlugin_en.jar
|