Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for thread (0.21 sec)

  1. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java

                                    + "plugin(s) that have goals not marked as thread-safe to support parallel execution.",
                            "While this /may/ work fine, please look for plugin updates and/or "
                                    + "request plugins be made thread-safe.",
                            "If reporting an issue, report it against the plugin in question, not against Apache Maven.")) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java

            }
        }
    
        static class OwnerReentrantLock extends ReentrantLock {
            @Override
            public Thread getOwner() {
                return super.getOwner();
            }
        }
    
        static class OwnerReentrantReadWriteLock extends ReentrantReadWriteLock {
            @Override
            public Thread getOwner() {
                return super.getOwner();
            }
        }
    
        private static void warn(String msg) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:31:09 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        private List<File> filesToDelete = new ArrayList<>();
    
        private final String baseFilename;
    
        private final String fileSuffix;
    
        private StackTraceElement callerInfo;
    
        private Thread cleanupWarning;
    
        private boolean warnAboutCleanup = false;
    
        public TestFileManager(String baseFilename, String fileSuffix) {
            this.baseFilename = baseFilename;
            this.fileSuffix = fileSuffix;
    
    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)
  4. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

        private final Executor executor;
    
        public DefaultArtifactResolver() {
            int threads = Integer.getInteger("maven.artifact.threads", 5);
            if (threads <= 1) {
                executor = Runnable::run;
            } else {
                executor = new ThreadPoolExecutor(
                        threads, threads, 3, TimeUnit.SECONDS, new LinkedBlockingQueue<>(), new DaemonThreadCreator());
            }
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 24.8K bytes
    - Viewed (0)
  5. 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());
        }
    
        class MyRunnable implements Runnable {
    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)
  6. maven-core/src/main/java/org/apache/maven/properties/internal/SystemProperties.java

     */
    public class SystemProperties {
        /**
         * Thread-safe System.properties copy implementation.
         */
        public static void addSystemProperties(Properties props) {
            props.putAll(getSystemProperties());
        }
    
        /**
         * Returns a copy of {@link System#getProperties()} in a thread-safe manner.
         *
         * @return {@link System#getProperties()} obtained in a thread-safe manner.
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Nov 22 13:26:01 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/ThreadOutputMuxer.java

                }
                running = false;
            }
    
            /*
            Wait until we are sure the print-stream thread is running.
             */
    
            public void waitUntilRunning(boolean expect) {
                while (!running == expect) {
                    try {
                        Thread.sleep(10);
                    } catch (InterruptedException e) {
                        throw new RuntimeException(e);
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/internal/MultilineMessageHelperTest.java

            msgs.add("* as @threadSafe to support parallel building.                  *");
            msgs.add("* While this /may/ work fine, please look for plugin updates    *");
            msgs.add("* and/or request plugins be made thread-safe.                   *");
            msgs.add("* If reporting an issue, report it against the plugin in        *");
            msgs.add("* question, not against maven-core                              *");
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java

            } catch (PluginResolutionException e) {
                throw new PluginExecutionException(mojoExecution, project, e);
            }
    
            ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
            Thread.currentThread().setContextClassLoader(pluginRealm);
    
            MavenSession oldSession = legacySupport.getSession();
    
            scope.enter();
    
            try {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();
            try {
                for (AbstractMavenLifecycleParticipant listener :
                        getExtensionComponents(session.getProjects(), AbstractMavenLifecycleParticipant.class)) {
                    Thread.currentThread().setContextClassLoader(listener.getClass().getClassLoader());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 27.5K bytes
    - Viewed (0)
Back to top