com.github.ksoichiro.eclipse.aar.generator.ProjectFileGenerator.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-eclipse-aar-plugin Show documentation
Show all versions of gradle-eclipse-aar-plugin Show documentation
Gradle plugin to use Android AAR libraries on Eclipse
package com.github.ksoichiro.eclipse.aar.generator
class ProjectFileGenerator extends MetaDataFileGenerator {
String projectName
@Override
boolean shouldOverwrite() {
false
}
@Override
String generateContent(File file) {
// Note about natures: AndroidNature should be first to be recognized
// as an Android project in Eclipse.
"""\
|
|
|\t${projectName}
|\t
|\t
|\t
|\t
|\t\t
|\t\t\t${toolPackage}.ResourceManagerBuilder
|\t\t\t
|\t\t\t
|\t\t
|\t\t
|\t\t\t${toolPackage}.PreCompilerBuilder
|\t\t\t
|\t\t\t
|\t\t
|\t\t
|\t\t\torg.eclipse.jdt.core.javabuilder
|\t\t\t
|\t\t\t
|\t\t
|\t\t
|\t\t\t${toolPackage}.ApkBuilder
|\t\t\t
|\t\t\t
|\t\t
|\t
|\t
|\t\t${toolPackage}.AndroidNature
|\t\torg.eclipse.jdt.core.javanature
|\t
|
|""".stripMargin()
}
}