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

[patch] Use <echo message=".."> in pom template for add-ons

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M1
    • Component/s: None
    • Labels:
      None

      Description

      The roo-addon-simple-template.xml contains the ant echo task for the creation of setup.bat and setup.env written like that:
      <echo file="${basedir}/setup.bat" append="false">@set ROO_ADDON_CLASSPATH_FILE="${project.build.directory}\roo_classpath.txt">
      </echo>

      After auto-formatting the generated pom.xml it is likely to have a line break included:
      <echo file="${basedir}/setup.bat" append="false">@set
      ROO_ADDON_CLASSPATH_FILE="${project.build.directory}\roo_classpath.txt">
      </echo>

      This makes the execution of setup.bat fail because it cannot handle the linebreak.
      Solution: Rewrite the template using the message attribute:
      <echo file="${basedir}/setup.bat" append="false" message="@set ROO_ADDON_CLASSPATH_FILE="${project.build.directory}\roo_classpath.txt"" />

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              stevy Stefan Bley
              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