- Notifications
You must be signed in to change notification settings - Fork59
Ian Darwin's semi-random collection of Java APIs, all subject to change without notice.
License
IanDarwin/darwinsys-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a collection of Java classes that I’ve found useful,classes which implement some useful operations that one would normallyhave to re-implement many times over.In most cases "found useful" means used more than once, but not always.Some people would call it a "dumping ground", a charge I would not defend too strenuously.
Notes:
In late 2019, the 'testing' package graduated to its own project,darwinsys-testing, to aid in modularizing this.A general-purpose library probably has no business dragging in a run-time dependencyon a testing library.
In 2017 the servlet and JSP packages graduated fromdarwinsys-api to darwinsys-ee; which you now may need!
See theAuthor’s Book Site and theO’Reilly Sitefor more information on the book which accompanies this source code.
The codebase has been together for years,and has somewhat grown like topsy, so Flopsy may be loppingoff some of its leaves as time goes by.He will try to avoidbreaking any of the projects that uses it; if he does so, pleaseget in touch in the usual way(s).The following have been lopped off recently:
calendar.Person - every app needs its own specific set of fields here(there is a ghost of it in one of the Test classes)
model.MiniPerson and model.MiniRecipe - as for Person above
util.Debug - please use a real logging package
util.PhoneNumberUtil - overlapped with tel.DialWords, so merged into it.
Java 17 (JDK 1.17) is now the minimum to build and use this API.For older releases, either stay on checkout 1.5.x, or just upgrade your JDK.
N.B. You MUST have a minimal $HOME/.db.properties to run the tests under Maven.This needs to be automated, but for now, there it is. Rather, here it is.Create the file, or, if you have the file, add these entries once.If using SQLRunner or any of the SQL Connection Utilities, you will haveto add an actual description of your database to this file, with a nameother than "test" afront each line.
#Thistotallyfake .db.propertiesshouldbecopiedtoyourhomedirectory.#ValuesherearejustforrunningtheJUnittestsontheConnectionUtilstest.DBDriver=com.darwinsys.sql.MockJDBCDrivertest.DBURL=jdbc:mock:it_is_a_mock_after_alltest.DBUser=testNametest.DBPassword=testPassword
About
Ian Darwin's semi-random collection of Java APIs, all subject to change without notice.