You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@apache.org> on 2007/04/13 05:33:40 UTC

plugins 'test' target

Gav.... wrote:
> From: Gav....
> > 
> > Same with me, dispatcher broken.
> > 
> > I did an 'ant test' on the dispatcher plugin in trunk and the
> > dispatcher-glossary.xml fails validation due to not well formed markup.
> > Its
> > been fine
> > all this time but now fails, don't know when that started to happen.
> > The dispatcher plugin itself does download and unzip into the build
> > directory fine in RC1.
> 
> Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
> but then so does site-author for the glossary.xml.
> 
> I guess we need to deploy the Glossary Plugin.

My comments in the other branch of this thread
about using Forrest's own Ant are still relevant.

However, i now see the error that you talk about.

The reason that it did work for me was that i
had done 'forrest' in the whiteboard/plugins/o.a.f...dispatcher/
directory before doing 'ant test'. This meant that
the glossary plugin was already locally deloyed.

For some reason our plugin 'test' Ant target only
does a local deploy of the actual plugin that it is
tesing and not the other plugins that are required
by this plugin.

-David

Re: plugins 'test' target

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> Gav.... wrote:
>> From: Gav....
>>> Same with me, dispatcher broken.
>>>
>>> I did an 'ant test' on the dispatcher plugin in trunk and the
>>> dispatcher-glossary.xml fails validation due to not well formed markup.
>>> Its
>>> been fine
>>> all this time but now fails, don't know when that started to happen.
>>> The dispatcher plugin itself does download and unzip into the build
>>> directory fine in RC1.
>> Dispatcher then relies on the Glossary Plugin for the dispatcher-glossary,
>> but then so does site-author for the glossary.xml.
>>
>> I guess we need to deploy the Glossary Plugin.
> 
> My comments in the other branch of this thread
> about using Forrest's own Ant are still relevant.
> 
> However, i now see the error that you talk about.
> 
> The reason that it did work for me was that i
> had done 'forrest' in the whiteboard/plugins/o.a.f...dispatcher/
> directory before doing 'ant test'. This meant that
> the glossary plugin was already locally deloyed.
> 
> For some reason our plugin 'test' Ant target only
> does a local deploy of the actual plugin that it is
> tesing and not the other plugins that are required
> by this plugin.

Lets keep that as an issue for 0.9, it will not affect the distribution 
since plugin developers will either be committers (using svn head) or 
will have to provide contributions as a patch for review.

Ross

Re: plugins 'test' target

Posted by David Crossley <cr...@apache.org>.
Thorsten Scherler wrote:
> Ross Gardler wrote:
> > Gav.... wrote:
> > > Hmm, I just did a 'forrest' and it failed too due to validation 
> > > errors :-
> > > 
> > > ...
> > > validate-xdocs:
> > > D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
> > > patc
> > > her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
> > > content of
> > >  elements must consist of well-formed character data or markup.
> > > 
> > > BUILD FAILED
> > > D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
> > > document D:
> > > \Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
> > > tche
> > > r\src\documentation\content\xdocs\dispatcher-glossary.xml
> > > 
> > > Total time: 12 seconds
> > > ...
> > > 
> > > This is in upto date trunk.
> > 
> > I had that problem at some point. Then it "magically" disappeared.
> > 
> > Try doing a clean build.
> 
> David reported some similar issue and I myself had it a couple of days
> back (when I deployed the dispatcher).
> 
> Like David after a forrest it went away. 
> 
> It seems that the dtd is sometimes not resolved correctly.
> <!DOCTYPE glossary PUBLIC "-//Apache Forrest//DTD Glossary V1.0//EN"
> "glossary-v10.dtd">
> 
> Could be a problem with the catalog resolving.

No. I already explained this. The "test" target is not
locally deploying the required plugins, therefore there
is no glossary plugin available, so no DTD. Also Forrest
would not know how to process the glossary document.

See yesterdays issue at:
https://issues.apache.org/jira/browse/FOR-985

I tried to link straight away to the mail archives
but they were out-of-date at the time. Will try again.

-David


Re: plugins 'test' target

Posted by Thorsten Scherler <th...@apache.org>.
On Fri, 2007-04-13 at 12:00 +0100, Ross Gardler wrote:
> Gav.... wrote:
> > Hmm, I just did a 'forrest' and it failed too due to validation 
> > errors :-
> > 
> > ...
> > validate-xdocs:
> > D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
> > patc
> > her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
> > content of
> >  elements must consist of well-formed character data or markup.
> > 
> > BUILD FAILED
> > D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
> > document D:
> > \Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
> > tche
> > r\src\documentation\content\xdocs\dispatcher-glossary.xml
> > 
> > Total time: 12 seconds
> > ...
> > 
> > This is in upto date trunk.
> 
> I had that problem at some point. Then it "magically" disappeared.
> 
> Try doing a clean build.

David reported some similar issue and I myself had it a couple of days
back (when I deployed the dispatcher).

Like David after a forrest it went away. 

It seems that the dtd is sometimes not resolved correctly.
<!DOCTYPE glossary PUBLIC "-//Apache Forrest//DTD Glossary V1.0//EN"
"glossary-v10.dtd">

Could be a problem with the catalog resolving.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


Re: plugins 'test' target

Posted by Ross Gardler <rg...@apache.org>.
Gav.... wrote:
> Hmm, I just did a 'forrest' and it failed too due to validation 
> errors :-
> 
> ...
> validate-xdocs:
> D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
> patc
> her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
> content of
>  elements must consist of well-formed character data or markup.
> 
> BUILD FAILED
> D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
> document D:
> \Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
> tche
> r\src\documentation\content\xdocs\dispatcher-glossary.xml
> 
> Total time: 12 seconds
> ...
> 
> This is in upto date trunk.

I had that problem at some point. Then it "magically" disappeared.

Try doing a clean build.

Ross

RE: plugins 'test' target

Posted by "Gav...." <br...@brightontown.com.au>.

> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org]
> Sent: Friday, 13 April 2007 11:34 AM
> To: dev@forrest.apache.org
> Subject: plugins 'test' target
> 
> Gav.... wrote:
> > From: Gav....
> > >
> > > Same with me, dispatcher broken.
> > >
> > > I did an 'ant test' on the dispatcher plugin in trunk and the
> > > dispatcher-glossary.xml fails validation due to not well formed
> markup.
> > > Its
> > > been fine
> > > all this time but now fails, don't know when that started to happen.
> > > The dispatcher plugin itself does download and unzip into the build
> > > directory fine in RC1.
> >
> > Dispatcher then relies on the Glossary Plugin for the dispatcher-
> glossary,
> > but then so does site-author for the glossary.xml.
> >
> > I guess we need to deploy the Glossary Plugin.
> 
> My comments in the other branch of this thread
> about using Forrest's own Ant are still relevant.
> 
> However, i now see the error that you talk about.
> 
> The reason that it did work for me was that i
> had done 'forrest' in the whiteboard/plugins/o.a.f...dispatcher/
> directory before doing 'ant test'. This meant that
> the glossary plugin was already locally deloyed.

Hmm, I just did a 'forrest' and it failed too due to validation 
errors :-

...
validate-xdocs:
D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dis
patc
her\src\documentation\content\xdocs\dispatcher-glossary.xml:70:2: The
content of
 elements must consist of well-formed character data or markup.

BUILD FAILED
D:\Apache2\forrest\main\targets\validate.xml:136: Could not validate
document D:
\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.internal.dispa
tche
r\src\documentation\content\xdocs\dispatcher-glossary.xml

Total time: 12 seconds
...

This is in upto date trunk.

I don't want to hold up the release with 'dispatcher' and 'whiteboard' talk
but these plugins are supposed to be available for 0.8 users and should be
working. But I suppose this can be looked at again after the release.

Gav...

> 
> For some reason our plugin 'test' Ant target only
> does a local deploy of the actual plugin that it is
> tesing and not the other plugins that are required
> by this plugin.
> 
> -David
> 
> 
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.26/748 - Release Date: 4/5/2007
> 3:33 PM