Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1162

Prevent created projects from displaying source encoding warning

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                balex Ben Alex
                Reporter:
                mab 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