Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-13716] Fixed file name of default graph configuration.
  • Loading branch information
uhafner committed May 31, 2012
1 parent 8df3ad7 commit b8cc4bfda98847b446d647b5e34ec6cea7df5d3a
Showing with 24 additions and 3 deletions.
  1. +24 −3 src/main/java/hudson/plugins/analysis/graph/UserGraphConfigurationView.java
@@ -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.
*

0 comments on commit b8cc4bf

Please sign in to comment.