Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-13716] Fixed file name of default graph configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 31, 2012
1 parent 8df3ad7 commit b8cc4bf
Showing 1 changed file with 24 additions and 3 deletions.
Expand Up @@ -24,21 +24,42 @@ public class UserGraphConfigurationView extends GraphConfigurationView {
* @param project
* the owning project to configure the graphs for
* @param projectActionUrl
* The URL of the project action
* The URL of the project action (used as cookie ID)
* @param globalFileName
* The file name of the global configuration
* @param cookies
* the cookies containing the graph configuration
* @param buildHistory
* the build history for this project
*/
public UserGraphConfigurationView(final GraphConfiguration configuration, final AbstractProject<?, ?> project,
final String projectActionUrl, final Cookie[] cookies, final BuildHistory buildHistory) {
final String projectActionUrl, final String globalFileName, final Cookie[] cookies, final BuildHistory buildHistory) {
super(configuration, project, projectActionUrl, buildHistory);

if (!configuration.initializeFrom(createCookieHandler(projectActionUrl).getValue(cookies))) {
configuration.initializeFromFile(createDefaultsFile(project, projectActionUrl));
configuration.initializeFromFile(createDefaultsFile(project, globalFileName));
}
}

/**
* Creates a new instance of {@link UserGraphConfigurationView}.
*
* @param configuration
* the graph configuration
* @param project
* the owning project to configure the graphs for
* @param projectActionUrl
* The URL of the project action
* @param cookies
* the cookies containing the graph configuration
* @param buildHistory
* the build history for this project
*/
public UserGraphConfigurationView(final GraphConfiguration configuration, final AbstractProject<?, ?> project,
final String projectActionUrl, final Cookie[] cookies, final BuildHistory buildHistory) {
this(configuration, project, projectActionUrl, projectActionUrl, cookies, buildHistory);
}

/**
* Creates a new cookie handler to convert the cookie to a string value.
*
Expand Down

0 comments on commit b8cc4bf

Please sign in to comment.