Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for gitInfo (0.14 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/GitInfo.java

    import java.util.regex.Pattern;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    public class GitInfo {
        private static final Pattern GIT_PATTERN = Pattern.compile("git@([^:]+):([^\\.]+)\\.git");
    
        private final String revision;
        private final String origin;
    
        private GitInfo(String revision, String origin) {
            this.revision = revision;
            this.origin = origin;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.8K bytes
    - Click Count (0)
  2. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/PublishPlugin.java

            shadow.component(publication);
        }
    
        private static void addScmInfo(XmlProvider xml, GitInfo gitInfo) {
            var root = xml.asNode();
            root.appendNode("url", gitInfo.urlFromOrigin());
            var scmNode = root.appendNode("scm");
            scmNode.appendNode("url", gitInfo.getOrigin());
        }
    
        /**
         * Adds a javadocJar task to generate a jar containing javadocs.
         */
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Aug 11 07:30:51 GMT 2021
    - 8.9K bytes
    - Click Count (0)
  3. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/GitInfoPlugin.java

            gitInfo = objectFactory.property(GitInfo.class).value(factory.provider(() ->
                GitInfo.gitInfo(rootDir)
            ));
            gitInfo.disallowChanges();
            gitInfo.finalizeValueOnRead();
    
            revision = gitInfo.map(info -> info.getRevision() == null ? info.getRevision() : "master");
        }
    
        public Property<GitInfo> getGitInfo() {
            return gitInfo;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.9K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/GlobalBuildInfoPlugin.java

            File runtimeJavaHome = findRuntimeJavaHome();
    
            File rootDir = project.getRootDir();
            GitInfo gitInfo = GitInfo.gitInfo(rootDir);
    
            BuildParams.init(params -> {
                params.reset();
                params.setRuntimeJavaHome(runtimeJavaHome);
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 17 10:02:58 GMT 2021
    - 18.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

        }
    
        @Test
        void testGetInfo() {
            // Test getInfo method when info is null
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            assertNull(response.getInfo());
        }
    
        @Test
        void testGetInfoWithClass_Compatible() throws CIFSException {
            // Test getInfo with compatible class
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            // Should return at least to the end of the data
            assertTrue(result >= 158); // (50 + 300 + 8) - 200
            assertNotNull(response.getInfo());
            assertTrue(response.getInfo() instanceof FileInternalInfo);
        }
    
        @Test
        @DisplayName("Test multiple calls to getInfo return same instance")
        void testMultipleGetInfoCalls() throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        }
    
        @Test
        @DisplayName("Test getInfo when info is null")
        void testGetInfoWhenNull() {
            response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);
    
            assertNull(response.getInfo());
        }
    
        @Test
        @DisplayName("Test getInfo with type when info is null")
        void testGetInfoWithTypeWhenNull() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. internal/disk/stat_bsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

         */
        @SuppressWarnings("unchecked")
        public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5K bytes
    - Click Count (0)
  10. internal/disk/stat_openbsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Click Count (0)
Back to Top