HistoryAtState / hsg-project

Get, build, and deploy hsg3
15 stars 12 forks source link

hsg-project

The new hsg3 spans many git repositories, which together form the applications and data published at history.state.gov. This project simplifies the tasks of getting these repositories and building and creating packages to install into eXist.

Goals

To automate the following steps:

(No check mark means this hasn't been automated and must still be done manually.)

Prerequisites

Setup

For Office of the Historian staff, see the hsg-project wiki, especially the article Setting up a history.state.gov development environment on your computer and Using version control with history.state.gov publications and datasets.

For the general developer community:

Troubleshooting

Other External Tools entries for oXygen users

Other Ant targets for command line users

ant update-one -Drepo-name=hsg-shell
ant -f repos/hsg-shell
ant deploy-one -Drepo-name=hsg-shell -Dxar=hsg-shell-0.2.xar
git pull
ant clean
ant setup
ant

Ant target for building DEV and PROD xars (for development and production server)

The default ant target will build xar files without any triggers and will internally call targets build > build-xar. An additional variable in target build-xar lets you to build 2 xar files containing triggers for 2 different environments: prod and dev.
By running the ant build command plus the environment variable like described below, you call a specific subant target xar-dev or xar-prod - both are found in each repo's build.xml.

  1. Command for DEV:

    • will create *-consumer-dev.xar without replication triggers and *-producer-dev.xar` containing replication triggers
    • calls target xar-dev
      ant -Dbuild-env=-dev build
  2. Command for PROD:

    • will create *-consumer-prod.xar without replication triggers and *-producer-prod.xar containing replication triggers
    • calls target xar-prod
      ant -Dbuild-env=-prod build

Notes