/** * Copyright (c) 2010 Perforce Software. All rights reserved. */ package com.perforce.maven.scm.provider.p4.command.tag; import java.util.ArrayList; import java.util.List; import org.apache.maven.scm.ScmFile; import org.apache.maven.scm.ScmFileStatus; import com.perforce.maven.scm.provider.p4.command.P4Result; import com.perforce.p4java.core.file.IFileSpec; /** * This class handles the result from the Perforce label command. */ public class P4TagResult extends P4Result { /** The tagged. */ private List<ScmFile> tagged = new ArrayList<ScmFile>(); /** * @see com.perforce.maven.scm.provider.p4.command.P4Result#processMessage (java.lang.String) */ @Override public String processMessage( String message ) { return null; } /** * Extracts the file paths from the tag command result filespecs. * * @param fileSpecs the file specs */ public void processTagged( List<IFileSpec> fileSpecs ) { if ( fileSpecs != null ) { for ( IFileSpec fileSpec : fileSpecs ) { if ( fileSpec != null ) { if ( fileSpec.getDepotPath() != null ) { tagged.add( new ScmFile( fileSpec.getDepotPath().getPathString(), ScmFileStatus.TAGGED ) ); } } } } } /** * Gets the tagged. * * @return the tagged */ public List<ScmFile> getTagged() { return tagged; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11272 | jkovisto |
Populate //guest/joel_kovisto/p4maven/... from //guest/perforce_software/p4maven/.... |
||
//guest/perforce_software/p4maven/main/p4maven-provider/src/main/java/com/perforce/maven/scm/provider/p4/command/tag/P4TagResult.java | |||||
#1 | 10055 | Matt Attaway | Pull over numerous changes from @dantran's branch. | ||
//guest/perforce_software/p4maven/main/com.perforce.maven/src/main/java/com/perforce/maven/scm/provider/p4/command/tag/P4TagResult.java | |||||
#1 | 8496 | Matt Attaway | Move P4Ant and P4Maven into their proper homes | ||
//public/perforce/p4maven/main/com.perforce.maven/src/main/java/com/perforce/maven/scm/provider/p4/command/tag/P4TagResult.java | |||||
#1 | 8270 | Matt Attaway | Initial add of P4Maven source code |