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

Bin importer #127

Merged
merged 3 commits into from
Apr 15, 2020
Merged

Bin importer #127

merged 3 commits into from
Apr 15, 2020

Conversation

jburel
Copy link
Member

@jburel jburel commented Apr 10, 2020

This fixes the issue described in #25

To test locally

  • run gradle build
  • unzip OMERO.importer.zip
  • run bin/omero-importer

or download the OMERO.importer from daily build and unzip

@jburel jburel mentioned this pull request Apr 10, 2020
@Override
void execute(CreateStartScripts css) {
css.mainClassName = InsightBasePlugin.MAIN_INSIGHT
css.mainClassName = InsightBasePlugin.MAIN_INSIGHT+" containerImporter.xml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jburel : I don't understand this change. Why is the XML file being added to mainClassName?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find a way in CreateStartScripts to pass argument.
The mainClassName is then added to a bash command: JVMARG mainClassName etc.
An other option could be to do bin/omero-importer containerImporterXml
but I opted to have the same approach that the one for insight

Copy link
Member Author

@jburel jburel Apr 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another option could be to add another main class but this one, which is probably not the most elegant, is the less intrusive and requires the less changes. Extending the gradle plugin will be the best option but it will require major work
This is very low priority

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. Let's go with it, keeping in mind that it's confusing and probably brittle.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a TODO. The option might be added to the gradle plugin in the future

@dominikl
Copy link
Member

👍 Works fine, both for Insight and Importer.

@jburel jburel merged commit 4fc4142 into ome:master Apr 15, 2020
@jburel jburel deleted the bin_importer branch July 1, 2020 12:46
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

Successfully merging this pull request may close these issues.

3 participants