Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1267

The copy task should be able to specify the file encoding

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 2.14-rc-1

      Description

      I want to copy a dos command file using the CopyTask.

      like this

      task copyCommand(type:Copy)

      { from "src/command.bat" // that has sjis strings into "dist/command.bat" filter(org.apache.tools.ant.filters.ReplaceTokens, tokens:[jarPath:jar.archivePath.name]) }

      but when I saw the copied file ("dist/command.bat"), the sjis strings in the file had been broken.

      I have heard the Copy task always uses the JVM's default encoding.
      I need to specify the file encoding of the file.

        Attachments

          Activity

            People

            Assignee:
            eskatos Paul Merlin
            Reporter:
            masatoshi Masatoshi Hayashi
            Votes:
            19 Vote for this issue
            Watchers:
            16 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: