Common

From tehowiki
Revision as of 11:41, 2 September 2016 by imported>Gfis (Stub)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Common sub-project contains no helper classes which are used by most other applications on teherba.org. Furthermore, Common is the reference for build procedure, property files and so on.

Classes

Common contains the following generally useable Java classes:

  • RegressionTester - Runs a suite of commandline and web test cases and compare the new results with previous results
  • URIReader - Reads a text or binary file from
    • the local file system,
    • an http, ftp, gopher URL
    • a data URI
  • BasePage - Unifies the handling of secondary web pages which are printed by the application's servlet
  • MetaInfPage - Reads the manifest, license and notice files from the application JAR and shows them in a web page

Build Procedure

The build process with compiling and creating of the JAR, WAR and EAR files is done with Apache ant. It is standardized for all applications by the include file

  • build-import.xml

This file should be the same for all applications. Application-specific tasks (for example data or code generation processes) should be moved to the build.xml which includes build-import.xml.