ksclarke / freelib-utils Goto Github PK
View Code? Open in Web Editor NEWA small collection of Java utility classes
Home Page: http://projects.freelibrary.info/freelib-utils/
License: Mozilla Public License 2.0
A small collection of Java utility classes
Home Page: http://projects.freelibrary.info/freelib-utils/
License: Mozilla Public License 2.0
Add another option to avoid resetting a system property that has already been set.
Failing because test paths are hard-coded. Duh. Rewrite the tests.
Would be nice if xmlresourcebundle was embedded in the logger rather than having to write stuff like:
LOGGER.warn(BUNDLE.get("INGEST_FILE_FAIL", jp2));
There is a i18n extension to slf4j but I don't think it is as simple as this would be.
Two ClasspathUtils tests fail when run in mvn site:deploy
but run fine with mvn install
See: http://freelibrary.info/freelib-utils/surefire-report.html#info.freelibrary.utilClasspathUtilsTest
The XML resource bundle doesn't work when the modern environment uses named modules. Upgrade to the new ResourceBundleProvider interface to support newer modular environments.
This method doesn't catch child directories if the aDeepConversion boolean is false. It should report files and dirs that are children of the supplied directory, not just files.
Create the corresponding BiConsumers to the Consumers already being used.
Add line numbers to warn, info, and error(?)
Add an optional properties file transcoder for the I18nCodesMojo. This will create a properties file from an XML resources file, if configured to do so.
Instead of typing:
mvn info.freelibrary:freelib-utils:generate-codes -DmessageFiles=$(find src -name *_messages.xml)
One could just type:
mvn info.freelibrary:freelib-utils:generate-codes
if the Maven plugin assumed a *_messages.xml file if a specific messageFiles was not supplied.
JDK 8 provides a Base64 implementation now so we can remove that dependency.
To reduce the size of the jar, split out the Maven plugins. They're never needed as dependencies in a project so shouldn't be included in the utils jar.
StringUtils.formatMessage(String, String[]) is the most obvious, but do throughout.
Provide a way to getenv with a fallback in the same way getProperty works.
Updating to JDK 17's doclet broke the Javadocs CSS. This has been upstream in freelib-build-tools. Pull the new CSS into this project.
PairtreeRoot overrides File and this behavior is not what one would expect from a File.
There are logging messages in these classes that are in the freelib-utils_messages file but not in the messages files of classes that extend them. The result is the message codes come out in the debug messages instead of actual messages. Fix this by removing the debugging logging or have them pull from a different bundle_name than the one that's passed into the extended class.
RIght now this is manually put into a Constants class. It could alternatively be supplied through the XML file and put into the MessageCodes class as a static constant. I think the best name for it would be: MessageCodes.BUNDLE
Should be able to do a regex ignoring case without having to build that into the expression; Java RE has a flag for this right?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.