Project Page: http://georgetown-university-libraries.github.io/File-Analyzer/
The File Analyzer and Metadata Harvester is a general purpose desktop (and command line) tool designed to automate simple, file-based operations. The File Analyzer assembles a toolkit of tasks a user can perform.
The tasks that have been written into the File Analyzer code base have been optimized for use by libraries, archives, and other cultural heritage institutions.
File Analyzer Wiki: https://github.com/Georgetown-University-Libraries/File-Analyzer/wiki
This code has been derived from the NARA File Analyzer and Metadata Harvester which is available at https://github.com/usnationalarchives/File-Analyzer.
- Download amd install the most recent LTS release of the Adoptium Eclipse Temurin JDK.
Don't forget to select the option to set the
JAVA_HOME
environment variable. For Linux, follow https://askubuntu.com/questions/1375383/how-to-properly-install-temurin-jdk-with-update-alternatives. - For Windows, Install Maven using Chocolatey or Install Maven Manually.
- Download and install VS Code.
- Clone this code to your computer
- Run
mvn package
- Detailed Installation Instructions: https://github.com/Georgetown-University-Libraries/File-Analyzer/wiki/Installation-instructions
This code will build 3 flavors of the File Analyzer. To read more on all possible flavors of File Analyzer, see https://github.com/Georgetown-University-Libraries/File-Analyzer/wiki/File-analyzer-component-packages.
- All code runs from a self-extracting jar file
- This version of the file analyzer is a self-extracting jar file that references the core file analyzer jar file.
- It contains tools for automating the creation of DSpace ingestion folders
- This version contains extensions illustrating various capabilities of the File Analyzer.
- This version of the file analyzer is a self-extracting jar file that references both the core and dspace file analyzer jar files.
- This version of the application uses features of Apache Tika, BagIt, and Marc4j
- We will be packaging the jar build artifacts into installers using jpackage for Windows and jpackage for Linux.
- jpackage has additional dependencies based on your OS.
For Windows, to use jpackage you need to install Wix using Chocolatey.
For Linux, to use jpackage you need to install the packages
fakeroot
andbinutils
.
On Windows, to generate installers for each executable jar with a start menu shortcut and local user privileges, run the following.
jpackage --verbose --app-version 2.0 --input core/target --main-jar CoreFileAnalyzer-2.0.jar --win-menu --win-per-user-install
jpackage --verbose --app-version 2.0 -input dspace/target --main-jar DSpaceFileAnalyzer-2.0.jar --win-menu --win-per-user-install
jpackage --verbose --app-version 2.0 --input demo/target --main-jar DemoFileAnalyzer-2.0.jar --win-menu --win-per-user-install
On Linux, to generate installers for each executable jar with an appropriate menu group, run the following.
jpackage --verbose --app-version 2.0 --input core/target --main-jar CoreFileAnalyzer-2.0.jar --linux-menu-group Utility;FileTools;Java
jpackage --verbose --app-version 2.0 -input dspace/target --main-jar DSpaceFileAnalyzer-2.0.jar --linux-menu-group Utility;FileTools;Java
jpackage --verbose --app-version 2.0 --input demo/target --main-jar DemoFileAnalyzer-2.0.jar --linux-menu-group Utility;FileTools;Java
- Deployment will be done using GitHub actions using the
maven-installer-upload.yml
workflow. - Once Maven and jpackage steps are executed, deployment is completed using
actions/upload-artifact
thenactions/upload-release-asset
.