Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,20 @@ private Properties getOverridingProperties( CheckstyleExecutorRequest request )
}
}

//${config_loc} for the origin dir of the configLocation, just like eclipsecs
// so we config such as `${config_loc}/checkstyle-suppressions.xml`
final String configLocation = request.getConfigLocation();
final int idx = configLocation.lastIndexOf( '/' );
final String configLoc;
if ( idx == -1 )
{
configLoc = "";
}
else
{
configLoc = configLocation.substring( 0, idx );
}
p.setProperty( "config_loc", configLoc );
return p;
}

Expand Down