Java Code Examples for org.gradle.util.DeprecationLogger#nagUserOfDiscontinuedProperty()

The following examples show how to use org.gradle.util.DeprecationLogger#nagUserOfDiscontinuedProperty() . 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 File: CompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Sets the compiler to be used. Only takes effect if {@code useAnt} is {@code true}.
 *
 * @deprecated use {@code CompileOptions.forkOptions.executable instead}
 */
@Deprecated
public void setCompiler(String compiler) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.compiler", "To use an alternative compiler, "
            + "set 'CompileOptions.fork' to 'true', and 'CompileOptions.forkOptions.executable' to the path of the compiler executable.");
    this.compiler = compiler;
}
 
Example 2
Source File: GroovyCompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Tells whether the groovyc Ant task should be used over Gradle's own Groovy compiler integration.
 * Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Input
@Deprecated
public boolean isUseAnt() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.useAnt", "There is no replacement for this property.");
    return useAnt;
}
 
Example 3
Source File: GroovyCompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Tells whether the Java runtime should be put on the compile class path. Only takes effect if
 * {@code useAnt} is {@code true}. Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Input
@Deprecated
public boolean isIncludeJavaRuntime() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.includeJavaRuntime", "There is no replacement for this property.");
    return includeJavaRuntime;
}
 
Example 4
Source File: CompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Sets the compiler to be used. Only takes effect if {@code useAnt} is {@code true}.
 *
 * @deprecated use {@code CompileOptions.forkOptions.executable instead}
 */
@Deprecated
public void setCompiler(String compiler) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.compiler", "To use an alternative compiler, "
            + "set 'CompileOptions.fork' to 'true', and 'CompileOptions.forkOptions.executable' to the path of the compiler executable.");
    this.compiler = compiler;
}
 
Example 5
Source File: GroovyCompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Tells whether the Java runtime should be put on the compile class path. Only takes effect if
 * {@code useAnt} is {@code true}. Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Input
@Deprecated
public boolean isIncludeJavaRuntime() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.includeJavaRuntime", "There is no replacement for this property.");
    return includeJavaRuntime;
}
 
Example 6
Source File: GroovyCompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Tells whether the groovyc Ant task should be used over Gradle's own Groovy compiler integration.
 * Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Input
@Deprecated
public boolean isUseAnt() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.useAnt", "There is no replacement for this property.");
    return useAnt;
}
 
Example 7
Source File: CompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Deprecated.
 *
 * @deprecated use {@link #isFailOnError()}
 */
@Deprecated
public boolean getFailOnError() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.getFailOnError()", "CompileOptions.isFailOnError()");
    return failOnError;
}
 
Example 8
Source File: CompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
/**
 * Deprecated.
 *
 * @deprecated use {@link #isFailOnError()}
 */
@Deprecated
public boolean getFailOnError() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.getFailOnError()", "CompileOptions.isFailOnError()");
    return failOnError;
}
 
Example 9
Source File: CompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether to use the Ant javac task over Gradle's own Java compiler integration.
 * Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setUseAnt(boolean useAnt) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.useAnt", "There is no replacement for this property.");
    this.useAnt = useAnt;
}
 
Example 10
Source File: CompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether to produce optimized byte code. Only takes effect if {@code useAnt} is {@code true}.
 * Note that this flag is ignored by Sun's javac starting with JDK 1.3.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setOptimize(boolean optimize) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.optimize", "There is no replacement for this property.");
    this.optimize = optimize;
}
 
Example 11
Source File: GroovyCompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether the Java runtime should be put on the compile class path. Only takes effect if
 * {@code useAnt} is {@code true}. Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setIncludeJavaRuntime(boolean includeJavaRuntime) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.includeJavaRuntime", "There is no replacement for this property.");
    this.includeJavaRuntime = includeJavaRuntime;
}
 
Example 12
Source File: CompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether to use the Ant javac task over Gradle's own Java compiler integration.
 * Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setUseAnt(boolean useAnt) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.useAnt", "There is no replacement for this property.");
    this.useAnt = useAnt;
}
 
Example 13
Source File: CompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether the Java runtime should be put on the compile class path. Only takes effect if
 * {@code useAnt} is {@code true}. Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setIncludeJavaRuntime(boolean includeJavaRuntime) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.includeJavaRuntime", "There is no replacement for this property.");
    this.includeJavaRuntime = includeJavaRuntime;
}
 
Example 14
Source File: GroovyCompileOptions.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Tells whether to print a stack trace when the compiler hits a problem (like a compile error).
 * Defaults to {@code false}. Only used when {@link #isUseAnt()} is {@code true}.
 *
 * @deprecated No replacement
 */
@Deprecated
public boolean isStacktrace() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.stacktrace", "There is no replacement for this property.");
    return stacktrace;
}
 
Example 15
Source File: GroovyCompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Tells whether to print a stack trace when the compiler hits a problem (like a compile error).
 * Defaults to {@code false}. Only used when {@link #isUseAnt()} is {@code true}.
 *
 * @deprecated No replacement
 */
@Deprecated
public boolean isStacktrace() {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.stacktrace", "There is no replacement for this property.");
    return stacktrace;
}
 
Example 16
Source File: CompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether the Java runtime should be put on the compile class path. Only takes effect if
 * {@code useAnt} is {@code true}. Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setIncludeJavaRuntime(boolean includeJavaRuntime) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.includeJavaRuntime", "There is no replacement for this property.");
    this.includeJavaRuntime = includeJavaRuntime;
}
 
Example 17
Source File: CompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether to produce optimized byte code. Only takes effect if {@code useAnt} is {@code true}.
 * Note that this flag is ignored by Sun's javac starting with JDK 1.3.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setOptimize(boolean optimize) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("CompileOptions.optimize", "There is no replacement for this property.");
    this.optimize = optimize;
}
 
Example 18
Source File: GroovyCompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether the Java runtime should be put on the compile class path. Only takes effect if
 * {@code useAnt} is {@code true}. Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setIncludeJavaRuntime(boolean includeJavaRuntime) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.includeJavaRuntime", "There is no replacement for this property.");
    this.includeJavaRuntime = includeJavaRuntime;
}
 
Example 19
Source File: GroovyCompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether the groovyc Ant task should be used over Gradle's own Groovy compiler integration.
 * Defaults to {@code false}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setUseAnt(boolean useAnt) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.useAnt", "There is no replacement for this property.");
    this.useAnt = useAnt;
}
 
Example 20
Source File: GroovyCompileOptions.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Sets whether to print a stack trace when the compiler hits a problem (like a compile error).
 * Defaults to {@code false}. Only used when {@link #isUseAnt()} is {@code true}.
 *
 * @deprecated No replacement
 */
@Deprecated
public void setStacktrace(boolean stacktrace) {
    DeprecationLogger.nagUserOfDiscontinuedProperty("GroovyCompileOptions.stacktrace", "This property has no replacement.");
    this.stacktrace = stacktrace;
}