C# Класс Plovr.Helpers.PathHelpers

Показать файл Открыть проект

Открытые методы

Метод Описание
MakeAbsoluteFromUrlAndBasePath ( IEnumerable rawList, string basePath ) : IEnumerable

Go through a list and convert all the contents relative pathing to the base path passed.

MakeAbsoluteFromUrlAndBasePath ( string path, string basePath ) : string

Takes a path and normalizes it from a URL path to a valid windows path. This function does 2 things to a path: A) replaces "~" with the the base path that is passed in. B) replaces "/" with "\"

MakeRelativeFromPath ( string fullPath ) : string

Pass a full path and convert it to a URL basd on the current HttpContext.

ResolveJavaPath ( string javaPath ) : string

Using the path passed in, if it contains %JAVA_HOME%, set it with what its set.

Описание методов

MakeAbsoluteFromUrlAndBasePath() публичный статический Метод

Go through a list and convert all the contents relative pathing to the base path passed.
public static MakeAbsoluteFromUrlAndBasePath ( IEnumerable rawList, string basePath ) : IEnumerable
rawList IEnumerable the list of paths that are shorthand url
basePath string the base path to calculate the relative path against
Результат IEnumerable

MakeAbsoluteFromUrlAndBasePath() публичный статический Метод

Takes a path and normalizes it from a URL path to a valid windows path. This function does 2 things to a path: A) replaces "~" with the the base path that is passed in. B) replaces "/" with "\"
public static MakeAbsoluteFromUrlAndBasePath ( string path, string basePath ) : string
path string a short hand style path for an ASPNET application
basePath string the base path to normalize the path with
Результат string

MakeRelativeFromPath() публичный статический Метод

Pass a full path and convert it to a URL basd on the current HttpContext.
public static MakeRelativeFromPath ( string fullPath ) : string
fullPath string the full path to convert
Результат string

ResolveJavaPath() публичный статический Метод

Using the path passed in, if it contains %JAVA_HOME%, set it with what its set.
public static ResolveJavaPath ( string javaPath ) : string
javaPath string
Результат string