Commit Graph

3130 Commits

Author SHA1 Message Date
Ray J. Greenwell 0436d95cea Logging improvements for WeakObserverList.
- De-static checkedApply(). It should be overrideable and know
  other things about the ObserverList that it belongs to.
- Created an overrideable observerForLog().
- Have the DerefOp include the original Op's toString() in its own.
2015-05-04 17:48:00 -07:00
Michael Bayne 3212061b2b Back to using script & repeating mvn command.
after_script runs *after* the cache update process, so it deletes the installed
artifacts too late. Bad Travis, no cookie.
2015-03-16 20:10:38 -07:00
Michael Bayne 2dc23c2b2e Use after_script to avoid overwriting script. 2015-03-16 20:05:12 -07:00
Michael Bayne 4db4804f07 Ah, we need to run Maven ourselves now. 2015-03-16 20:01:00 -07:00
Michael Bayne 18107f039f Cache the .m2 directory on Travis.
This should vastly speed up builds and download about a gajigabit less data.
2015-03-16 19:54:52 -07:00
Michael Bayne 1c341a3277 Add doclint config. 2015-03-14 10:11:15 -07:00
Michael Bayne 94f530642a Reference 1.9 release. 2015-03-12 08:42:41 -07:00
Michael Bayne 8b30369177 [maven-release-plugin] prepare for next development iteration 2015-03-12 08:39:48 -07:00
Michael Bayne fd730f2706 [maven-release-plugin] prepare release samskivert-1.9 2015-03-12 08:39:44 -07:00
Michael Bayne 258e27dac4 Get rid of TestUtil and related hackery.
The SiteResourceLoader is some ancient stuff that's not used anywhere any more,
and there's no use in keeping this crufty crap around to test it. I'd nix it
too but I don't want to cause yet more trouble.

TestUtil was weird and a bad idea and good riddance to it as well.
2014-11-17 14:23:41 -08:00
Michael Bayne c066cbf044 Specify test_dir in the unit test.
Now that it's consistent, we can avoid extra build shenanigans.
2014-11-17 14:07:38 -08:00
Michael Bayne 3cb7407643 Put Ant build results in the same place as Maven. 2014-11-17 14:07:38 -08:00
Jamie Doornbos 5c57d34d16 Minor javadoc fixes. 2014-11-17 12:33:57 -08:00
Jamie Doornbos 3809bec42e Profile for deploying to a directory. 2014-11-14 16:38:13 -08:00
Jamie Doornbos f4e1d367ba Move eclipse hackery into a profile. 2014-11-14 16:38:00 -08:00
Mark Johnson 4e9ef351ff Preparing for 1.9-SNAPSHOT development. 2014-10-14 14:18:32 -07:00
Mark Johnson 525948b651 Preparing for samskivert-1.8.3 release. 2014-10-14 14:15:11 -07:00
Michael Bayne d83760bb39 No auto-commit for tx connections. 2014-10-01 14:44:16 -07:00
Michael Bayne 1a822593fb Tx connections are always read-write. 2014-10-01 11:29:45 -07:00
Michael Bayne 90e45a4ad1 Some infrastructure for transaction support.
ConnectionProvider may normally return the same connection for a call to
getConnection(), so we add a separate getTxConnection() which is guaranteed to
always return a connection that's not in use by anyone else.

The DataSourceConnectionProvider already meets that requirement because it
returns connections from a pool, but the StaticConnectionProvider does not. In
the latter case, we just open a new connection to the database every time you
do a transaction. Since StaticConnectionProvider is only used for testing (in
conjunction with Depot anyway, Yohoho uses it in production IIRC), this is not
a big deal.
2014-10-01 10:36:33 -07:00
Michael Bayne fafb6c8fd6 Merge branch 'master' of https://github.com/threerings/samskivert 2014-09-30 15:37:06 -07:00
Michael Bayne 7c9d4456d6 Omit public from interface method decls. 2014-09-30 15:36:38 -07:00
Ray J. Greenwell a9dc20ce14 Stop supporting Invoker.setDefaultLongThreshold(). 2014-06-25 15:49:46 -07:00
Michael Bayne de41d0384a Let's have a Travis build.
I like Travis, he's a nice guy.
2014-06-25 15:11:32 -07:00
Michael Bayne 612430bdde [maven-release-plugin] prepare for next development iteration 2014-06-25 13:51:09 -07:00
Michael Bayne 27504ec816 [maven-release-plugin] prepare release samskivert-1.8.2 2014-06-25 13:50:47 -07:00
Michael Bayne 89c6d3b3ab Er mah gerd. More Maven jockeying.
Apparently the "check for updated versions of plugins" plugin missed a few
spots. Also I may or may not have to specify 2.8 for maven-dependency-plugin to
avoid a bullshit CNFE during the actual release process (which conveniently
comes after Maven has committed and pushed all of its release bullshit to Git,
meaning I can't fix the release after the fact and have to make a new release).

Oh computers...
2014-06-25 13:47:40 -07:00
Michael Bayne 70883ebd4f [maven-release-plugin] prepare for next development iteration 2014-06-25 13:41:00 -07:00
Michael Bayne be8400a33a [maven-release-plugin] prepare release samskivert-1.8.1 2014-06-25 13:40:57 -07:00
Michael Bayne 7d508b440c Oh for the love of Pete. 2014-06-25 13:38:59 -07:00
Michael Bayne b8a7818762 [maven-release-plugin] prepare release samskivert-1.8 2014-06-25 13:38:16 -07:00
Michael Bayne bc25d07179 OMG Maven WTF. 2014-06-25 13:36:17 -07:00
Michael Bayne da01d757fb [maven-release-plugin] prepare release samskivert-1.8 2014-06-25 13:34:27 -07:00
Michael Bayne 61e7b481ff Various plugin updates. 2014-06-25 13:32:34 -07:00
Michael Bayne bb2b9cfdd5 Roll back, roll back, Maven done got hosed. 2014-06-25 13:32:03 -07:00
Michael Bayne 90fa2076c9 [maven-release-plugin] prepare for next development iteration 2014-06-25 13:20:27 -07:00
Michael Bayne 61cf3038e4 [maven-release-plugin] prepare release samskivert-1.8 2014-06-25 13:20:23 -07:00
Michael Bayne 8d6f9c216f A bunch more Javadoc fixes.
Wow, the 1.8 javadoc tool is much stricter. For the best I suppose, though
requiring a <caption> for a <table> seems a bit excessive.
2014-06-25 13:16:45 -07:00
Michael Bayne a9de4b243d Javadoc tweak.
1.8 javadoc now freaks out about bare < and > in Javadoc. Yay!
2014-06-25 12:59:07 -07:00
Michael Bayne be29f48e9e A couple of POM tweaks.
- bump compiler plugin to 3.1 and fix wonky arg passing
- bump lgo4j 2.0 depend to rc2
2014-06-25 12:53:58 -07:00
Ray J. Greenwell a225726f8c Parse booleans like Config does.
Incorrectly.
2014-06-04 10:48:39 -07:00
Ray J. Greenwell 1e7934d9c8 Fix some NPEs and other exceptions in property change handling.
For the 'IntAdjust' and 'BooleanAdjust' classes, handle
PropertyChangeEvents where the values are null or Strings instead of
the expected Integer or Boolean types, respectively.

It's kinda amazing that this has never come up before.
Each Adjust stores to a PrefsConfig, which is backed by a Properties,
which stores all values as Strings. Not only that, but it does not
store in any way what the expected type of a property is.
It is determined by which getter you call:
_cfg.setValue("foo", "2");
_cfg.getValue("foo", (String)null); // returns "2"
_cfg.getValue("foo", 0);            // returns 2
_cfg.getValue("foo", 3.0f);         // returns 2.0f

If a property is removed, then null is the new value, and it also
doesn't know what type the old value was. These runtime adjusts
need to be able to revert to their default value and they will
always need to be able to potentially parse a String. And since
someone can legally change the type of a property, they need
to be able to recover if the property is a type they don't even
expect.

The real problem here is using shitty Properties for backing,
and/or not storing something more complex than the simple toString()
representation of the value.

Don't interpret this fix as a blessing to use these old, old things.
I'm supporting legacy code.

The other adjust subclasses weren't ...adjusted... because my project
doesn't use them and I'm not going to dig in and test them.
2014-06-04 10:23:44 -07:00
Jamie Doornbos 1c4c379627 Support log4j 2.x.
This is an RC dependency. We can update that when log4j 2.0 is release, but that shouldn't be
necessary.
2014-05-27 14:42:44 -07:00
Ray J. Greenwell bba7ee14be Preparing for 1.8-SNAPSHOT development. 2014-05-20 11:26:20 -07:00
Ray J. Greenwell 20a247e509 Preparing for samskivert-1.7.4 release. 2014-05-20 11:23:10 -07:00
Michael Bayne 93109a004f Yet more lastInsertedId revamping. Third time's the charm. 2014-05-02 13:45:10 -07:00
Michael Bayne 4efae53621 Handle null uniqueColumns. 2014-05-02 13:13:11 -07:00
Michael Bayne d870dd2fac Merge branch 'master' of https://github.com/threerings/samskivert 2014-05-02 13:10:32 -07:00
Michael Bayne 5356672130 Make lastInsertedId return null on failure.
Since we're rejiggering, we'll take this opportunity to eliminate the use of -1
as a sentinel id. Maybe your database id generator returns -1. Unlikely, but
not impossible.
2014-05-02 13:07:05 -07:00
Ray J. Greenwell a641e6c502 Fix. 2014-05-02 11:50:41 -07:00