JarFileTool.cs 951 B

123456789101112131415161718192021222324252627282930313233
  1. using Azylee.Core.IOUtils.DirUtils;
  2. using Oreo.BigBirdDeployer.Commons;
  3. using Oreo.BigBirdDeployer.Models;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. namespace Oreo.BigBirdDeployer.Utils
  9. {
  10. public static class JarFileTool
  11. {
  12. /// <summary>
  13. /// 执行Jar文件路径生成
  14. /// </summary>
  15. /// <returns></returns>
  16. public static string PathGenerate(ProjectModel project)
  17. {
  18. string file = DirTool.Combine(R.Paths.PublishStorage, project.Folder, project.CurrentVersion.ToString(), project.JarFile);
  19. return file;
  20. }
  21. /// <summary>
  22. /// 获取新添加的Jar文件
  23. /// </summary>
  24. /// <returns></returns>
  25. public static string GetNewPath(ProjectModel project)
  26. {
  27. string path = DirTool.Combine(R.Paths.NewStorage, project.Folder);
  28. return path;
  29. }
  30. }
  31. }