I spent a lot of time looking at whats was going on, but that code is
*extreamly* difficult to read. As far as I can tell, it looks like it
has one thread reading the shapefile and another writing to it. That
should *always* throw an exception as the write operation seems to
replace the original file which seems pretty bad is someone's reading
the file that's being replaced.
But, its failing on the .prj file and the reader is reading the .shp
file. In fact, it appears the file that the thread is reading has
**nothing at all** to do with the shapefile! The thread seems to be
reading some random file it creates itself while the shapefile datastore
system is using its own files. Weird.
I think the test case is a bit screwy, but there's no comments to say
what its testing so I have no idea if its doing what its supposed to do!
The shapefile datastore doesnt have a nice summary of what it does, so
its hard to figure out too (like what, exactly, does the useMemoryMap
do). Perhaps someone who knows the datastore (and the test cases) can
take a closer look at.
But, it seemeds to have fixed itself. I dont know why, but I:
1. killed all the files in my tmp directory
2. re-checked out the project.
3. put the project in eclipse (maven eclipseAll) so I could debug the
testcase
So, others who have troubles building the shapefile plugin can try the
above and see if it works.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel