Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 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 28 03:35:10 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 May 05 03:35:11 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 May 05 03:35:11 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,
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  5. 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 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. maven-compat/src/test/java/org/apache/maven/project/artifact/MavenMetadataSourceTest.java

            /*
            Dependency dep1 = new Dependency();
            dep1.setGroupId( "test" );
            dep1.setArtifactId( "test-artifact" );
            dep1.setVersion( "1" );
            dep1.setType( "jar" );
    
            Exclusion exc = new Exclusion();
            exc.setGroupId( "test" );
            exc.setArtifactId( "test-artifact3" );
    
            dep1.addExclusion( exc );
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

                }, validationErrorLambda);
                return null;
            });
        }
    
        private OptionalThing<HttpSession> getSession() {
            final HttpSession session = request.getSession(false);
            if (session != null) {
                return OptionalEntity.of(session);
            }
            return OptionalEntity.empty();
        }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            this.resourceLoc = resourceLoc;
            this.treeConnection = treeConnection.acquire();
        }
    
    
        @Override
        public SmbSessionImpl getSession () {
            return this.treeConnection.getSession();
        }
    
    
        @Override
        public void ensureDFSResolved () throws CIFSException {
            this.treeConnection.ensureDFSResolved(this.resourceLoc);
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java

            final Parent parent = new Parent();
            parent.setGroupId("org.apache");
            parent.setArtifactId("apache");
            parent.setVersion("0");
    
            UnresolvableModelException e = assertThrows(
                    UnresolvableModelException.class,
                    () -> newModelResolver().resolveModel(parent.getDelegate(), new AtomicReference<>()),
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Apr 03 17:49:40 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyCoordinateFactory.java

            nonNull(request, "request");
            InternalSession session = InternalSession.from(request.getSession());
    
            ArtifactType type = null;
            if (request.getType() != null) {
                type = session.getSession().getArtifactTypeRegistry().get(request.getType());
            }
            if (request.getCoordinateString() != null) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top