Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Fix the command line tools #5

Open
cygri opened this issue Jun 30, 2016 · 0 comments
Open

Fix the command line tools #5

cygri opened this issue Jun 30, 2016 · 0 comments

Comments

@cygri
Copy link
Member

cygri commented Jun 30, 2016

The command line scripts (shell scripts and Windows .bat files) are just copied from D2RQ and don't work with the new Maven project setup.

Minimal steps to get ./validate to work:

  • mvn compile
  • mvn mvn dependency:copy-dependencies
  • In the validate script, make the following changes:
  • Change $D2RQ_ROOT/build to $D2RQ_ROOT/target/classes
  • Change the two paths being scanned for jars to just "$D2RQ_ROOT"/target/dependency/*.jar
  • Change the log4j.properties location to $D2RQ_ROOT/src/main/resources/log4j.properties
  • Change the invoked class from d2rq.validate to org.d2rq.cli.validate

This makes the script work, but it's probably not quite the right thing to do if we will make available a binary download for end users. Such a binary download should either contain just a single jar with all dependencies included, or a flatter directory layout (not everything deep under src/main and target).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant