That was the first thing I tried.  Did not work.

If the URL for properties is going to be usable, can we also have a URL
for header?

-----Original Message-----
From: Edwin Punzalan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 06, 2005 22:41
To: Maven Developers List
Subject: Re: [m2] Question About Checkstyle Property Specification



when setting the URL in the configuration, try this:

    <propertiesURL 
implementation="java.net.URL">http://host.name/m2/style.xml</propertiesU
RL>


This may become a problem, I guess we should change the parameter to
String.


Allison, Bob wrote:

>In our m102 environment, we have a style.xml file and a header.java
file
>at the top directory of the build tree.  The top-level directory's
>project.xml contains the settings for all subprojects, including the
>reports to be generated in each project.  To be able to perform style
>checking on each subproject (which is two levels below the top level),
>the project.properties at the top level contains:
>   maven.checkstyle.properties=${basedir}/../../style.xml
>   maven.checkstyle.header.file=${basedir}/../../header.java
>Unfortunately, this has the side effect that if any projects in the
>directories just below the top level has Java code in it, we cannot
>generate documentation for the project since the pointers in the two
>properties shown above don't point to the correct directory.
>
>In the m2 checkstyle plugin, I noticed that there is a parameter named
>"propertiesURL" which would seem to allow me to use a URL rather than
>file reference so that all of the subprojects can reference the same
>file.  If I try to use this parameter, however, I get an exception:
>   Cannot assign configuration entry 'propertiesURL' to 'class
>java.net.URL' from 'http://host.name/m2/style.xml', which is of type
>class java.lang.String
>
>Is there a means to set a filename parameter relative to the top-level
>project in such a way as to allow subprojects in other directories to
>inherit the filename and use the file without having to know the path
to
>the parent project?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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


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

Reply via email to