Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.37 KB

BUILDING.md

File metadata and controls

28 lines (20 loc) · 1.37 KB

How I (fwmechanic) build Briss (in 2020.03)

Build tools:

I build and run Briss on Windows:

  • Zulu OpenJDK 11 currently: zulu11.37.17-ca-jdk11.0.6-win_x64.zip
  • Maven currently: apache-maven-3.6.3-bin.zip

Separately/locally Built Prerequisites

JPedal:

  • git clone -b jdk11_build https://github.com/fwmechanic/JPedal.git
  • mvn clean install
    • first, a handy utility for PATH-phobics like me:
      • fbindir() ( find ~/my/bin/ -mindepth 2 -maxdepth 2 -ipath ~/my/bin/"$1"'*'/bin )
    • example: JAVA_HOME="$(fbindir zulu11)" "$(fbindir apache-maven-)"/mvn clean install

Building Briss:

  • mvn clean package
    • example: JAVA_HOME="$(fbindir zulu11)" "$(fbindir apache-maven-)"/mvn clean package
    • this writes 2 .jar files into $thisreporoot/target/: a smaller .jar with name-prefix original- and a larger .jar lacking that prefix; the larger is an "uber-jar" containing all prereqs; all you need to run it is a Java 11's java, demonstated next).

Running Briss:

java -jar "$thisreporoot/target/briss-1.0-rc.2.jar" "$fnm_of_pdf_to_crop"

  • example: briss() ( "$(fbindir zulu11)"/java -jar ~/my/repos/briss2/target/briss-1.0-rc.2.jar "$1" )