コード例 #1
0
 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());
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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());
        }
コード例 #4
0
        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());
        }