Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for AddFile (0.22 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/VariantFilesMetadataRulesTest.groovy

        }
    
        def "variant file metadata rules can add files to #metadataType metadata"() {
            given:
            def rule = { MutableVariantFilesMetadata files ->
                files.addFile("added1.zip")
                files.addFile("added2", "../path.jar")
            }
    
            when:
            metadata.getVariantMetadataRules().addVariantFilesAction(new VariantMetadataRules.VariantAction<MutableVariantFilesMetadata>(null, rule))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:21:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/AbstractMutableModuleComponentResolveMetadataTest.groovy

            given:
            def v1 = metadata.addVariant("api", attributes(usage: "compile"),)
            v1.addFile("f1", "dir/f1")
            v1.addFile("f2.jar", "f2-1.2.jar")
            def v2 = metadata.addVariant("runtime", attributes(usage: "runtime"),)
            v2.addFile("f1", "dir/f1")
    
            expect:
            metadata.variants.size() == 2
            metadata.variants[0].name == "api"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  3. src/go/token/position.go

    	infos []lineInfo
    }
    
    // Name returns the file name of file f as registered with AddFile.
    func (f *File) Name() string {
    	return f.name
    }
    
    // Base returns the base offset of file f as registered with AddFile.
    func (f *File) Base() int {
    	return f.base
    }
    
    // Size returns the size of file f as registered with AddFile.
    func (f *File) Size() int {
    	return f.size
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. src/cmd/pack/pack.go

    type FileLike interface {
    	Name() string
    	Stat() (fs.FileInfo, error)
    	Read([]byte) (int, error)
    	Close() error
    }
    
    // addFile adds a single file to the archive
    func (ar *Archive) addFile(fd FileLike) {
    	// Format the entry.
    	// First, get its info.
    	info, err := fd.Stat()
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    	readFile := pass.ReadFile
    	if readFile == nil {
    		readFile = os.ReadFile
    	}
    	content, err := readFile(filename)
    	if err != nil {
    		return nil, nil, err
    	}
    	tf := pass.Fset.AddFile(filename, -1, len(content))
    	tf.SetLinesForContent(content)
    	return content, tf, nil
    }
    
    // LineStart returns the position of the start of the specified line
    // within file f, or NoPos if there is no line of that number.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/go/internal/gcimporter/support.go

    	// all positions have been calculated (by way of fakeFileSet.setLines), so
    	// that we can avoid setting unnecessary lines. See also golang/go#46586.
    	f := s.files[file]
    	if f == nil {
    		f = &fileInfo{file: s.fset.AddFile(file, -1, maxlines)}
    		s.files[file] = f
    	}
    
    	if line > maxlines {
    		line = 1
    	}
    	if line > f.lastline {
    		f.lastline = line
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/AbstractMutableModuleComponentResolveMetadata.java

            }
    
            @Override
            public boolean removeFile(ComponentVariant.File file) {
                return files.remove(file);
            }
    
            @Override
            public void addFile(String name, String uri) {
                files.add(new FileImpl(name, uri));
            }
    
            @Override
            public String getName() {
                return name;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go

    files such as assembly. To report a diagnostic against a line of a
    raw text file, use the following sequence:
    
    	content, err := pass.ReadFile(filename)
    	if err != nil { ... }
    	tf := fset.AddFile(filename, -1, len(content))
    	tf.SetLinesForContent(content)
    	...
    	pass.Reportf(tf.LineStart(line), "oops")
    
    # Modular analysis with Facts
    
    To improve efficiency and scalability, large programs are routinely
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/component_metadata_rules.adoc

    Then we set the `TARGET_JVM_VERSION_ATTRIBUTE` to `8` for both variants, remove any existing file from the new variants with `removeAllFiles()`, and add the jdk8 jar file with `addFile()`.
    The `removeAllFiles()` is needed, because the reference to the main jar `quasar-core-0.7.5.jar` is copied from the corresponding base variant.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:10:53 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top