The following comment has been added to this issue:

     Author: Dale King
    Created: Wed, 22 Oct 2003 10:26 AM
       Body:
Yes it is checkstyle only (note the components field)

maven:addPath may be part of the solution, but I'm not sure is the solution. The issue 
is this part of the jelly script for checkstyle:


      <ant:taskdef name="checkstyle"
        classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
        <ant:classpath>
          <ant:pathelement 
location="${plugin.getDependencyPath('checkstyle:checkstyle')}"/>
          <ant:pathelement location="${plugin.getDependencyPath('antlr:antlr')}"/>
          <ant:pathelement location="${plugin.getDependencyPath('regexp:regexp')}"/>
          <ant:pathelement 
location="${plugin.getDependencyPath('commons-beanutils:commons-beanutils')}"/>
          <ant:pathelement 
location="${plugin.getDependencyPath('commons-collections:commons-collections')}"/>
          <ant:pathelement 
location="${plugin.getDependencyPath('commons-logging:commons-logging')}"/>
          <ant:path refid="maven.dependency.classpath"/>
          <ant:pathelement path="${maven.build.dest}"/>
        </ant:classpath>
      </ant:taskdef>

We want to be able to insert our own classpath elements in there for defining our own 
checkstyle checks/filters.

The only way to do that seems to be to get it as part of maven.dependency.classpath. 
But that is defined simply as ${maven.build.dest} later in the jelly script. (which 
seems to be somewhat redundant to also inclued it in the taskdef).

I envision adding a property defining additional classpath elements to be added to the 
taskdef classpath. If there is an existing way to do that easily, then it needs to be 
documented in the checkstyle plug-in documentation.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-957


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-957
    Summary: Need property for extending classpath
       Type: Bug

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             plugin-checkstyle

   Assignee: 
   Reporter: Dale King

    Created: Tue, 21 Oct 2003 5:56 PM
    Updated: Tue, 21 Oct 2003 5:56 PM
Environment: Any

Description:
If you want to include other Jar files containing your own user written checks, there 
is no way to do that with the checkstyle plug-in. To do that normally, you would want 
to add your jar files to the class path in the ant taskdef statement.


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to