Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6435

DefaultSettingsBuilder assumes all SettingsReader/Writer impls will use XML

    XMLWordPrintableJSON

Details

    Description

      On or around line 234, interpolation of settings assumes XML:

      interpolator.addPostProcessor( new InterpolationPostProcessor()
      {
        @Override
        public Object execute( String expression, Object value )
        {
          if ( value != null )
          {
            // we're going to parse this back in as XML so we need to escape XML markup
            value = value.toString().replace( "&", "&amp;" ).replace( "<", "&lt;" ).replace( ">", "&gt;" );
            return value;
          }
          return null;
        }
      } );
      

      The value being interpolated here is the result of a SettingsWriter's output. Obviously this kind of escaping doesn't make any sense if the SettingsWriter in question is not XML-based.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ljnelson Laird Nelson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: