Closed orionlee closed 1 year ago
Thanks for these first contributions to VStar Sam. It's welcomed. Also, I'll give you branch creation privileges so you don't have to fork the repo.
I will merge this PR with the current changes.
Good question re: src/org/aavso/tools/vstar/ui/resources/RevisionAccessor.java
. I've never been totally happy with the approach. Your suggestion is reasonable. The key thing is that the REVISION
and BUILD_TIME
need to be present in the built classes. Removing the generated file from git and adding it to .gitignore
would still permit that.
One difference from VeLa
generated source files is that these are generated both in Eclipse and in Ant, whereas RevisionAccessor.java
is not, so may yield build problems when debugging in Eclipse, for example.
My inclination is to create an issue or at least another PR for this so we can talk about approaches. Would you mind doing that?
One difference from VeLa generated source files is that these are generated both in Eclipse and in Ant, whereas RevisionAccessor.java is not, so may yield build problems when debugging in Eclipse, for example.
Ah, I was afraid that'd be catches like that. Anyway, it's not too big of a problem.
The PR is primarily to fix the plugin build problems on Windows due to incorrect assumption on java files encoding:
The PR also:
encoding="UTF-8"
on the rootbuild.xml
, to be defensive..gitignore
so that generated sources for VeLa are ignored, and will not be accidentally committed.Note: following the similar logic in (2), I believe generated
src/org/aavso/tools/vstar/ui/resources/RevisionAccessor.java
can be removed from git repository and be added to.gitignore
as well. It's potentially more intrusive so I shy away from making the change.