Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when running from outside multeval's folder #9

Open
armatthews opened this issue Feb 13, 2013 · 4 comments
Open

Exception when running from outside multeval's folder #9

armatthews opened this issue Feb 13, 2013 · 4 comments

Comments

@armatthews
Copy link

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.

@ianj-als
Copy link

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

@ypeels
Copy link

ypeels commented Jan 19, 2016

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

@RokoMijic
Copy link

Any progress on this?

@ozancaglayan
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants