I can find RESTUtils using the old class.
final File dir = GeoserverDataDirectory.findCreateConfigDir("data");
The only really used method in here is
GeoserverDataDirectory.findDataFile( url ). It does the magic of
untangling a URL relative to the data directory. But surprisingly it
does not work as consistently in test cases:
1) FileModelTest - accidentally functions with a null baseDirectory
during tests - and behaves differently when used in the actual
application
2) OvverideTransformationsTest - makes use of various geotools
factories - with a null baseDirectory - while the catalog is setup,
and then calls CRS test it all for real once the baseDirectory.
But I am off topic and can save it for the pull request.
--
Jody
Jody Garnett
On Thu, Apr 17, 2014 at 8:30 PM, Andrea Aime
<[email protected]>wrote:
> Hi,
> made a quick search, on trunk rest-config it seems that the old
> GeoServerDataDirectory is only used in a test class, CoveragesStoreTest
>
> Cheers
> Andrea
>
>
> On Thu, Apr 17, 2014 at 12:16 PM, Andrea Aime <
> [email protected]> wrote:
>
>> On Thu, Apr 17, 2014 at 12:13 PM, Jody Garnett <[email protected]>wrote:
>>
>>> There may be some overlap with the work I am doing - was just in the
>>> REST code today making it avoid the use of the old vfny
>>> GeoserverDataDirectory class.
>>>
>>
>> Hum.. uh?
>> The code that I was talking about already uses the loader:
>>
>> directory = catalog.getResourceLoader()
>> .findOrCreateDirectory("data", workspaceName,
>> storeName);
>>
>> Cheers
>> Andrea
>>
>> --
>> ==
>> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
>> for more information.
>> ==
>>
>> Ing. Andrea Aime
>> @geowolf
>> Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via Poggio alle Viti 1187
>> 55054 Massarosa (LU)
>> Italy
>> phone: +39 0584 962313
>> fax: +39 0584 1660272
>> mob: +39 339 8844549
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>
>
>
> --
> ==
> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
> for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel