Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #18719

Closed (moved)
(moved)
Open
Created Apr 04, 2016 by iwakeh iwakeh@iwakeh

provide executable jar

metrics-db currently has (at least) six classes providing a main method, which are invoked using six corresponding ant tasks.

One solution for providing an executable jar:

Add a new class org.torproject.ernie.db.Main as the jar's main class adding the following functionality:

  • calling java -jar metrics-db.jar will show a usage message and exit.
  • calling java -jar metrics-db.jar <taskname> will run the main method of the class called in the current ant task of the same name, i.e., taskname is one of
    • bridgedescs
    • bridgepools
    • exitlists
    • relaydescs
    • torperf
    • updateindex

Finally, remove the then obsolete ant tasks from build.xml.

What is missing? Should a task be added or removed? Other thoughts?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking