Thanks.  Perfect.

On Mon, Jan 25, 2010 at 3:34 PM, Justin Edelson <[email protected]> wrote:
> On 1/25/10 5:14 PM, ChadDavis wrote:
>>>
>>> IMO no ;) but there following method pretty much does what you'e
>>> looking for:
>>>
>>>
>>> http://jackrabbit.apache.org/api/1.6/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.html#registerNodeTypes(java.io.InputStream,%20java.lang.String,%20boolean)
>>>
>>
>> That method no longer exists in 2.0.  Seems like this method has been
>> replaced by methods that only work on NodeTypeDefinitions, and I don't
>> see any methods anywhere to produce those objects from a .cnd of xml
>> file.
>>
>> Please point me to the API if there's a way to do this in 2.0.
>>
>>
>
> I believe the correct call in 2.0 is
> org.apache.jackrabbit.commons.cnd.CndImporter. registerNodeTypes():
> http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/cnd/CndImporter.java?revision=816120&view=markup
>
> Justin
>
>>> cheers
>>> stefan
>>>
>>>
>>>>
>>>>
>>>
>>>
>
>

Reply via email to