Gradle Copy görevindeki her dosya çalışmıyor

0

Soru

Benim gibi bir Gradle kuralım var:

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 '----------------------------------------------'
            }
          }
        }
      }
[...]

Benim sorunum, her dosya {... } konsola yazdırılmıyor. Herhangi bir ipucu? Ben bir Gradle-acemiyim ve sadece mevcut göreve biraz günlük eklemeye çalışıyorum.

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

En iyi cevabı

0

Kodla ilgili bir sorun yoktu. Önbellek nedeniyle gerçekleştirilen eylemler vardı, bu nedenle günlüğe kaydetme yok.

2021-11-23 14:12:41

Diğer dillerde

Bu sayfa diğer dillerde

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