[ http://jira.codehaus.org/browse/MCHECKSTYLE-26?page=all ]
     
fabrizio giustina closed MCHECKSTYLE-26:
----------------------------------------

      Assign To: fabrizio giustina
     Resolution: Fixed
    Fix Version: 2.0-beta-2

give it a try now

> checkstyle:check fails  when the project has no sources
> -------------------------------------------------------
>
>          Key: MCHECKSTYLE-26
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-26
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>     Reporter: Vincent Massol
>     Assignee: fabrizio giustina
>      Fix For: 2.0-beta-2

>
>
> See  MCHECKSTYLE-25
> When there are no sources, the checkstyle goal do not generate an output file 
> and thus the checkstyle:check goal fails:
> C:\dev\cargo\trunk\core>mvn clean install
> [INFO] Scanning for projects...
> [INFO] snapshot org.codehaus.cargo:cargo:0.8-SNAPSHOT: checking for updates 
> from maven-snapshot
> [INFO] Reactor build order:
> [INFO] Cargo Core
> [INFO] Cargo Core API
> [INFO] Cargo Core Util API
> [INFO] Cargo Core Module API
> [INFO] Cargo Core Container API
> [INFO] Cargo Core Generic API
> [INFO] Cargo Core Containers
> [INFO] Cargo Core Tomcat Container
> [INFO] Cargo Core Resin Container
> [INFO] Cargo Core JBoss Container
> [INFO] Cargo Core Orion Container
> [INFO] Cargo Core Jetty Container
> [INFO] Cargo Core WebLogic Container
> [INFO] Cargo Core jo! Container
> [INFO] Cargo Core Uberjar
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building Cargo Core
> [INFO] task-segment: [clean, install]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Preparing checkstyle:check
> [INFO] Setting property: classpath.resource.loader.class => 
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] **************************************************************
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File: 
> org\apache\velocity\runtime\defaults\velocity.properties
> [INFO] Default ResourceManager initializing. (class 
> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated: 
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class 
> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template : 
> VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in 
> any resource loader.
> [INFO] Velocimacro : error using VM library template VM_global_library.vm : 
> org.apache.velocity.exception.ResourceNotFoundExcepti
> on: Unable to find resource 'VM_global_library.vm'
> [INFO] Velocimacro : VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in 
> templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may 
> NOT replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be 
> global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [checkstyle:checkstyle]
> [INFO] Source directory does not exist - skipping report.
> [INFO] [checkstyle:check {execution: default}]
> [INFO] 
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Unable to perform checkstyle:check, unable to find 
> checkstyle:checkstyle outputFile.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Fri Dec 30 20:38:28 CET 2005
> [INFO] Final Memory: 6M/11M
> [INFO] 
> ----------------------------------------------------------------------------
> C:\dev\cargo\trunk\core>

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

Reply via email to