Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * The MIT License
  * Copyright (c) 2010, Manufacture Fran├žaise des Pneumatiques Michelin, Romain Seguy
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
package com.michelin.cio.hudson.plugins.clearcaseucmbaseline;
This hudson.util.VariableResolver enhances the one defined by the ClearCase plugin (cf. hudson.plugins.clearcase.util.BuildVariableResolver) to add support for the CLEARCASE_BASELINE environment variable.

This class has been built to implement HUDSON-6410.

Romain Seguy (
public class BuildVariableResolver implements VariableResolver<String> {
    private String baseline;
    public BuildVariableResolver(AbstractBuild<?, ?> buildfinal Launcher launcherBuildListener listenerString baseline) {
        this. = baseline;
    public String resolve(String key) {
            return .trim();
        return .resolve(key);
New to GrepCode? Check out our FAQ X