All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xtext.gradle.idea.tasks.IdeaRepository.xtend Maven / Gradle / Ivy

There is a newer version: 2.0.9-alpha.3
Show newest version
package org.xtext.gradle.idea.tasks

import com.google.common.base.Charsets
import com.google.common.io.Files
import java.io.File
import org.gradle.api.tasks.Sync
import org.gradle.api.tasks.Input
import org.eclipse.xtend.lib.annotations.Accessors

class IdeaRepository extends Sync {
	@Input @Accessors String rootUrl
	
	val files = newArrayList
	
	new() {
		rootSpec.eachFile[files.add(file)]
	}
	
	override protected copy() {
		super.copy()
		val pluginDescriptor = new File(destinationDir, "updatePlugins.xml")
		Files.write('''
			
			
				«FOR it : files»
					
				«ENDFOR»
			
		''', pluginDescriptor, Charsets.UTF_8)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy