Lines Matching refs:src

65 	dest, src string  member
360 for _, src := range srcs {
361 err := fillPathPairs(fa, src, &pathMappings, args.NonDeflatedFiles, noCompression)
410 func fillPathPairs(fa FileArg, src string, pathMappings *[]pathMapping,
416 dest = filepath.Base(src)
419 dest, err = filepath.Rel(fa.SourcePrefixToStrip, src)
425 Path: src,
438 pathMapping{dest: dest, src: src, zipMethod: zipMethod})
493 err = z.addManifest(ele.dest, ele.src, ele.zipMethod)
495 err = z.addFile(ele.dest, ele.src, ele.zipMethod, emulateJar, srcJar)
594 func (z *ZipWriter) addFile(dest, src string, method uint16, emulateJar, srcJar bool) error {
601 s, err = z.fs.Stat(src)
603 s, err = z.fs.Lstat(src)
614 createParentDirs := func(dest, src string) error {
615 if err := z.writeDirectory(filepath.Dir(dest), src, emulateJar); err != nil {
620 return fmt.Errorf("destination %q is both a directory %q and a file %q", dest, prev, src)
623 return fmt.Errorf("destination %q has two files %q and %q", dest, prev, src)
626 z.createdFiles[dest] = src
633 return z.writeDirectory(dest, src, emulateJar)
637 err = createParentDirs(dest, src)
642 return z.writeSymlink(dest, src)
644 r, err := z.fs.Open(src)
649 if srcJar && filepath.Ext(src) == ".java" {
651 pkg, err := jar.JavaPackage(r, src)
655 dest = filepath.Join(filepath.Join(strings.Split(pkg, ".")...), filepath.Base(src))
677 err = createParentDirs(dest, src)
684 return fmt.Errorf("%s is not a file, directory, or symlink", src)
688 func (z *ZipWriter) addManifest(dest string, src string, method uint16) error {
690 return fmt.Errorf("destination %q is both a directory %q and a file %q", dest, prev, src)
693 return fmt.Errorf("destination %q has two files %q and %q", dest, prev, src)
696 if err := z.writeDirectory(filepath.Dir(dest), src, true); err != nil {
701 if src != "" {
702 f, err := z.fs.Open(src)
937 func (z *ZipWriter) writeDirectory(dir string, src string, emulateJar bool) error {
949 return fmt.Errorf("destination %q is both a directory %q and a file %q", dir, src, prev)
952 z.createdDirs[dir] = src