>> The problem is that in my project.xml I'm using the
>>
>> <sourceDirectory>${basedir}/src/java</sourceDirectory>

However, I am seeing exactly the same problem - and my src path is relative
(ie just "src/java").

I have raised a Jira Bug.

-Nick






Extranet
[EMAIL PROTECTED] - 14/06/2003 00:23


Please respond to [EMAIL PROTECTED]
To:    users

cc:


Subject:    Re: Problem with bew Checkstyle plugin


On Fri, Jun 13, 2003 at 04:40:44PM +0800, Willie Vu wrote:
> Vincent,
>
> After I changed antlr plugin to use 2.7.2, I run into this problem:
>
> XXX.java: 0: Got an exception - java.lang.ClassCastException
>
> What is the problem?
>
> Willie
>

I think, I've ran into the same problem - and nothing to do with
the new checkstyle jar in my case. You cab check this by looking at
the checkstyle reports in target - they are all right at me.

The problem is that in my project.xml I'm using the

    <sourceDirectory>${basedir}/src/java</sourceDirectory>

convention, and in the checkstyle jsl, that formats the raw checkstyle
report expects the sourceDirectory as a ${baseDir} relative value (line
56):

   <j:set var="fullSrcDir" value="${basedir}/
   ${pom.build.sourceDirectory}"/>

And the whole jsl processing is went wrog from this, as the transformer
would be working with a ${basedir}/${basedir}/<basedir_relative_filename>
from here. Sometimes it causes exception, sometimes simply wrong.

A dirty/quick cure to modify project.xml not to use ${basedir} (altough
if you use reactor you may get troubles with that). I'm thinking how to
patch the jsl script, just wrote this, maybe more knowledgeable jelliers
are faster at fix than I am.

incze

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]










This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to