This commit is contained in:
骏烈
2018-06-12 14:45:05 +08:00
parent e18cd74547
commit 80d4708ab9
2 changed files with 4 additions and 2 deletions

View File

@@ -57,6 +57,8 @@ class SourceCodeProcessor(private val configuration: PMDConfiguration) {
throw PMDException("Error while parsing " + ctx.sourceCodeFilename, pe) throw PMDException("Error while parsing " + ctx.sourceCodeFilename, pe)
} catch (e: Exception) { } catch (e: Exception) {
throw PMDException("Error while processing " + ctx.sourceCodeFilename, e) throw PMDException("Error while processing " + ctx.sourceCodeFilename, e)
} catch (error: Error) {
throw PMDException("Error while processing ${ctx.sourceCodeFilename} ${error.message}")
} finally { } finally {
IOUtils.closeQuietly(sourceCode) IOUtils.closeQuietly(sourceCode)
} }

View File

@@ -122,7 +122,7 @@
</tags> </tags>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <!--<plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version> <version>1.6</version>
@@ -135,7 +135,7 @@
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>-->
</plugins> </plugins>
</build> </build>
</project> </project>