Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 1,837 for New (0.01 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/CoreUtils.java

    class CoreUtils {
    
        public static <T> T cast(Class<T> clazz, Object o, String name) {
            if (!clazz.isInstance(o)) {
                if (o == null) {
                    throw new IllegalArgumentException(name + " is null");
                }
                throw new IllegalArgumentException(name + " is not an instance of " + clazz.getName());
            }
            return clazz.cast(o);
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Mar 24 22:23:23 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

        void testHandleExceptionAetherClassNotFound() {
            Throwable cause2 = new NoClassDefFoundError("org/sonatype/aether/RepositorySystem");
            Plugin plugin = new Plugin();
            Exception cause = new PluginContainerException(plugin, null, null, cause2);
            PluginDescriptor pluginDescriptor = new PluginDescriptor();
            MojoDescriptor mojoDescriptor = new MojoDescriptor();
            mojoDescriptor.setPluginDescriptor(pluginDescriptor);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 6.3K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                // TODO Hack to make the cycle detection the same for the new graph builder
                if (e.getCause() instanceof ProjectCycleException) {
                    result = addExceptionToResult(new DefaultMavenExecutionResult(), e.getCause());
                } else {
                    result = addExceptionToResult(
                            new DefaultMavenExecutionResult(), new InternalErrorException("Internal error: " + e, e));
                }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon May 05 16:58:52 GMT 2025
    - 28.7K bytes
    - Click Count (1)
  4. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilderTest.java

            toolchain = new ToolchainModel();
            toolchain.setType("TYPE");
            toolchain.setProvides(props);
            PersistedToolchains globalResult = new PersistedToolchains();
            globalResult.setToolchains(Collections.singletonList(toolchain));
    
            ToolchainsBuildingRequest request = new DefaultToolchainsBuildingRequest();
            request.setUserToolchainsSource(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 14K bytes
    - Click Count (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java

            if (listener == null) {
                return null;
            } else {
                return new TransferListenerAdapter(listener);
            }
        }
    
        private TransferListenerAdapter(ArtifactTransferListener listener) {
            this.listener = listener;
            this.artifacts = new IdentityHashMap<>();
            this.transfers = new IdentityHashMap<>();
        }
    
        @Override
        public void debug(String message) {}
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/DefaultArtifactFilterManager.java

                excludedArtifacts = new LinkedHashSet<>(coreArtifacts);
            }
            return excludedArtifacts;
        }
    
        /**
         * Returns the artifact filter for the core + extension artifacts.
         *
         * @see org.apache.maven.ArtifactFilterManager#getArtifactFilter()
         */
        @Override
        public ArtifactFilter getArtifactFilter() {
            Set<String> excludes = new LinkedHashSet<>(getExcludedArtifacts());
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
                Artifact artifact = createArtifact("artifact", "1.0");
    
                File file = new File(artifactBasedir, "artifact-1.0.jar");
                assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim());
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/LifecycleTaskSegmentCalculatorStub.java

                    currentSegment.getTasks().add(new GoalTask(task));
                } else {
                    // lifecycle phase
                    if (currentSegment == null || currentSegment.isAggregating()) {
                        currentSegment = new TaskSegment(false);
                        taskSegments.add(currentSegment);
                    }
                    currentSegment.getTasks().add(new LifecycleTask(task));
                }
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  9. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

        private setup() {
            docsRoot = new File(projectDir, "docsRoot")
            new File(docsRoot, 'javadoc').mkdirs()
            sampleDoc = new File(docsRoot, "sample.adoc")
    
            new File(projectDir,"build/working/samples/docs").mkdirs()
            sampleSampleDoc = new File(projectDir, "build/working/samples/docs/sample_sample.adoc")
    
            new File(projectDir,"build/working/release-notes").mkdirs()
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Aug 21 16:24:54 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  10. cmd/storage-errors.go

    var errDoneForNow = errors.New("done for now")
    
    // errSkipFile returned by the fn() for readDirFn() when it needs
    // to proceed to next entry.
    var errSkipFile = errors.New("skip this file")
    
    var errIgnoreFileContrib = errors.New("ignore this file's contribution toward data-usage")
    
    // errXLBackend XL drive mode requires fresh deployment.
    var errXLBackend = errors.New("XL backend requires fresh drive")
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Click Count (0)
Back to Top