Class PerforceWhereCommand
- java.lang.Object
-
- org.apache.maven.scm.provider.perforce.command.PerforceWhereCommand
-
public class PerforceWhereCommand extends Object
Encapsulates the 'p4 where' command which can be very useful in determining a file's location within the depot. UsegetDepotLocation(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
- Version:
- $Id: $
- Author:
- mperham
-
-
Constructor Summary
Constructors Constructor Description PerforceWhereCommand(ScmLogger log, PerforceScmProviderRepository repos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDepotLocation(File file)
String
getDepotLocation(String filepath)
-
-
-
Constructor Detail
-
PerforceWhereCommand
public PerforceWhereCommand(ScmLogger log, PerforceScmProviderRepository repos)
-
-