Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 73 for throw (3.06 sec)

  1. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

            val packageNamePath = packageName.replace(".", File.separator)
            val packageDirectory = sourceRootDirectory.file(packageNamePath).asFile
            if (!packageDirectory.exists() && !packageDirectory.mkdirs()) {
                throw IOException("Failed to create directory `$packageDirectory`")
            }
            val groovyAnnotationFile = File(packageDirectory, "GroovyBuildScriptLanguage.groovy")
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Jun 22 10:58:31 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/GenerateDefaultImports.java

        /**
         * Package name can end with '.**' to exclude subpackages as well.
         */
        @Input
        public abstract SetProperty<String> getExcludedPackages();
    
        @TaskAction
        public void generate() throws IOException {
            final Set<String> packages = new LinkedHashSet<>();
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  3. .teamcity/.mvn/wrapper/MavenWrapperDownloader.java

                System.out.println("- Error downloading");
                e.printStackTrace();
                System.exit(1);
            }
        }
    
        private static void downloadFileFromURL(String urlString, File destination) throws Exception {
            if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
                String username = System.getenv("MVNW_USERNAME");
    Java
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 4.8K bytes
    - Viewed (0)
  4. build-logic/documentation/src/test/resources/org/gradle/test/JavaClassWithImports.java

    import org.gradle.test.sub2.Sub2Interface;
    
    import java.io.Closeable;
    import java.io.IOException;
    
    public class JavaClassWithImports extends SubClass implements SubJavaInterface, Sub2Interface, Closeable {
        public void close() throws IOException {
        }
    Java
    - Registered: Wed Apr 10 11:36:10 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 315 bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/GenerateApiMapping.java

        /**
         * Package name can end with '.**' to exclude subpackages as well.
         */
        @Input
        public abstract SetProperty<String> getExcludedPackages();
    
        @TaskAction
        public void generate() throws IOException {
            final Multimap<String, String> simpleNames = LinkedHashMultimap.create();
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 3.1K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

                    errors.add(ex)
                }
            }
            openJavaCompilationUnitsByFile.clear()
            openKotlinCompilationUnitsByRoot.clear()
            if (errors.isNotEmpty()) {
                throw Exception("Sources repository did not close cleanly").apply {
                    errors.forEach(this::addSuppressed)
                }
            }
        }
    
        /**
         * @return the source file and it's source root
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Feb 20 16:37:41 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

                                parentFile.mkdirs()
                                writeBytes(classWriter.toByteArray())
                            }
                        } catch (exception: Exception) {
                            throw ClassAnalysisException("Could not transform class from ${file.toFile()}", exception)
                        }
                    }
                }
            )
        }
    }
    
    
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

        fun createPerformanceTestsFor(model: CIBuildModel, stage: Stage, performanceTestCoverage: PerformanceTestCoverage, bucketIndex: Int): PerformanceTest
    
        fun getName(testCoverage: TestCoverage): String = throw UnsupportedOperationException()
    }
    
    data class TestProjectDuration(val testProject: String, val scenarioDurations: List<PerformanceTestDuration>) {
        val totalTime: Int = scenarioDurations.sumOf { it.durationInMs }
    
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Mon Feb 19 11:22:56 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaData.java

                        + "\nExample: <apilink class=\"org.gradle.api.Project\" method=\"someMethodThatDoesNotExist\"/>";
                throw new RuntimeException(message);
            }
            if (candidates.size() != 1) {
                String message = String.format("Found multiple methods called '%s' in class '%s'. Candidates: %s",
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 7.4K bytes
    - Viewed (0)
  10. build-logic/build.gradle.kts

            val rootProperties = readProperties(rootPropertiesFile.asFile)
            val jvmArgs = listOf(buildLogicProperties, rootProperties).map { it.getProperty("org.gradle.jvmargs") }.toSet()
            if (jvmArgs.size > 1) {
                throw GradleException("gradle.properties and build-logic/gradle.properties have different org.gradle.jvmargs " +
                    "which may cause two daemons to be spawned on CI and in IDEA. " +
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jan 24 02:52:56 GMT 2024
    - 1.2K bytes
    - Viewed (0)
Back to top