Documentation ¶
Index ¶
- func CopyFromAssets(sourcePath, destPath string, wg *sync.WaitGroup)
- func CopyFromTemplates(sourcePath, destPath string)
- func CreateDirs(path string)
- func CreateDirsFromAssets(assetsRoot, baseDest string) error
- func CreateFiles(paths []string)
- func CreateFilesFromAssets(assetsRoot, baseDest string) error
- func DirSize(path string) (int64, error)
- func FilesExist(files []string) bool
- func FindFileInDir(dirPath string, fileName string) (string, error)
- func FindFileInParent(fileName string) (string, error)
- func FindFileParentInDir(dirPath string, fileName string) (string, error)
- func GetCatalinaLogFile() (string, error)
- func GetLiferayHomePath() (string, error)
- func GetLiferayWorkspacePath() (string, error)
- func GetTomcatPath() (string, error)
- func GetTomcatScriptPath(script string) (string, error)
- func IsGradleWorkspace(path string) bool
- func IsInWorkspaceDir() bool
- func IsMavenWorkspace(path string) bool
- func Tail(logFile string, follow bool)
- func UpdateWithData(file string, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFromAssets ¶
Copy assets to a given destination
func CopyFromTemplates ¶
func CopyFromTemplates(sourcePath, destPath string)
Copy templates to a given destination
func CreateDirsFromAssets ¶
Walk through the template assets and create all the directories contained in it
func CreateFilesFromAssets ¶
Walk through the template assets and create all the files contained in it
func FindFileInDir ¶
Find a file with a given name under a give directory
func FindFileInParent ¶
Find a file with a given name in parent directories
func FindFileParentInDir ¶
Find a file with a given name in a given directory and walk through its parents
func GetLiferayHomePath ¶
Get Liferay home path (i.e. root path of the Liferay bundle)
func GetLiferayWorkspacePath ¶
Get Liferay workspace path
func GetTomcatPath ¶
Get the Tomcat home directory within the Liferay bundle
func GetTomcatScriptPath ¶
Get the bin directory path under Tomcat home within the Liferay bundle
func IsGradleWorkspace ¶
Check if the Liferay workspace is using Gradle
func IsInWorkspaceDir ¶
func IsInWorkspaceDir() bool
Check if the current directory is under a Liferay workspace
func IsMavenWorkspace ¶
Check if the Liferay workspace is using Maven
func UpdateWithData ¶
Update template files with given data
Types ¶
This section is empty.