Releases: sbabcoc/Java-Utils
Add documentation and attributions for JarUtils
This release is focused on adding documentation for the JarUtils class. After all, features that no one can find don't exist.
I also added attributions regarding the provenance of the core function of this class. Credit where credit is due!
Add new JarUtils class
This release adds a new JarUtils class that provides methods related to Java JAR files:
- getClasspath assemble a classpath string from the specified array of dependencies.
- findJarPathFor find the path to the JAR file from which the named class was loaded.
- getJarPremainClass gets the
Premain-Class
attribute from the indicated JAR file.
These methods are especially useful for building command lines to spawn Java processes.
Expand documentation, with special attention to VARAGS
This is a documentation-only release, with no code changes. The implementation of stored procedure collections in DatabaseUtils
has always supported VARARGS, but the feature was only mentioned in passing. I expanded the JavaDoc for the SProcAPI
interface to add details and a sample implementation. I also added details and a sample implementation to the QueryAPI
interface, including creation of a configurable query collection with the Settings API
.
Enable clients to modify path; add unit tests
In this release, I added the ability for clients to modify the paths associated to Maven reports directory constants.
Upgrade several dependencies
This project was behind the times on its dependencies. The most urgent of these was Guava (19.0 => 28.1-android). The older release contained a defect that could allow an attacker to execute malicious code.
Finish conversion to Java 7
Add tool chain to ensure compilation with JDK 7; replace Java 8 implementation and libraries with equivalent Java 7
Enable inclusion in Java 7 projects
Replace Java 8 implementation with equivalent Java 7 code
Add class to enable concise declarations of named parameters
This release adds a class that implements encapsulation of named parameters: - Params
. This class enables concise declarations of named parameter collections, and its use of the Optional
class makes it very flexible.
PathUtils: Revise path matcher regex to support names with embedded spaces
java-utils-1.7.3 [maven-release-plugin] copy for tag java-utils-1.7.3
Add unit tests for UncheckedThrow class
java-utils-1.7.2 [maven-release-plugin] copy for tag java-utils-1.7.2