Skip to content

Add ability to set .j2s config filepath/name by setting property … - #199

Merged
BobHanson merged 2 commits into
BobHanson:masterfrom
jalview:Property_configurable_j2s_file
Dec 22, 2020
Merged

Add ability to set .j2s config filepath/name by setting property …#199
BobHanson merged 2 commits into
BobHanson:masterfrom
jalview:Property_configurable_j2s_file

Conversation

@benzoid

@benzoid benzoid commented Dec 20, 2020

Copy link
Copy Markdown

… "net.sf.j2s.core.j2sFileName" when launching Eclipse

e.g.
eclipse --launcher.appendVmargs -vmargs -Dnet.sf.j2s.core.j2sFileName=build/jalviewjs/eclipse/j2sConfig

…sf.j2s.core.j2sFileName when launching Eclipse
@BobHanson

BobHanson commented Dec 20, 2020 via email

Copy link
Copy Markdown
Owner

@benzoid

benzoid commented Dec 20, 2020

Copy link
Copy Markdown
Author

The use case is for a headless transpilation run of eclipse, which I think only operates on one project. The headless run in our case requires a different j2s configuration than the general Eclipse development using j2s.
As discussed on gitter I'll change the PR at a later date with your other suggestion of enabling the property lookup based on project configuration enabling that function.

@benzoid

benzoid commented Dec 22, 2020

Copy link
Copy Markdown
Author

Changes made so that you can set in (the usual) .j2s file:

j2s.config.altfileproperty=my.property.name

and the plugin will look for System.getProperty("my.property.name") and if it's there and is a file that exists will use that in preference to the .j2s file.

I've only done some brief testing but it appears to work!

@BobHanson
BobHanson merged commit 7e63578 into BobHanson:master Dec 22, 2020
@BobHanson

BobHanson commented Dec 22, 2020 via email

Copy link
Copy Markdown
Owner

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.

2 participants