public class PerforceWhereCommand
extends java.lang.Object
getDepotLocation(String path) to query
the depot location for a particular file. The data from p4 where looks like this:
p4 where pom.xml //depot/modules/fabric/trunk/pom.xml //mikeperham-dt/depot/modules/fabric/trunk/pom.xml d:\perforce\depot\modules\fabric\trunk\pom.xml
| Modifier and Type | Field and Description |
|---|---|
private ScmLogger |
logger |
private PerforceScmProviderRepository |
repo |
| Constructor and Description |
|---|
PerforceWhereCommand(ScmLogger log,
PerforceScmProviderRepository repos) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDepotLocation(java.io.File file) |
java.lang.String |
getDepotLocation(java.lang.String filepath) |
private ScmLogger logger
private PerforceScmProviderRepository repo
public PerforceWhereCommand(ScmLogger log, PerforceScmProviderRepository repos)
public java.lang.String getDepotLocation(java.io.File file)
public java.lang.String getDepotLocation(java.lang.String filepath)
filepath - an absolute file path