Package net.sourceforge.pmd

Examples of net.sourceforge.pmd.PMDException


    for (final String loc : rulesetStringLocations) {
      RuleSetReferenceId ruleSetReferenceId = new RuleSetReferenceId(loc);
      final URL resolvedLocation = resourceResolver.resolveLocation(ruleSetReferenceId.getRuleSetFileName());

      if(resolvedLocation == null) {
        throw new PMDException(String.format("Failed to resolve RuleSet from location [%s],SKIPPING Eclipse PMD configuration", loc));
      }

      RuleSet ruleSetAtLocations;
      try {
        RuleSetReferenceId resolvedRuleSetReference = new RuleSetReferenceId(loc) {
View Full Code Here


         renderer.getWriter().flush();
         fileWriter.close();
      }
      catch ( final IOException e )
      {
         throw new PMDException( "unable to write the HTML report", e );
      }
   }
View Full Code Here

         writeReportFooter( writter );
         writter.close();
      }
      catch ( final IOException e )
      {
         throw new PMDException( "Error creating file "
               + filePath, e );
      }
      finally
      {
         finalizeReport( writter );
View Full Code Here

                                                   final FlexFilter flexFilter ) throws PMDException
   {
      if ( source == null
            && sourceList == null )
      {
         throw new PMDException( "sourceDirectory is not specified", null );
      }
      Collection< File > foundFiles;
      if ( source == null )
      {
         foundFiles = com.adobe.ac.ncss.utils.FileUtils.listFiles( sourceList,
View Full Code Here

   public final void executeReport( final FlexPmdViolations flexPmdViolations ) throws PMDException
   {
      if ( source == null
            && sourceList == null )
      {
         throw new PMDException( "unspecified sourceDirectory" );
      }
      if ( outputDirectory == null )
      {
         throw new PMDException( "unspecified outputDirectory" );
      }

      if ( ruleSet != null )
      {
         if ( !flexPmdViolations.hasViolationsBeenComputed() )
View Full Code Here

      {
         rootNode = tryToBuildAst( file );
      }
      catch ( final IOException e )
      {
         throw new PMDException( "While building AST: Cannot read "
               + file.getFullyQualifiedName(), e );
      }
      catch ( final TokenException e )
      {
         throw new PMDException( "TokenException thrown while building AST on "
               + file.getFullyQualifiedName() + " with message: " + e.getMessage(), e );
      }
      return rootNode;
   }
View Full Code Here

TOP

Related Classes of net.sourceforge.pmd.PMDException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.