mirror of https://github.com/apache/maven.git
check style report should save cache file to the correct output directory
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@170287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
46f8f59b03
commit
3add0d7e3c
|
@ -145,8 +145,9 @@ public class CheckstyleReport
|
|||
|
||||
try
|
||||
{
|
||||
Properties overridingProperties = createOverridingProperties();
|
||||
config = ConfigurationLoader.loadConfiguration( configFile.toString(),
|
||||
new PropertiesExpander( createOverridingProperties() ) );
|
||||
new PropertiesExpander( overridingProperties ) );
|
||||
}
|
||||
catch ( CheckstyleException e )
|
||||
{
|
||||
|
@ -233,7 +234,8 @@ public class CheckstyleReport
|
|||
{
|
||||
Properties props = new Properties();
|
||||
props.setProperty( "checkstyle.header.file", "LICENSE.txt" );
|
||||
props.setProperty( "checkstyle.cache.file", "target/checkstyle-cachefile" );
|
||||
// TODO: explicit output directory when it is back
|
||||
props.setProperty( "checkstyle.cache.file", getConfiguration().getModel().getBuild().getDirectory() + "/checkstyle-cachefile" );
|
||||
return props;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue