MOG Tokens
From WikiDocs
MOG Tokens are run-time expanded variables that allow you to have greater flexibility in the MOG framework. These tokens can be used in most properties like SyncTargets, PackageCommands, Rippers, etc.
OS Tokens:
{Windows}
System Tokens:
{SystemRepositoryPath}
{SystemProjectsPath}
Project Tokens:
{ProjectPath}
{ProjectName}
{Project}
{Repository}
{Archive}
{Users}
{ProjectPlatform}
{ProjectBranch}
{ProjectSystemPath}
{ProjectSystemToolsPath}
{LoginUserName}
{WorkspaceDirectory}
Ripper Tokens:
{SourcePath}
{SourceFilePattern}
{DestinationPath}
Package Tokens:
{PackageName}
{PackageClassification}
{PackageLabel}
{PackageLabelNoExtension}
{PackageExtension}
{PackagePlatform}
{PackageGroup}
{PackageObject}
{PackageFile}
{PackageWorkspaceDirectory}
{PackageDataDirectory}
Filename Tokens:
{FullFilename}
{Filename}
{Drive}
{Path}
{Extension}
{UserName}
{UserPath}
{BoxName}
{BoxPath}
{GroupName}
{GroupTree}
{AssetFilesName}
{AssetFilesPath}
{AssetFilesScope}
{VersionTimeStamp}
{DeletedTimeStamp}
{RepositoryPath}
{AssetFullName}
{AssetClassification}
{AssetClassification.Full}
{AssetClassificationPath}
{AssetClassificationPath.Full}
{AssetClassification.X}
{AssetName}
{AssetPlatform}
{AssetLabel}
{AssetLabelNoExtension}
Time Tokens:
{Year.2}
{Year.4}
{month}
{Month}
{MONTH}
{Month.1}
{Month.2}
{month.3}
{Month.3}
{MONTH.3}
{day}
{Day}
{DAY}
{Day.1}
{Day.2}
{day.3}
{Day.3}
{DAY.3}
{24Hour.1}
{24Hour.2}
{Hour.1}
{Hour.2}
{Minute.1}
{Minute.2}
{Second.1}
{Second.2}
{Millisecond}
{ampm}
{AMPM}
String Manipulation Tokens:
{Substring(startIndex)}
{Substring(startIndex, length)}
{Replace(oldValue, newValue)}
{Trim()}
{Trim(trimChars)}
{TrimEnd(trimChars)}
{TrimStart(trimChars)}
{Length()}
{PadLeft(totalWidth)}
{PadLeft(totalWidth, paddingChar)}
{PadRight(totalWidth)}
{PadRight(totalWidth, paddingChar)}
{IndexOf(value)}
{IndexOf(value, startIndex)}
{IndexOf(value, startIndex, count)}
{IndexOfAny(anyOf)}
{IndexOfAny(anyOf, startIndex)}
{IndexOfAny(anyOf, startIndex, count)}
{LastIndexOf(value)}
{LastIndexOf(value, startIndex)}
{LastIndexOf(value, startIndex, count)}
{LastIndexOfAny(anyOf)}
{LastIndexOfAny(anyOf, startIndex)}
{LastIndexOfAny(anyOf, startIndex, count)}
{Upper()}
{Lower()}
{Insert(startIndex, value)}
{Remove(startIndex)}
{Remove(startIndex, count)}
New
{GetDriveRoot()}
{GetPath()}
{GetFilename()}
{GetFilenameWithoutExtension()}
{GetFileExtension()}
{Split(splitChar)[x]}
{Split(splitChar, startIndex)[x]}
{Split(splitChar, startIndex, count)[x]}
