瀏覽代碼

SONAR-21219 fixed an issue where generating package-info on Windows would break the build

tags/10.5.0.89998
lukasz-jarocki-sonarsource 1 月之前
父節點
當前提交
837d9043fc
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      build.gradle

+ 2
- 2
build.gradle 查看文件

@@ -514,8 +514,8 @@ subprojects {
String packageInfoPath = it + "/package-info.java"
File packageInfoFile = new File (packageInfoPath)
if (!packageInfoFile.exists()) {
logger.warn("Creating file: " + packageInfoPath)
def packageName = packageInfoFile.getParent().takeAfter("src/main/java/").replaceAll("/", "\\.")
logger.info("Creating file: " + packageInfoPath)
def packageName = packageInfoFile.getParent().replaceAll("[\\\\ /]", ".").takeAfter("src.main.java.");
String packageInfoContent = applyPackageInfoTemplate(packageName)
packageInfoFile << packageInfoContent
}

Loading…
取消
儲存