hudson.plugins.perforce
Class PerforceSCMHelper

java.lang.Object
  extended by hudson.plugins.perforce.PerforceSCMHelper

public final class PerforceSCMHelper
extends Object

Author:
Brian Westrich

Nested Class Summary
static class PerforceSCMHelper.WhereMapping
           
 
Method Summary
static boolean doesPathMatchView(String path, String view)
           
static String doMapping(String lhs, String rhs, String orig)
           
static Pattern getTokenPattern(String str)
           
static String mapToWorkspace(List<PerforceSCMHelper.WhereMapping> maps, String depotPath)
           
static List<PerforceSCMHelper.WhereMapping> parseWhereMapping(byte[] whereOutput)
           
static int readInt(InputStream stream)
           
static String trimPlusMinus(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readInt

public static int readInt(InputStream stream)
                   throws IOException
Throws:
IOException

parseWhereMapping

public static List<PerforceSCMHelper.WhereMapping> parseWhereMapping(byte[] whereOutput)
                                                              throws PerforceException
Throws:
PerforceException

mapToWorkspace

public static String mapToWorkspace(List<PerforceSCMHelper.WhereMapping> maps,
                                    String depotPath)

doesPathMatchView

public static boolean doesPathMatchView(String path,
                                        String view)

trimPlusMinus

public static String trimPlusMinus(String str)

getTokenPattern

public static Pattern getTokenPattern(String str)

doMapping

public static String doMapping(String lhs,
                               String rhs,
                               String orig)


Copyright © 2004-2012 Hudson. All Rights Reserved.