각 파일에서 Gradle 복사하는 작업이 작동하지 않는

0

질문

나는 Gradle 규칙은 다음과 같:

tasks.addRule("Pattern: updatelight<Path> (copies files to ../<Path>).") { String taskName ->
  if (taskName.startsWith("updatelight")) {
    task([ "type": Copy ], taskName) {
      
      
      def projectGroups = (sub + root)
      
      def testEnvPath = taskName - 'updatelight'
      into ("../${testEnvPath}/")
      
      
      logger.info("Copies user.xml")
      projectGroups.each { project ->
        if (!project.isEmpty()) {
          from (project.output) {
            into "cfg/${project.newPath}"
            
            eachFile { file ->
              println "  ${file.sourcePath} -> ${file.path}" 
              println '----------------------------------------------'
            }
          }
        }
      }
[...]

나의 문제,각 파일에{...}이 인쇄되지 않는 console. 힌트를? 나는 Gradle-초보자 및 그냥을 추가하려고 어떤 로깅 기존 작업입니다.

gradle groovy
2021-11-23 12:15:31
1

최고의 응답

0

에 문제가 없었습니다. 때문에 캐시가 이루어지고 있는지 조치므로 기록합니다.

2021-11-23 14:12:41

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................