Attachments (0)
Change History (22)
comment:1 by , 5 years ago
comment:4 by , 5 years ago
Vincent, in 2014 via r7040, you've changed the build to "do not create empty package-info.class files in javac task". Do you still know, why?
At the moment, repeatedly running ant compile
recompiles all of the package-info.java
files (output generated using <javac listfiles="yes" ...>
):
compile-cots: [javac] Compiling 1 source file to /home/simon/src/josm.svngit/build [javac] /home/simon/src/josm.svngit/src/com/kitfox/svg/package-info.java compile: [javac] Compiling 120 source files to /home/simon/src/josm.svngit/build [javac] /home/simon/src/josm.svngit/src/org/openstreetmap/josm/actions/audio/package-info.java [javac] /home/simon/src/josm.svngit/src/org/openstreetmap/josm/actions/corrector/package-info.java [javac] /home/simon/src/josm.svngit/src/org/openstreetmap/josm/actions/downloadtasks/package-info.java [javac] /home/simon/src/josm.svngit/src/org/openstreetmap/josm/actions/mapmode/package-info.java [javac] /home/simon/src/josm.svngit/src/org/openstreetmap/josm/actions/package-info.java ...
comment:5 by , 5 years ago
I guess some tools choke with these empty class files (Jacoco or SonarQube maybe?)
comment:6 by , 5 years ago
Maybe, we can exclude all package-info.java
files from <javac>
? We don't use annotation on the package level?
comment:7 by , 5 years ago
I don't know if the class files are needed for the javadoc tool. That would be the only tool that could make use of these files.
comment:12 by , 5 years ago
Netbeans doesn't like it:
ant -f C:\\Users\\stefa\\Documents\\OSM\\josm\\core\\ide\\netbeans\\nbbuild.xml -Dnb.internal.action.name=rebuild clean jar Circular dependency: compile <- epsg-compile <- josmbase.epsg <- -post-compile <- compile BUILD FAILED (total time: 0 seconds)
comment:14 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:15 by , 5 years ago
I think r16349 is to blame. We need some changes in svn ignore, right?
C:\josm\core>svn st resources ? resources\CONTRIBUTION ? resources\LICENSE ? resources\README ? resources\REVISION
comment:20 by , 5 years ago
ant -DnoJavaFX=true test-unit-hardfail -Dtest.headless=true
doesn't like it:
BUILD FAILED /Users/runner/work/josm/josm/build.xml:384: Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any <presetdef>/<macrodef> declarations have taken place. No types or tasks have been defined in this namespace yet
In 16341/josm: