Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 171 for setSession (0.34 sec)

  1. 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 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultLegacySupport.java

            }
        }
    
        public MavenSession getSession() {
            AtomicReference<MavenSession> currentSession = DefaultLegacySupport.SESSION.get();
            return currentSession != null ? currentSession.get() : null;
        }
    
        public RepositorySystemSession getRepositorySession() {
            MavenSession session = getSession();
            return (session != null) ? session.getRepositorySession() : null;
        }
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/LegacySupport.java

         *
         * @param session The currently active session, may be {@code null}.
         */
        void setSession(MavenSession session);
    
        /**
         * Gets the currently active session.
         *
         * @return The currently active session or {@code null} if none.
         */
        MavenSession getSession();
    
        /**
         * Gets the currently active repository session.
         *
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  4. maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java

            MavenSession mavenSession =
                    new MavenSession(container, session, mavenExecutionRequest, new DefaultMavenExecutionResult());
            legacySupport.setSession(mavenSession);
            InternalSession iSession = new DefaultSession(mavenSession, null, null, null, null, null);
    
            ArtifactResolutionResult result = repositorySystem.resolve(request);
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java

                    mojo = new MojoWrapper(mojoV4);
                } else {
                    mojo = mavenPluginManager.getConfiguredMojo(Mojo.class, session, mojoExecution);
                }
    
                legacySupport.setSession(session);
    
                // NOTE: DuplicateArtifactAttachmentException is currently unchecked, so be careful removing this try/catch!
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            MavenSession session = new MavenSession(
                    getContainer(), repoSession, new DefaultMavenExecutionRequest(), new DefaultMavenExecutionResult());
            session.setSession(defaultSessionFactory.newSession(session));
    
            new DefaultSession(session, null, null, null, null, null);
    
            repoSession.setCache(new DefaultRepositoryCache());
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                session.setSession(defaultSessionFactory.newSession(session));
    
                sessionScope.seed(MavenSession.class, session);
                sessionScope.seed(Session.class, session.getSession());
                sessionScope.seed(InternalMavenSession.class, InternalMavenSession.from(session.getSession()));
    
                legacySupport.setSession(session);
    
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

            MavenSession session = new MavenSession(
                    getContainer(), repoSession, new DefaultMavenExecutionRequest(), new DefaultMavenExecutionResult());
            session.setSession(new DefaultSessionFactory(
                            getContainer().lookup(RepositorySystem.class),
                            getContainer().lookup(MavenRepositorySystem.class),
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  9. maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            public ProjectBuilder setArtifactId(String artifactId) {
                project.setArtifactId(artifactId);
                return this;
            }
    
            public ProjectBuilder setVersion(String version) {
                project.setVersion(version);
                return this;
            }
    
            // Dependencies
            //
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 11K bytes
    - Viewed (0)
  10. maven-core/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

            session.setAllProjects(session.getProjects());
            session.setSession(defaultSessionFactory.newSession(session));
    
            SessionScope sessionScope = getContainer().lookup(SessionScope.class);
            sessionScope.enter();
            sessionScope.seed(MavenSession.class, session);
            sessionScope.seed(Session.class, session.getSession());
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 11.7K bytes
    - Viewed (1)
Back to top