Commit Graph

456 Commits

Author SHA1 Message Date
mdb 003d16daf0 Moved the optimization compile parameter into a property to make it easier
to change and more obvious.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@463 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:33:49 +00:00
mdb bbb033b7e1 We should have been using setProperty() not put() and accordingly we can't
set a logger object in the properties, but must set the logger class.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@462 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:33:03 +00:00
mdb 104c944c92 Be smarter about extracting the servlet context from the application
context reference.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@461 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:32:34 +00:00
mdb c54b4cfb08 Add servlet context logger during servlet initialization phase. Allow
servlet context to be specified at construct time to servlet context
logger.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@460 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:13:47 +00:00
mdb 0099205ac9 Added a log system implementation that routes log messages to the servlet
context so that we don't have to fiddle around with Velocity trying to
create velocity.log files in inopportune places that collide with
velocity.log files from other Velocity-using applications.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@459 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 21:08:35 +00:00
mdb 5cbee6d365 Created an iterator that iterates over iterators.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@458 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-20 03:35:53 +00:00
mdb 9e11a32409 Added support for toString()ing points and dimensions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@457 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-18 04:01:08 +00:00
mdb 06d5952ad1 Created a rule for checking file format version numbers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@456 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:55:35 +00:00
mdb a95aa21cfe Created an XML Digester rule that allows the calling code to invoke
whatever string to argument translations it desires and then call whatever
method it wants to on the object on the top of the stack.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@455 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:46:48 +00:00
mdb b52216a91d Created SetFieldRule which allows the XML Digester to set public fields on
objects with automatic conversion from a string to the appropriate field
type (currently supports int, Integer, String, int[] and String[]).


git-svn-id: https://samskivert.googlecode.com/svn/trunk@454 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:45:52 +00:00
mdb 72a3f28d4d Formatting.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@453 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:45:02 +00:00
mdb f6a1538b4f Require that JUnit forks so that we don't end up with wacky conflicts
between xerces.jar loaded by ant and our own copies of an XML parser
implementation.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@452 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:44:24 +00:00
mdb 896c1ae4da Added header.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@451 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-17 03:43:48 +00:00
mdb 6767345064 If the connection chokes while we're opening it, we need to let the
connection provider know that it's no longer any good.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@450 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-10 04:42:24 +00:00
mdb 86edceb739 OptimizeIt!
git-svn-id: https://samskivert.googlecode.com/svn/trunk@449 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-10 00:37:27 +00:00
mdb e244fc0ac0 Modified simple parser to take either an absolute path to the file being
parsed or an input stream.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@448 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-09 02:54:27 +00:00
mdb ed62ee452f Bring build file up to date with latest template. It would be neat if
there was some easy way to include the default template. Will have to look
into that.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@447 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 19:41:34 +00:00
mdb db5477a804 Allow the explicit specification of the classpath when invoking viztool.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@446 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 19:38:54 +00:00
mdb 8a09cf1852 Changed "Venissonne!" to "Venison!". No need to be indiscreet.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@445 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 18:47:08 +00:00
mdb a36a07ba00 Converted tiles image to 7-bit color palette from 24-bit.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@444 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 08:06:27 +00:00
mdb 80a1410589 Don't draw the claim group numbers.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@443 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 08:01:42 +00:00
mdb c24dd1926b Added code to display tiles as images.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@442 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 08:00:22 +00:00
mdb c69f170765 SiteResourceLoader no longer automatically falls back to the servlet
context, so we have to simulate that ourselves.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@441 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:57:18 +00:00
mdb 95a4918665 Don't find anything with Test in it, just anything that ends with Test.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@440 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:56:59 +00:00
mdb 5b0f62c81d Created NestableIOException for things that need to throw an IOException
that contains another exception.

Use NestableIOException in SimpleParser when the parser chokes.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@439 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-08 01:17:41 +00:00
mdb 674bfee950 Log when we set a tile to be placed on the board.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@438 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-07 18:03:33 +00:00
mdb d23fa8e8a7 A few changes:
1. Make sure a tile or piecen submitted is submitted by the current turn
holder.

2. Wait to end the turn until after we've received the elementAdded
notification for piecen placement and done the scoring. This ensures that
all events that need to be dispatched before the turn ends are dispatched
and that piecen removal is completed before we end the game and
potentially do more scoring.

3. When scoring a tile, always use an array that we can modify during the
scoring process to ensure that we don't score a claim group twice by
virtue of it being completed by a tile with two of the same feature, both
of which are linked into the same claim group. By removing piecens from
the array immediately, we can tell that we scored a claim group the first
time because the piecens belonging to the claim group will have been
removed from the local array whereas they would not yet have been removed
from the distributed set by virtue of the element removed events not yet
having been dispatched. Distributed programming is tricky.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@437 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-07 10:42:24 +00:00
mdb c87ecd0eb3 When scoring a feature, we can't simply count up the elements in the claim
group list because that may contain the same tile multiple times when
tiles that contain multiple features are included in a single claim group
with both of their features. So we have to do some extra jockeying to
ensure that we count a tile only once.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@436 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-07 10:39:00 +00:00
mdb 0eb0714926 Removed some debug logging.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@435 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 20:55:51 +00:00
mdb 383632dd53 A crapload of changes: load more stuff from servlet config; message
manager now supports site-specific translation messages; application
automatically configures Velocity to use things like the
SiteResourceManager and the ImportDirective.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@434 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 20:16:47 +00:00
mdb ef8376124a Pass SiteResourceLoader in constructor, changed name to
SiteJarResourceLoader, no longer pass fallbackToServletContext argument.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@433 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 19:19:47 +00:00
mdb 70e6a94aa4 Commented out some debug log messages.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@432 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:37:57 +00:00
mdb 8d4c490c0d Added code to cache resolved resource bundles in the request object so
that we don't have to re-resolve the bundle for every single message
lookup.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@431 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:35:54 +00:00
mdb 864d282c3d Activate caching for the time being.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@430 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:22:39 +00:00
mdb 0d8cfc27c3 Need to explicitly check to make sure the site-specific jar file exists.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@429 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 05:05:28 +00:00
mdb 3be945b22a Many changes to provide site-specific resource loading (we're almost
there) and to bring things up to date with some Velocity changes Geir made
at my prompting.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@428 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:49:32 +00:00
mdb 4d10799b9e Added ability to retrieve last modified time of the site-specific jar
file.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@427 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:48:54 +00:00
mdb d9622d84de Added clarification to documentation indicating the valid range of values
for site identifiers.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@426 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:48:35 +00:00
mdb e65d5436a7 Documentation fix.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@425 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 04:48:08 +00:00
mdb 5f85b12298 Created a version of ListUtil that works with arrays of ints.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@424 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 02:13:29 +00:00
mdb 9f3f17633a Clear out the last element of the array when the rest of the array is
shifted down to remove an element.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@423 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-06 02:13:09 +00:00
mdb 3148bf5c76 Added a version of getResourceAsStream() that takes the site identifier
for when the site has already been identified.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@422 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 18:08:01 +00:00
mdb dad303a022 Notes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@421 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:21:30 +00:00
mdb 6e2bf74078 Updated library dependencies.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@420 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:18:10 +00:00
mdb c5fdf91de8 Created a testing framework for the samskivert library based on JUnit and
ant. The test drivers are located in a separate hierarchy and are built
and invoked as a single ant target.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@419 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:13:25 +00:00
mdb 820c633b73 Created site resource loader which loads resources based on the site
identified from an http request. Also created a unit test driver for the
loader.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@418 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-05 09:12:31 +00:00
mdb 24b66722d2 Geir didn't like velocityWillInit(), so he created initVelocity() which we
override when setting the application context.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@417 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 18:46:48 +00:00
mdb c0ca26e578 Have to set the application context in velocityWillInit() (which I added)
so that it's around before Velocity.init() gets called, which happens in
super.init().


git-svn-id: https://samskivert.googlecode.com/svn/trunk@416 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:30:54 +00:00
mdb 346c8c8797 Be more robust and log a warning if we're used without first properly
setting the servlet context into the application context.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@415 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:30:24 +00:00
mdb f09ce0d0fc Modified dispatcher servlet to stick servlet context into Velocity's
application context and implemented a servlet context resource loader
which loads resources via ServletContext.getResourceAsStream().


git-svn-id: https://samskivert.googlecode.com/svn/trunk@414 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-11-02 02:03:23 +00:00