public override string GetPathPreview(System.Text.StringBuilder builder, char pathDivider = Helpers.PathDivider) { // Setup variables builder.Clear(); builder.Append(rootBuildFolder); if ((builder.Length > 0) && (builder[builder.Length - 1] != pathDivider)) { builder.Append(pathDivider); } builder.Append(newBuildFolderName.ToString(this)); return(builder.ToString()); }
public override string GetPathPreview(System.Text.StringBuilder builder, char pathDivider) { // Get the parent's path string returnPath = null; if (Parent != null) { returnPath = Parent.GetPathPreview(builder, pathDivider); } // Check if we need to append the group folder name if (createEmbeddedFolder == true) { // Setup builder with parent path builder.Clear(); builder.Append(returnPath); // Append this group's name if (builder[builder.Length - 1] != pathDivider) { builder.Append(pathDivider); } builder.Append(folderName.ToString(this)); // Update return variable returnPath = builder.ToString(); } return(returnPath); }
private string AppendArchiveFileName(string originalString, System.Text.StringBuilder builder) { builder.Clear(); int endIndex = originalString.LastIndexOf(Helpers.PathDivider); builder.Append(originalString.Substring(0, endIndex)); builder.Append(Helpers.PathDivider); CustomFileName name = CustomFileNameDrawer.GetTarget(archiveFileName); builder.Append(name.ToString((IBuildSetting)target)); return(builder.ToString()); }
private string AppendFileName(string originalString, System.Text.StringBuilder builder) { builder.Clear(); builder.Append(originalString); builder.Append(Helpers.PathDivider); // Add file name CustomFileName name = CustomFileNameDrawer.GetTarget(fileName); builder.Append(name.ToString((IBuildSetting)target)); builder.Append(FileExtension); return(builder.ToString()); }