Sub-Term Mapping Tools

STMT - Annual Software Release Update

  • Baseline - copy from previous release
    • shell> cd ${STMT_DIR}
    • shell> cp -rp ${PRE_YEAR} ${YEAR}

  • Updates build.xml and updateDoc
    • Update following parameters in ./build.xml and ./install/build.xml
      • project.year - ${YEAR}
      • lvg.jar - lvg${YEAR}dist.jar
      • javac - executable (synchronize with the JDK as lvg.${YEAR})
      • javadoc - executable (synchronize with the JDK as lvg.${YEAR})
    • Update ${STMT_DIR}/docs/updateDoc
      • JAVA - java (synchronize with the JDK as lvg.${YEAR})

  • Updates jar files
    • Update ${STMT_DIR}/lib/jdbcDrivers/HSqlDb/ (synchronize with lvg.${YEAR})
      • hsqldb.jar
      • hsqldb_lic.txt
      • hypersonic_lic.txt
    • Update ${STMT_DIR}/lib/Other/lvg${YEAR}dist.jar

  • Updates source codes, scripts, and JRE
    • Change version:
      • ${BASELINE_CODE}/bin/ModifyStmtJavaCode
      • Update VERION in ${STMT}/${SOURCE}/stmt/Lib/Globals.java
    • Update command-line scripts (${STMT_DIR}/bin/lsf, mt, nt, smt, stmt):
      • Update ${YEAR} in ROOT_DIR
      • Update ${YEAR} in ${YEAR} in CLASSPATH
    • Update ${STMT_DIR}/bin/jreDist (synchrolize with ${LVG_DIR})

  • Updates installation
    • Update installation scripts (${STMT_DIR}/install/bin/install_linux.sh, install_win.bat)
      • JRE_VERSION
      • STMT_YEAR
      • CLASSPATH
    • Update installation Java codes (${STMT_SOURCE}/stmt/install/Setup/Param.java)
      • VERSION
      • JRE_DIR
      • DATABASE_NAME

  • Updates config files
    • Update config files under ${STMT_DIR}/data/Config/
      • lsf.properties:
        • LVG_CONFIG_FILE
        • DB_NAME
      • lvg.properties:
        • LVG_DIR
        • DB_NAME
      • smt.properties:
        • ROOT_DIR
        • LVG_CONFIG_FILE
        • DB_NAME
      • stmt.properties:
        • LVG_CONFIG_FILE
        • DB_NAME

  • Updates data files
    • Update lvg${YEAR}lite under ${STMT_DIR}/data/Lvg (Copy from ${LVG_DIR}/lib/lvg${YEAR}lite.tgz)
    • Update files under ${STMT_DIR}/data/tables (Copy from ${STMT}/PrePorcess/data/Tables/${YEAR}AA), use scripts in preProcess
      • ./Lex/${YEAR}/normInflvarEui.data
      • ./Meta/${YEAR}AA/cuiPreferredTerm.data
      • ./Meta/${YEAR}AA/nonSuppressCui.data
      • ./Meta/${YEAR}AA/normTermCui.data
      • ./Synonyms/${YEAR}/normTermSynonyms.data
      • ./Tables/${YEAR}AA/normInflvarCorpus.data

  • Updates DB (Done in PreProcess)
    • Update in ${STMT_LOADDB_SRC_DIR}/loadDb/HSqlDb/db.cfg
      • DB_NAME
      • ROOT_DIR
    • Copy HSqlDb files to ${STMT_DIR}/data/HSqlDb/ (form ${STMT}/PreProcess/data/HsqlDb/)
  • Build
    • Updates ./bin/genBuildInfo
    • Updates ${YEAR} in ./overview.html

    • shell> cd ${STMT_DIR}
    • shell> ant clean
    • shell> ant
    • shell> ant dist
    • shell> ant javadoc
    • shell> ant build
    • shell> ant release