Java Code Examples for org.gradle.util.DeprecationLogger#nagUserOfReplacedProperty()
The following examples show how to use
org.gradle.util.DeprecationLogger#nagUserOfReplacedProperty() .
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: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * Enables the HTML test report. * * @deprecated Replaced by {@code getReports().getHtml().setEnabled()} */ @SuppressWarnings("UnusedDeclaration") @Deprecated public void enableTestReport() { DeprecationLogger.nagUserOfReplacedProperty("Test.testReport", "Test.getReports().getHtml().setEnabled()"); reports.getHtml().setEnabled(true); }
Example 2
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * Disables the HTML test report. * * @deprecated Replaced by {@code getReports().getHtml().setEnabled()} */ @SuppressWarnings("UnusedDeclaration") @Deprecated public void disableTestReport() { DeprecationLogger.nagUserOfReplacedProperty("Test.testReport", "Test.getReports().getHtml().setEnabled()"); reports.getHtml().setEnabled(false); }
Example 3
Source File: ReportingBasePluginConvention.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
/** * Sets the name of the reports directory, relative to the project's build directory. * * @deprecated use {@link ReportingExtension#setBaseDir(Object)} * @param reportsDirName The reports directory name. Should not be null. */ @Deprecated public void setReportsDirName(final String reportsDirName) { DeprecationLogger.nagUserOfReplacedProperty("reportsDirName", "reporting.baseDir"); extension.setBaseDir(new Callable<File>() { public File call() throws Exception { return project.getServices().get(FileLookup.class).getFileResolver(project.getBuildDir()).resolve(reportsDirName); } }); }
Example 4
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * Disables the HTML test report. * * @deprecated Replaced by {@code getReports().getHtml().setEnabled()} */ @SuppressWarnings("UnusedDeclaration") @Deprecated public void disableTestReport() { DeprecationLogger.nagUserOfReplacedProperty("Test.testReport", "Test.getReports().getHtml().setEnabled()"); reports.getHtml().setEnabled(false); }
Example 5
Source File: ReportingBasePluginConvention.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
/** * Sets the name of the reports directory, relative to the project's build directory. * * @deprecated use {@link ReportingExtension#setBaseDir(Object)} * @param reportsDirName The reports directory name. Should not be null. */ @Deprecated public void setReportsDirName(final String reportsDirName) { DeprecationLogger.nagUserOfReplacedProperty("reportsDirName", "reporting.baseDir"); extension.setBaseDir(new Callable<File>() { public File call() throws Exception { return project.getServices().get(FileLookup.class).getFileResolver(project.getBuildDir()).resolve(reportsDirName); } }); }
Example 6
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
/** * Specifies whether the test HTML report should be generated. * * @deprecated Replaced by {@code getReports().getHtml().isEnabled()} */ @Deprecated public boolean isTestReport() { DeprecationLogger.nagUserOfReplacedProperty("Test.testReport", "Test.getReports().getHtml().isEnabled()"); return reports.getHtml().isEnabled(); }
Example 7
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
/** * Sets whether the test HTML report should be generated. * * @deprecated Replaced by {@code getReports().getHtml().setEnabled()} */ @Deprecated public void setTestReport(boolean testReport) { DeprecationLogger.nagUserOfReplacedProperty("Test.testReport", "Test.getReports().getHtml().setEnabled()"); reports.getHtml().setEnabled(testReport); }
Example 8
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
/** * Sets whether the test HTML report should be generated. * * @deprecated Replaced by {@code getReports().getHtml().setEnabled()} */ @Deprecated public void setTestReport(boolean testReport) { DeprecationLogger.nagUserOfReplacedProperty("Test.testReport", "Test.getReports().getHtml().setEnabled()"); reports.getHtml().setEnabled(testReport); }
Example 9
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the root folder for the test results in XML format. * * @return the test result directory, containing the test results in XML format. * @deprecated Replaced by {@code getReports().getJunitXml().getDestination()} */ @Deprecated public File getTestResultsDir() { DeprecationLogger.nagUserOfReplacedProperty("Test.testResultsDir", "Test.getReports().getJunitXml().getDestination()"); return reports.getJunitXml().getDestination(); }
Example 10
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Sets the root folder for the test results. * * @param testResultsDir The root folder * @deprecated Replaced by {@code getReports().getJunitXml().setDestination()} */ @Deprecated public void setTestResultsDir(File testResultsDir) { DeprecationLogger.nagUserOfReplacedProperty("Test.testResultsDir", "Test.getReports().getJunitXml().setDestination()"); reports.getJunitXml().setDestination(testResultsDir); }
Example 11
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the root folder for the test reports. * * @return the test report directory, containing the test report mostly in HTML form. * @deprecated Replaced by {@code getReports().getHtml().getDestination()} */ @Deprecated public File getTestReportDir() { DeprecationLogger.nagUserOfReplacedProperty("Test.testReportDir", "Test.getReports().getHtml().getDestination()"); return reports.getHtml().getDestination(); }
Example 12
Source File: Test.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Sets the root folder for the test reports. * * @param testReportDir The root folder * @deprecated Replaced by {@code getReports().getHtml().setDestination()} */ @Deprecated public void setTestReportDir(File testReportDir) { DeprecationLogger.nagUserOfReplacedProperty("Test.testReportDir", "Test.getReports().getHtml().getDestination()"); reports.getHtml().setDestination(testReportDir); }
Example 13
Source File: ReportingBasePluginConvention.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the name of the reports directory, relative to the project's build directory. * * @deprecated use {@link org.gradle.api.reporting.ReportingExtension#getBaseDir()} * @return The reports directory name. Never returns null. */ @Deprecated public String getReportsDirName() { DeprecationLogger.nagUserOfReplacedProperty("reportsDirName", "reporting.baseDir"); return extension.getBaseDir().getName(); }
Example 14
Source File: ReportingBasePluginConvention.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the title for API documentation for the project. * * @deprecated use {@link org.gradle.api.reporting.ReportingExtension#getApiDocTitle()} * @return The title. Never returns null. */ @Deprecated public String getApiDocTitle() { DeprecationLogger.nagUserOfReplacedProperty("apiDocTitle", "reporting.apiDocTitle"); return extension.getApiDocTitle(); }
Example 15
Source File: ReportingBasePluginConvention.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the name of the reports directory, relative to the project's build directory. * * @deprecated use {@link org.gradle.api.reporting.ReportingExtension#getBaseDir()} * @return The reports directory name. Never returns null. */ @Deprecated public String getReportsDirName() { DeprecationLogger.nagUserOfReplacedProperty("reportsDirName", "reporting.baseDir"); return extension.getBaseDir().getName(); }
Example 16
Source File: ReportingBasePluginConvention.java From pushfish-android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the directory containing all reports for this project. * * @deprecated use {@link org.gradle.api.reporting.ReportingExtension#getBaseDir()} * @return The reports directory. Never returns null. */ @Deprecated public File getReportsDir() { DeprecationLogger.nagUserOfReplacedProperty("reportsDir", "reporting.baseDir"); return extension.getBaseDir(); }
Example 17
Source File: ReportingBasePluginConvention.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the directory containing all reports for this project. * * @deprecated use {@link org.gradle.api.reporting.ReportingExtension#getBaseDir()} * @return The reports directory. Never returns null. */ @Deprecated public File getReportsDir() { DeprecationLogger.nagUserOfReplacedProperty("reportsDir", "reporting.baseDir"); return extension.getBaseDir(); }
Example 18
Source File: ReportingBasePluginConvention.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the title for API documentation for the project. * * @deprecated use {@link org.gradle.api.reporting.ReportingExtension#getApiDocTitle()} * @return The title. Never returns null. */ @Deprecated public String getApiDocTitle() { DeprecationLogger.nagUserOfReplacedProperty("apiDocTitle", "reporting.apiDocTitle"); return extension.getApiDocTitle(); }
Example 19
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the root folder for the test results in XML format. * * @return the test result directory, containing the test results in XML format. * @deprecated Replaced by {@code getReports().getJunitXml().getDestination()} */ @Deprecated public File getTestResultsDir() { DeprecationLogger.nagUserOfReplacedProperty("Test.testResultsDir", "Test.getReports().getJunitXml().getDestination()"); return reports.getJunitXml().getDestination(); }
Example 20
Source File: Test.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 2 votes |
/** * Returns the root folder for the test reports. * * @return the test report directory, containing the test report mostly in HTML form. * @deprecated Replaced by {@code getReports().getHtml().getDestination()} */ @Deprecated public File getTestReportDir() { DeprecationLogger.nagUserOfReplacedProperty("Test.testReportDir", "Test.getReports().getHtml().getDestination()"); return reports.getHtml().getDestination(); }