Code example for Path

Methods: getParent

0
    ImmutableList.Builder<Step> commands = ImmutableList.builder(); 
 
    // Clear out the old file, if it exists. 
    commands.add(new RmStep(pathToOutputFile,
        /* shouldForceDeletion */ true, 
        /* shouldRecurse */ false)); 
 
    // Make sure the directory for the output file exists. 
    commands.add(new MkdirStep(pathToOutputFile.getParent()));
 
    commands.add(new GenerateManifestStep( 
        getResolver().getPath(skeletonFile),
        ImmutableSet.copyOf(getResolver().getAllPaths(manifestFiles)),
        getPathToOutputFile())); 
 
    buildableContext.recordArtifact(pathToOutputFile);
    return commands.build(); 
  } 
 
  @Override 
  public Path getPathToOutputFile() {