Package org.gradle.api

Examples of org.gradle.api.Project.property()


    protected String getModuleName() {
        Project project = getProject();
        //Take into account the archivesBaseName if applied to the project by the Java plugin
        if (project.hasProperty(ARCHIVES_BASE_NAME)) {
            return project.property(ARCHIVES_BASE_NAME).toString();
        }
        return project.getName();
    }

    protected File getExportFile(ArtifactoryClientConfiguration clientConf) {
View Full Code Here


public class FindMainClassTask extends DefaultTask {

  @TaskAction
  public void setMainClassNameProperty() {
    Project project = getProject();
    if (project.property("mainClassName") == null) {
      project.setProperty("mainClassName", findMainClass());
    }
  }

  private String findMainClass() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.