W3C home > Mailing lists > Public > public-unicorn@w3.org > February 2011

Re: A fully local Unicorn

From: Thomas Gambet <tgambet@w3.org>
Date: Mon, 14 Feb 2011 09:42:19 -0500
Message-ID: <4D593F4B.1090907@w3.org>
To: Fabrice Bonny <fabrice.bonny@temesis.com>
CC: Jean-Guilhem Rouel <jean-gui@w3.org>, public-unicorn@w3.org

I gave fabrice detailed instructions on a private thread. Here is the 
sum up:

- Use your own config files. Copy WebContent/WEB-INF/conf somewhere, 
remove the .default extensions, and add this folder to your server 
- Regenerate the war without the default conf files: ant war. You'll 
have to delete the content of the build directory first.
- Use local contracts. Copy the WebContent/WEB-INF/resources/contracts 
folder and edit the observers.properties configuration file to point to 
your local files (eg markup-validator = 
- Edit the contracts to point to your local instances of the validators (eg
	<resources base="http://markup-validator.localhost/">
		<resource path="check">
- (optional) Edit WebContent/WEB-INF/resources/tasklist/tasklist.xml to 
remove validators you don't use.


Le 2/14/2011 4:21 AM, Jean-Guilhem Rouel a écrit :
> Le Wed, 09 Feb 2011 09:56:51 +0100, Fabrice Bonny
> <fabrice.bonny@temesis.com> a écrit:
>> Hi,
>> we have a running Unicorn and a running markup validator on the same
>> server and we are trying to make the first one communicate with the
>> second. We have changed some contracts but nothing seems to work, our
>> Unicorn is still sending data to the W3C markup validator. What is the
>> way to do such a simple thing ?
>> Thanks,
>> Fabrice Bonny
> Hi,
> You need to update observers.properties as well. This file tells Unicorn
> where the contracts are. And by default it contains URIs of W3C
> validators. You can use local filesystem paths in that file, such as:
> [[
> markup-validator = file:///etc/unicorn/contracts/markup-validator.wadl
> ]]
> Regards
Received on Monday, 14 February 2011 14:42:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:39:40 UTC