Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for runnable (0.15 sec)

  1. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

            this.fileSuffix = fileSuffix;
    
            initializeCleanupMonitoring();
        }
    
        private void initializeCleanupMonitoring() {
            callerInfo = new NullPointerException().getStackTrace()[2];
    
            Runnable warning = this::maybeWarnAboutCleanUp;
    
            cleanupWarning = new Thread(warning);
    
            Runtime.getRuntime().addShutdownHook(cleanupWarning);
        }
    
        private void maybeWarnAboutCleanUp() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/plugin/internal/DefaultLegacySupportTest.java

            defaultLegacySupport.setSession(m1);
    
            MyRunnable myRunnable = new MyRunnable();
            Thread thread = new Thread(myRunnable);
            thread.start();
    
            MavenSession m2 = new MavenSession(null, null, mavenExecutionRequest, null);
            defaultLegacySupport.setSession(m2);
            latch.countDown();
            thread.join();
            assertNull(myRunnable.getSession());
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/CompletionServiceStub.java

            if (finishImmediately) {
                projectBuildFutureTask.run();
            }
            return projectBuildFutureTask;
        }
    
        public Future<ProjectSegment> submit(Runnable task, ProjectSegment result) {
            FutureTask<ProjectSegment> projectBuildFutureTask = new FutureTask<>(task, result);
            projectBuildFutureTasks.add(projectBuildFutureTask);
            if (finishImmediately) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java

    public class BuildThreadFactory implements ThreadFactory {
        private final AtomicInteger id = new AtomicInteger();
    
        private static final String PREFIX = "BuilderThread";
    
        @Override
        public Thread newThread(Runnable r) {
            return new Thread(r, String.format("%s-%d", PREFIX, id.getAndIncrement()));
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelVersionParser.java

                try {
                    this.delegate = versionScheme.parseVersion(delegateValue);
                } catch (InvalidVersionSpecificationException e) {
                    throw new VersionParserException("Unable to parse version: " + delegateValue, e);
                }
            }
    
            @Override
            public int compareTo(Version o) {
                if (o instanceof DefaultVersion) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java

                } else {
                    return xml.read(inputStream, request.isStrict());
                }
            } catch (Exception e) {
                throw new XmlReaderException("Unable to read toolchains", e);
            }
        }
    
        @Override
        public void write(XmlWriterRequest<PersistedToolchains> request) throws XmlWriterException {
            nonNull(request, "request");
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultToolchainsXmlFactory.java

                } else {
                    return xml.read(inputStream, request.isStrict());
                }
            } catch (Exception e) {
                throw new XmlReaderException("Unable to read toolchains: " + getMessage(e), getLocation(e), e);
            }
        }
    
        @Override
        public void write(XmlWriterRequest<PersistedToolchains> request) throws XmlWriterException {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

                        return xml.read(is, request.isStrict(), source);
                    }
                }
            } catch (Exception e) {
                throw new XmlReaderException("Unable to read model", e);
            }
        }
    
        @Override
        public void write(XmlWriterRequest<Model> request) throws XmlWriterException {
            nonNull(request, "request");
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 07 20:05:02 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

            ConnectException connEx = new ConnectException("Connection refused: connect");
            IOException ioEx = new IOException("Unable to establish loopback connection", connEx);
            MojoExecutionException mojoEx =
                    new MojoExecutionException("Error executing Jetty: Unable to establish loopback connection", ioEx);
    
            ExceptionHandler exceptionHandler = new DefaultExceptionHandler();
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

                        return xml.read(is, request.isStrict(), source);
                    }
                }
            } catch (Exception e) {
                throw new XmlReaderException("Unable to read model: " + getMessage(e), getLocation(e), e);
            }
        }
    
        @Override
        public void write(XmlWriterRequest<Model> request) throws XmlWriterException {
            nonNull(request, "request");
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top