You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/07/19 03:24:26 UTC

[jira] Created: (MPCHECKSTYLE-24) checktyle looks for headerFile in wrong directory when ran in multiproject mode

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPCHECKSTYLE-24

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPCHECKSTYLE-24
    Summary: checktyle looks for headerFile in wrong directory when ran in multiproject mode
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-checkstyle-plugin
   Versions:
             2.4.1

   Assignee: 
   Reporter: Jerome Lacoste

    Created: Sun, 18 Jul 2004 9:23 PM
    Updated: Sun, 18 Jul 2004 9:23 PM

Description:
Not sure if it is a plugin problem but it sounds like.
I run a multiproject build.
Inside one subdir (e.g. main), I have a checkstyle report configured. The checkstyle plugin is configured as such in the main/project.properties:
maven.checkstyle.properties=${basedir}/checkstyle.xml

This checkstyle config contains:

      <!-- Header -->
        <module name="Header">
            <property name="headerFile" value="cruisecontrol.header"/>
            <property name="ignoreLines" value="3"/>
        </module>

Running maven in the main directory works great. Running it from the upper level directory fails in the checkstyle plugin because the checkstyle ant task doesn't find the header file.

I workaround the problem by copying the main/cruisecontrol.header file in the upper directory, from where the multiproject is built.

I am not sure there is a solution to that problem. I am willing to spend some time to fix it if I get some guidance.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPCHECKSTYLE-24) checktyle looks for headerFile in wrong directory when ran in multiproject mode

Posted by "Wouter Hermeling (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPCHECKSTYLE-24?page=comments#action_58420 ] 

Wouter Hermeling commented on MPCHECKSTYLE-24:
----------------------------------------------

I have an issue with the new checkstyle plugin version (3.0) too when running in a multiproject build.

The problem is, is that the checkstyle files are now by default generated under the /target/checkstyle dir. When the maven site is generated, the navigation links from the checkstyle pages are broken. This is because the navgation links are relative and the same navigation is applied to all docs for the maven site. In the case of the checkstyle files - which are 

> checktyle looks for headerFile in wrong directory when ran in multiproject mode
> -------------------------------------------------------------------------------
>
>          Key: MPCHECKSTYLE-24
>          URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-24
>      Project: maven-checkstyle-plugin
>         Type: Bug

>     Versions: 2.4.1
>     Reporter: Jerome Lacoste
>      Fix For: 3.0.1

>
>
> Not sure if it is a plugin problem but it sounds like.
> I run a multiproject build.
> Inside one subdir (e.g. main), I have a checkstyle report configured. The checkstyle plugin is configured as such in the main/project.properties:
> maven.checkstyle.properties=${basedir}/checkstyle.xml
> This checkstyle config contains:
>       <!-- Header -->
>         <module name="Header">
>             <property name="headerFile" value="cruisecontrol.header"/>
>             <property name="ignoreLines" value="3"/>
>         </module>
> Running maven in the main directory works great. Running it from the upper level directory fails in the checkstyle plugin because the checkstyle ant task doesn't find the header file.
> I workaround the problem by copying the main/cruisecontrol.header file in the upper directory, from where the multiproject is built.
> I am not sure there is a solution to that problem. I am willing to spend some time to fix it if I get some guidance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MPCHECKSTYLE-24) checktyle looks for headerFile in wrong directory when ran in multiproject mode

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPCHECKSTYLE-24?page=all ]

Lukas Theussl updated MPCHECKSTYLE-24:
--------------------------------------

    Fix Version: 3.0.1

> checktyle looks for headerFile in wrong directory when ran in multiproject mode
> -------------------------------------------------------------------------------
>
>          Key: MPCHECKSTYLE-24
>          URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-24
>      Project: maven-checkstyle-plugin
>         Type: Bug

>     Versions: 2.4.1
>     Reporter: Jerome Lacoste
>      Fix For: 3.0.1

>
>
> Not sure if it is a plugin problem but it sounds like.
> I run a multiproject build.
> Inside one subdir (e.g. main), I have a checkstyle report configured. The checkstyle plugin is configured as such in the main/project.properties:
> maven.checkstyle.properties=${basedir}/checkstyle.xml
> This checkstyle config contains:
>       <!-- Header -->
>         <module name="Header">
>             <property name="headerFile" value="cruisecontrol.header"/>
>             <property name="ignoreLines" value="3"/>
>         </module>
> Running maven in the main directory works great. Running it from the upper level directory fails in the checkstyle plugin because the checkstyle ant task doesn't find the header file.
> I workaround the problem by copying the main/cruisecontrol.header file in the upper directory, from where the multiproject is built.
> I am not sure there is a solution to that problem. I am willing to spend some time to fix it if I get some guidance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPCHECKSTYLE-24) checktyle looks for headerFile in wrong directory when ran in multiproject mode

Posted by "Wouter Hermeling (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPCHECKSTYLE-24?page=comments#action_58421 ] 

Wouter Hermeling commented on MPCHECKSTYLE-24:
----------------------------------------------

In the case of the checkstyle files - which are one subdir deeper- the links are broken.

Of course i could let checkstyle generate to another dir, but i think there's a bigger problem behind this one: How should navigation work for files in subdir and subdirs of subdirs, etc.????



> checktyle looks for headerFile in wrong directory when ran in multiproject mode
> -------------------------------------------------------------------------------
>
>          Key: MPCHECKSTYLE-24
>          URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-24
>      Project: maven-checkstyle-plugin
>         Type: Bug

>     Versions: 2.4.1
>     Reporter: Jerome Lacoste
>      Fix For: 3.0.1

>
>
> Not sure if it is a plugin problem but it sounds like.
> I run a multiproject build.
> Inside one subdir (e.g. main), I have a checkstyle report configured. The checkstyle plugin is configured as such in the main/project.properties:
> maven.checkstyle.properties=${basedir}/checkstyle.xml
> This checkstyle config contains:
>       <!-- Header -->
>         <module name="Header">
>             <property name="headerFile" value="cruisecontrol.header"/>
>             <property name="ignoreLines" value="3"/>
>         </module>
> Running maven in the main directory works great. Running it from the upper level directory fails in the checkstyle plugin because the checkstyle ant task doesn't find the header file.
> I workaround the problem by copying the main/cruisecontrol.header file in the upper directory, from where the multiproject is built.
> I am not sure there is a solution to that problem. I am willing to spend some time to fix it if I get some guidance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MPCHECKSTYLE-24) checktyle looks for headerFile in wrong directory when ran in multiproject mode

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPCHECKSTYLE-24?page=all ]
     
Lukas Theussl closed MPCHECKSTYLE-24:
-------------------------------------

     Resolution: Won't Fix
    Fix Version:     (was: 3.0.1)

The original problem should be fixed by putting  <property name="headerFile" value="${basedir}/cruisecontrol.header"/> into the checkstyle config file. I will open a separate issue for the problem above.

> checktyle looks for headerFile in wrong directory when ran in multiproject mode
> -------------------------------------------------------------------------------
>
>          Key: MPCHECKSTYLE-24
>          URL: http://jira.codehaus.org/browse/MPCHECKSTYLE-24
>      Project: maven-checkstyle-plugin
>         Type: Bug

>     Versions: 2.4.1
>     Reporter: Jerome Lacoste

>
>
> Not sure if it is a plugin problem but it sounds like.
> I run a multiproject build.
> Inside one subdir (e.g. main), I have a checkstyle report configured. The checkstyle plugin is configured as such in the main/project.properties:
> maven.checkstyle.properties=${basedir}/checkstyle.xml
> This checkstyle config contains:
>       <!-- Header -->
>         <module name="Header">
>             <property name="headerFile" value="cruisecontrol.header"/>
>             <property name="ignoreLines" value="3"/>
>         </module>
> Running maven in the main directory works great. Running it from the upper level directory fails in the checkstyle plugin because the checkstyle ant task doesn't find the header file.
> I workaround the problem by copying the main/cruisecontrol.header file in the upper directory, from where the multiproject is built.
> I am not sure there is a solution to that problem. I am willing to spend some time to fix it if I get some guidance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org