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

How can the version number of the mmtf-java library be accessed programmatically? #35

Closed
pwrose opened this issue Apr 10, 2017 · 4 comments

Comments

@pwrose
Copy link
Collaborator

pwrose commented Apr 10, 2017

A user, who used the .jar files directly, wants to get the version number of the mmtf-java library.

@josemduarte
Copy link
Member

What about using StructureDataInterface.getMmtfVersion() ?

@pwrose
Copy link
Collaborator Author

pwrose commented Apr 10, 2017 via email

@josemduarte
Copy link
Member

Oh I see. Well all jar files that we publish have the version in their names, that's how one would usually find out.

In any case I don't think it's possible to do it programmatically at the moment. It would have to be implemented. It can be done like this: http://stackoverflow.com/questions/3697449/retrieve-version-from-maven-pom-xml-in-code

@abradle
Copy link
Collaborator

abradle commented Jun 2, 2017

Closing this. Jose's solution looks good.

@abradle abradle closed this as completed Jun 2, 2017
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

3 participants