buildframework/helium/sf/java/scm/src/com/nokia/maven/scm/command/info/InfoScmResult.java
changeset 628 7c4a911dc066
parent 587 85df38eb4012
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
     1 /*
     1 /*
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5  * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description:  
    14  * Description:  
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 package com.nokia.maven.scm.command.info;
    18 package com.nokia.maven.scm.command.info;
    20 
    19 
    21 import org.apache.maven.scm.ScmResult;
    20 import org.apache.maven.scm.ScmResult;
       
    21 
    22 
    22 
    23 /**
    23 /**
    24  * A result provided by the 'hg info' command.
    24  * A result provided by the 'hg info' command.
    25  */
    25  */
    26 public class InfoScmResult extends ScmResult {
    26 public class InfoScmResult extends ScmResult {
    27     private String scmRevision = new String();
    27     private String scmRevision = new String();
    28     
    28 
    29     public InfoScmResult(String commandLine, String providerMessage,
    29     public InfoScmResult(String commandLine, String providerMessage, String commandOutput,
    30             String commandOutput, boolean success) {
    30         boolean success) {
    31         super(commandLine, providerMessage, commandOutput, success);
    31         super(commandLine, providerMessage, commandOutput, success);
    32     }
    32     }
    33 
    33 
    34     public InfoScmResult(String commandLine, String providerMessage,
    34     public InfoScmResult(String commandLine, String providerMessage, String commandOutput,
    35             String commandOutput, boolean success,
    35         boolean success, String scmRevision) {
    36             String scmRevision) {
    36         super(commandLine, providerMessage, commandOutput, success);
    37         super(commandLine, providerMessage, commandOutput, success);        
       
    38         this.scmRevision = scmRevision;
    37         this.scmRevision = scmRevision;
    39         }
    38     }
    40     
    39 
    41     public String getRevision() {
    40     public String getRevision() {
    42         return scmRevision;
    41         return scmRevision;
    43     }
    42     }
    44 
    43 
    45 }
    44 }
    46