You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build process automatically (re-)generates src/org/aavso/tools/vstar/ui/resources/RevisionAccessor.java, containing revision information.
RevisionAccessor.java is thus modified and appears as a modified file that needs to be committed. It is unclear if / when it should be committed.
In principle, since the fie is generated by build (ant build [*]), it should not need to be in the git repo to begin with. However, some workflows, e.g., eclipse build, do not generate it (because they are not ant driven). and will breakdown if we simply remove it from git repo (and add it to .gitignore list).
[*] It's in compile_src target, before the actual javac happens
generate and store the revision information in a resource file to be bundled to the jar
modify RevisionAccessor.java to read the values from the resource file
Further RevisionAccessor.java so that if the resource file is missing (for eclipse build case), it does not throw exception, and provide some dummy placeholder value instead.
dbenn
changed the title
Build nuisance: RevisionAccessor.java is generated by build. Unclear it it needs to be committed
Build nuisance: RevisionAccessor.java is generated by build. Unclear if it needs to be committed.
Aug 7, 2023
Build process automatically (re-)generates
src/org/aavso/tools/vstar/ui/resources/RevisionAccessor.java
, containing revision information.RevisionAccessor.java
is thus modified and appears as a modified file that needs to be committed. It is unclear if / when it should be committed.In principle, since the fie is generated by build (
ant
build [*]), it should not need to be in the git repo to begin with. However, some workflows, e.g., eclipse build, do not generate it (because they are notant
driven). and will breakdown if we simply remove it from git repo (and add it to.gitignore
list).[*] It's in
compile_src
target, before the actual javac happensVStar/build.xml
Lines 76 to 91 in 0115ad7
The text was updated successfully, but these errors were encountered: