Skip to content

Exception when running from outside multeval's folder #9

Open

Description

@armatthews

The latest version of multeval tries to read a file called "./constants" to determine its version number. When multeval is executed from a location other than its own folder, this file does not exist, leading to an exception and the inability to run multeval.

Activity

  1. ianj-als commented on Nov 18, 2013

    @ianj-als

    Copy or link the 'constants' file to the directory where you'd like to run multeval from.

  2. ypeels commented on Jan 19, 2016

    @ypeels

    This is a "regression" introduced in commit cb6a52. Following an example on rgagnon.com, it is fixable by adding the following to build.xml:

      <manifest>
        <attribute name="Main-Class"
               value="multeval.MultEval"/>
        <attribute name="Implementation-Version" 
               value="${version}"/> 
      </manifest>
    

    and then changing the following in MultEval.main():

    String version = MultEval.class.getPackage().getImplementationVersion(); //loadVersion();
    

    Finally, rebuild using ant clean && ant.

    It looks like MultEval.loadVersion() is only ever called from MultEval.main(), so this should be safe to change. But I'm not very familiar with Java, so this may not be the best/cleanest way to patch this (hence no pull request)...

    Edit: submitted as pull request #19

  3. RokoMijic commented on Mar 27, 2017

    @RokoMijic

    Any progress on this?

  4. ozancaglayan commented on May 30, 2017

    @ozancaglayan

    I have a fork of this repository with a lot of fixes including this one. You can try that if you'd like:
    https://github.com/ozancaglayan/multeval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions