Java Code Examples for org.gradle.api.tasks.OutputFile

The following examples show how to use org.gradle.api.tasks.OutputFile. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Returns the file to write the wrapper properties to.
 */
@OutputFile
public File getPropertiesFile() {
    File jarFileDestination = getJarFile();
    return new File(jarFileDestination.getParentFile(), jarFileDestination.getName().replaceAll("\\.jar$",
            ".properties"));
}
 
Example 2
Source Project: javaide   Source File: AbstractReportTask.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the file which the report will be written to. When set to {@code null}, the report is written to {@code System.out}.
 * Defaults to {@code null}.
 *
 * @return The output file. May be null.
 */
@Nullable
@Optional
@OutputFile
public File getOutputFile() {
    return outputFile;
}
 
Example 3
Source Project: javaide   Source File: LintOptions.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
 * The optional path to where an HTML report should be written
 */
@Override
@Nullable
@Optional
@OutputFile
public File getHtmlOutput() {
    return htmlOutput;
}
 
Example 4
Source Project: javaide   Source File: LintOptions.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
 * The optional path to where an XML report should be written
 */
@Override
@Nullable
@Optional
@OutputFile
public File getXmlOutput() {
    return xmlOutput;
}
 
Example 5
Source Project: pygradle   Source File: SourceDistTask.java    License: Apache License 2.0 5 votes vote down vote up
@OutputFile
public File getSdistOutput() {
    Project project = getProject();
    return new File(
        getDistDir(),
        String.format(
            "%s-%s.tar.gz",
            project.getName(),
            // TODO: Is this replace here really necessary?
            project.getVersion().toString().replace("_", "-")));
}
 
Example 6
Source Project: Pushjet-Android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Returns the file to write the wrapper properties to.
 */
@OutputFile
public File getPropertiesFile() {
    File jarFileDestination = getJarFile();
    return new File(jarFileDestination.getParentFile(), jarFileDestination.getName().replaceAll("\\.jar$",
            ".properties"));
}
 
Example 7
Source Project: Pushjet-Android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Returns the file to write the wrapper properties to.
 */
@OutputFile
public File getPropertiesFile() {
    File jarFileDestination = getJarFile();
    return new File(jarFileDestination.getParentFile(), jarFileDestination.getName().replaceAll("\\.jar$",
            ".properties"));
}
 
Example 8
Source Project: smallrye-graphql   Source File: GenerateSchemaTask.java    License: Apache License 2.0 4 votes vote down vote up
@Optional
@OutputFile
public String getDestination() {
    return destination;
}
 
Example 9
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the file to write the wrapper script to.
 */
@OutputFile
public File getScriptFile() {
    return getProject().file(scriptFile);
}
 
Example 10
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the file to write the wrapper batch script to.
 */
@OutputFile
public File getBatchScript() {
    File scriptFile = getScriptFile();
    return new File(scriptFile.getParentFile(), scriptFile.getName().replaceFirst("(\\.[^\\.]+)?$", ".bat"));
}
 
Example 11
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the file to write the wrapper jar file to.
 */
@OutputFile
public File getJarFile() {
    return getProject().file(jarFile);
}
 
Example 12
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the file to write the wrapper script to.
 */
@OutputFile
public File getScriptFile() {
    return getProject().file(scriptFile);
}
 
Example 13
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the file to write the wrapper batch script to.
 */
@OutputFile
public File getBatchScript() {
    File scriptFile = getScriptFile();
    return new File(scriptFile.getParentFile(), scriptFile.getName().replaceFirst("(\\.[^\\.]+)?$", ".bat"));
}
 
Example 14
Source Project: pushfish-android   Source File: Wrapper.java    License: BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Returns the file to write the wrapper jar file to.
 */
@OutputFile
public File getJarFile() {
    return getProject().file(jarFile);
}
 
Example 15
@OutputFile
public RegularFileProperty getTarget() {
    return target;
}
 
Example 16
@OutputFile
public RegularFileProperty getTargetFile() {
    return targetFile;
}
 
Example 17
Source Project: firebase-android-sdk   Source File: ApiInformationTask.java    License: Apache License 2.0 4 votes vote down vote up
@OutputFile
abstract File getBaselineFile();
 
Example 18
Source Project: firebase-android-sdk   Source File: ApiInformationTask.java    License: Apache License 2.0 4 votes vote down vote up
@OutputFile
abstract File getOutputApiFile();
 
Example 19
Source Project: firebase-android-sdk   Source File: ApiInformationTask.java    License: Apache License 2.0 4 votes vote down vote up
@OutputFile
abstract File getOutputFile();
 
Example 20
@OutputFile
abstract File getApiTxt();
 
Example 21
@OutputFile
abstract File getBaselineFile();
 
Example 22
@Optional
@OutputFile
public File getPublicFile() {
    return publicFile;
}
 
Example 23
Source Project: spring-javaformat   Source File: CheckTask.java    License: Apache License 2.0 4 votes vote down vote up
@OutputFile
public File getReportLocation() {
	return this.reportLocation;
}
 
Example 24
Source Project: quarkus   Source File: QuarkusBuild.java    License: Apache License 2.0 4 votes vote down vote up
@OutputFile
public File getOutputDir() {
    return new File(getProject().getBuildDir(), extension().finalName() + "-runner.jar");
}
 
Example 25
Source Project: atlas   Source File: MergeManifestAwbsConfigAction.java    License: Apache License 2.0 4 votes vote down vote up
@OutputFile
protected File getManifestOutputFile() {
    return awbBundle.getMergedManifest();
}
 
Example 26
@OutputFile
@Optional
public File getProguardOutputFile() {
    return proguardOutputFile;
}
 
Example 27
Source Project: javaide   Source File: MergeResources.java    License: GNU General Public License v3.0 4 votes vote down vote up
@Optional
@OutputFile
public File getPublicFile() {
    return publicFile;
}
 
Example 28
Source Project: javaide   Source File: ZipAlign.java    License: GNU General Public License v3.0 4 votes vote down vote up
@OutputFile
public File getOutputFile() {
    return outputFile;
}
 
Example 29
Source Project: javaide   Source File: PackageApplication.java    License: GNU General Public License v3.0 4 votes vote down vote up
@OutputFile
public File getOutputFile() {
    return outputFile;
}
 
Example 30
Source Project: javaide   Source File: MergeFileTask.java    License: GNU General Public License v3.0 4 votes vote down vote up
@OutputFile
public File getOutputFile() {
    return mOutputFile;
}