removes all .class files for which a corresponding .java exists. For anyclass file found without a matching source file, an error should be reported to stderr and non-zero returned
If all is specified then all .class files are removed regardless if any corresponding .java exists
An error value should be returned if any file fails to delete.
If ignore-read-only is specified then any read-only class files will be skipped, without causing any warnings or errors (although status information may be displayed to stdout)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Take for example a java source file called example.java. Say this file generates 2 class files, example.class and example$inner.class. When jmake finds the example.java file, it will delete (only if exists of course), example.class and example$*.class (notice the wildcard after the $). Since the naming convention of inner class filenames is always outer$inner.class, this cannot fail (unless I am somehow mistaken).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How about a feature similar to "make clean".
jmake clean [--all] [--ignore-read-only]
removes all .class files for which a corresponding .java exists. For anyclass file found without a matching source file, an error should be reported to stderr and non-zero returned
If all is specified then all .class files are removed regardless if any corresponding .java exists
An error value should be returned if any file fails to delete.
If ignore-read-only is specified then any read-only class files will be skipped, without causing any warnings or errors (although status information may be displayed to stdout)
doh.. two typos in the subject line. I should proof my posts before submitting :)
How will this feature handle inner classes or will this be done automatically?
Take for example a java source file called example.java. Say this file generates 2 class files, example.class and example$inner.class. When jmake finds the example.java file, it will delete (only if exists of course), example.class and example$*.class (notice the wildcard after the $). Since the naming convention of inner class filenames is always outer$inner.class, this cannot fail (unless I am somehow mistaken).