Spring Roo
  1. Spring Roo
  2. ROO-1162

Prevent created projects from displaying source encoding warning

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.0.2.RELEASE, 1.1.0.M1, 1.1.0.M2
    • Fix Version/s: 1.1.0.M3
    • Component/s: BUILD
    • Labels:
      None
    • Environment:
      Macintosh; U; Intel Mac OS X 10.6;
      Spring 3.0.1.RELEASE
      Spring Roo 1.0.2.RELEASE

      Description

      Setting up a new project with roo leads to the warning "[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!". To fix the source encoding has to be set in the pom and this has to be done for every new project. So it might bei a solution to set the source encoding to a preset charset.

      I propose to change the addon-maven as follow.

      1. add additional option to the project command

      @CliOption(key="sourceEncoding", mandatory=false, specifiedDefaultValue="UTF8", help="The type of source encoding of the project to create (defaults to UTF8)") String sourceEncoding,

      2. add the implementation as option to the MavenOperationsImpl.java.

        Issue Links

          Activity

          Hide
          Ben Alex added a comment -

          As per http://maven.apache.org/general.html#encoding-warning I have modified all default Roo-created Maven pom.xml templates to use UTF-8. This is consistent with ROO-940, where we made UTF-8 the default. Git commit 2ffcf86b1e57bba7272bdade21aec4e8da4cec55.

          Show
          Ben Alex added a comment - As per http://maven.apache.org/general.html#encoding-warning I have modified all default Roo-created Maven pom.xml templates to use UTF-8. This is consistent with ROO-940 , where we made UTF-8 the default. Git commit 2ffcf86b1e57bba7272bdade21aec4e8da4cec55.

            People

            • Assignee:
              Ben Alex
              Reporter:
              Matthias Baumgart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified