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:
Brett Leslie Porter 2005-05-16 00:20:00 +00:00
parent 46f8f59b03
commit 3add0d7e3c
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}