Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for gitInfo (0.06 seconds)

  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. internal/disk/stat_netbsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := unix.Statvfs_t{}
    	if err = unix.Statvfs(path, &s); 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)
  5. 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)
  6. 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)
  7. 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)
  8. internal/disk/stat_windows.go

    	GetDiskFreeSpace = kernel32.NewProc("GetDiskFreeSpaceW")
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `C:\`.
    // It returns free space available to the user (including quota limitations)
    //
    // https://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx
    func GetInfo(path string, _ bool) (info Info, err error) {
    	// Stat to know if the path exists.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

         */
        @SuppressWarnings("unchecked")
        public <T extends Decodable> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  10. internal/disk/stat_freebsd.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)
Back to Top