mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08:00 
			
		
		
		
	Remove debug output from init script
This commit is contained in:
		@@ -8,8 +8,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import org.gradle.tooling.events.*
 | 
					import org.gradle.tooling.events.*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
println "Applying Project tracker plugin"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
settingsEvaluated { settings ->
 | 
					settingsEvaluated { settings ->
 | 
				
			||||||
    def rootDir = settings.rootDir.absolutePath
 | 
					    def rootDir = settings.rootDir.absolutePath
 | 
				
			||||||
    def rootListLocation = new File(settings.gradle.gradleUserHomeDir, "project-roots.txt").absolutePath
 | 
					    def rootListLocation = new File(settings.gradle.gradleUserHomeDir, "project-roots.txt").absolutePath
 | 
				
			||||||
@@ -32,12 +30,10 @@ abstract class ProjectTracker implements BuildService<ProjectTracker.Params>, Op
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public void close() {
 | 
					    public void close() {
 | 
				
			||||||
        print "Closing ProjectTracker"
 | 
					 | 
				
			||||||
        def rootDir = getParameters().getRootDir().get()
 | 
					        def rootDir = getParameters().getRootDir().get()
 | 
				
			||||||
        def rootDirEntry = rootDir + '\n'
 | 
					        def rootDirEntry = rootDir + '\n'
 | 
				
			||||||
        def rootListFile = new File(getParameters().getRootListLocation().get())
 | 
					        def rootListFile = new File(getParameters().getRootListLocation().get())
 | 
				
			||||||
        if (!rootListFile.exists() || !rootListFile.text.contains(rootDirEntry)) {
 | 
					        if (!rootListFile.exists() || !rootListFile.text.contains(rootDirEntry)) {
 | 
				
			||||||
            println "Added rootDir entry to list: ${rootDir}"
 | 
					 | 
				
			||||||
            rootListFile << rootDirEntry
 | 
					            rootListFile << rootDirEntry
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user