Dependencies

From tehowiki
Jump to navigation Jump to search

The following command produces a list of all JAR files which are needed by the subprojects:

work/gits>find . -iname "*.jar" | grep "/lib/" | sed -e "s/^.\// /" | tee depends.tmp

Library JAR files ending with "-core.jar" stem from another Java application on teherba.org. The other JAR files can all be obtained from subprojects of Apache.org.

Fill tomcat/openlib/

  • fill tomcat/openlib/ with external JAR files from Apache.org
  • All subprojects fetch the necessary shared JARs from tomcat/openlib/ by their specific subtarget fill.lib during ant clean.
  • All subprojects appl store their minimal dist/appl-core.jar into tomcat/openlib/ during ant deploy.

Restart Tomcat

  • Do not forget to restart Tomcat whenever there is a significant change in the JAR libraries in tomcat/openlib/.

Build Sequence

  1. common: ant build-import - copies build-import.xml into all subprojects
  2. common: ant clean deploy
  3. dbat, basdetok, flodskim, numword, ramath, xtool: ant clean deploy - no further dependencies
  4. churchcal: ant clean deploy - depends on numword
  5. xtrans: ant clean deploy - depends on dbat
  6. checkdig: ant clean deploy - depends on dbat, xtrans
  7. gramword: ant clean deploy - depends on dbat, numword, xtrans
  8. Remember that ant deploy always replaces the appl-core.jar in tomcat/openlib/. Run ant clean on all dependant subprojects then.

Contents of the lib Directories

Finally the lib subdirectories should contain the following JAR files:

basdetok/lib/common-core.jar
basdetok/lib/log4j-1.2.17.jar
checkdig/lib/common-core.jar
checkdig/lib/dbat-core.jar
checkdig/lib/log4j-1.2.17.jar
checkdig/lib/serializer.jar
checkdig/lib/xtrans-core.jar
churchcal/lib/common-core.jar
churchcal/lib/commons-fileupload-1.2.2.jar
churchcal/lib/commons-io-2.1.jar
churchcal/lib/log4j-1.2.17.jar
churchcal/lib/numword-core.jar
common/lib/log4j-1.2.17.jar
dbat/lib/activation.jar
dbat/lib/common-core.jar
dbat/lib/commons-codec-1.10.jar
dbat/lib/commons-logging-1.2.jar
dbat/lib/log4j-1.2.17.jar
dbat/lib/mysql-connector-java-5.1.11-bin.jar
dbat/lib/poi-3.14-20160307.jar
dbat/lib/poi-ooxml-3.14-20160307.jar
dbat/lib/poi-ooxml-schemas-3.14-20160307.jar
dbat/lib/serializer.jar
dbat/lib/tomcat-dbcp.jar
dbat/lib/xmlbeans-2.6.0.jar

The serializer.jar is contained in the Apache Xalan-J distribution. The activation.jar is part of Oracle's JAF (JavaBeans Activation Framework). The XMLBeans library stems from a separate Apache Project.

flodskim/lib/common-core.jar
flodskim/lib/commons-fileupload-1.2.2.jar
flodskim/lib/commons-io-2.1.jar
flodskim/lib/log4j-1.2.17.jar
flodskim/temp/flodskim/lib/log4j-1.2.15.jar
gramword/lib/checkdig-core.jar
gramword/lib/common-core.jar
gramword/lib/commons-fileupload-1.2.2.jar
gramword/lib/commons-io-2.1.jar
gramword/lib/dbat-core.jar
gramword/lib/log4j-1.2.17.jar
gramword/lib/mysql-connector-java-5.1.11-bin.jar
gramword/lib/numword-core.jar
gramword/lib/serializer.jar
gramword/lib/xtrans-core.jar
jextra/lib/common-core.jar
jextra/lib/log4j-1.2.17.jar
jextra/lib/serializer.jar
jextra/lib/xtrans-core.jar
numword/lib/common-core.jar
numword/lib/log4j-1.2.17.jar
ramath/lib/common-core.jar
ramath/lib/commons-fileupload-1.2.2.jar
ramath/lib/commons-io-2.1.jar
ramath/lib/log4j-1.2.17.jar
xtool/lib/common-core.jar
xtool/lib/commons-fileupload-1.2.2.jar
xtool/lib/commons-io-2.1.jar
xtool/lib/log4j-1.2.17.jar
xtool/lib/serializer.jar
xtrans/lib/common-core.jar
xtrans/lib/commons-fileupload-1.2.2.jar
xtrans/lib/commons-io-2.1.jar
xtrans/lib/dbat-core.jar
xtrans/lib/log4j-1.2.17.jar
xtrans/lib/serializer.jar