dev@jersey.java.net

ResourceConfig.PROPERTY_RESOURCE_PATHS

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 06 Nov 2007 11:38:12 +0100

Hi,

We are being a little inconsistent over the documented use of
ResourceConfig.PROPERTY_RESOURCE_PATHS.

The property value is String[] for the initialization property bag
passed to the DynamicResourceConfig constructor.

The property value is String for the servler init-param.

I am wondering if there is a way to unify this and just use the String
type with paths/jars separated using path separators? It is certainly
possible to support String and String[] but in the latter case every
entry may have one or more separated paths.

It might be tricky since the path separator is different on different
OSes. Is using the separator ';' for the servlet init-param a
restriction when deploying on the Windows platform?

Perhaps we can learn from Ant [1]:

"You can specify PATH- and CLASSPATH-type references using both ":" and
";" as separator characters. Ant will convert the separator to the
correct character of the current operating system."

Should we use this approach?

Paul.

[1] http://ant.apache.org/manual/using.html#path

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109