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

com.github.ksoichiro.eclipse.aar.generator.ProjectFileGenerator.groovy Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy