Skip to content

Conversation

@benzoid
Copy link

@benzoid benzoid commented Dec 20, 2020

… "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
Copy link
Owner

BobHanson commented Dec 20, 2020 via email

@benzoid
Copy link
Author

benzoid commented Dec 20, 2020

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
Copy link
Author

benzoid commented Dec 22, 2020

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
Copy link
Owner

BobHanson commented Dec 22, 2020 via email

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