Dependencies: Difference between revisions

From tehowiki
Jump to navigation Jump to search
imported>Gfis
No edit summary
imported>Gfis
No edit summary
Line 1: Line 1:
The following command produces a list of all JAR files which are needed by the subprojects:
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
  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 [[Main_Page|teherba.org]].
Library JAR files ending with "-core.jar" stem from another Java application on [[Main_Page|teherba.org]].
The other JAR files can all be obtained from subprojects of [http://www.apache.org Apache.org].
The other JAR files can all be obtained from subprojects of [http://www.apache.org Apache.org].
Line 7: Line 7:
* All subprojects fetch the necessary shared JARs from <code>tomcat/openlib/</code> by their specific subtarget <code>fill.lib</code> during <code>ant clean</code>.
* All subprojects fetch the necessary shared JARs from <code>tomcat/openlib/</code> by their specific subtarget <code>fill.lib</code> during <code>ant clean</code>.
* All subprojects ''appl'' store their minimal <code>dist/''appl''-core.jar</code> into <code>tomcat/openlib/</code> by their specific subtarget <code>core.jar</code> during <code>ant deploy</code>.
* All subprojects ''appl'' store their minimal <code>dist/''appl''-core.jar</code> into <code>tomcat/openlib/</code> by their specific subtarget <code>core.jar</code> during <code>ant deploy</code>.
 
===Restart Tomcat===
* Do not forget to restart Tomcat whenever there is a significant change in the JAR libraries in <code>tomcat/openlib/</core>.
===Build Sequence===
===Build Sequence===
# common: <code>ant build-import</code> - copies <code>build-import.xml</code> into all subprojects
# common: <code>ant build-import</code> - copies <code>build-import.xml</code> into all subprojects
Line 19: Line 20:
# checkdig: <code>ant clean deploy</code> - depends on dbat, xtrans
# checkdig: <code>ant clean deploy</code> - depends on dbat, xtrans
# gramword: <code>ant clean deploy</code> - depends on dbat, numword, xtrans
# gramword: <code>ant clean deploy</code> - depends on dbat, numword, xtrans
# Remember that <code>ant deploy</code> always replaces the JAR <code>''appl''-core.jar</code> in <code>tomcat/openlib/</core>. Run <code>ant clean</code> on all dependant subprojects then.
===Contents of the <code>lib</code> Directories===
===Contents of the <code>lib</code> Directories===
Finally the <code>lib</code> subdirectories should contain the following JAR files:
Finally the <code>lib</code> subdirectories should contain the following JAR files:

Revision as of 08:51, 12 September 2016

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/ by their specific subtarget core.jar during ant deploy.

Restart Tomcat

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

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 JAR appl-core.jar in tomcat/openlib/</core>. 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
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