public void GenerateObject(GeneratorCriteria criteria) { if (criteria.Project.SelectedValue != null) { var file = new FileLibrary(); var filePath = file.GetFilePath(criteria); var fileName = criteria.Arguments.VerticleName + criteria.Extension; if (!string.IsNullOrEmpty(criteria.FolderPath)) { filePath += criteria.FolderPath + "\\"; file.CreateDirectory(filePath); } var fullPath = file.GetFullPath(filePath, fileName); WriteFile(file, fileName, fullPath, criteria); } }