You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Mike Stover <ms...@apache.org> on 2001/06/07 19:38:13 UTC

Re: end of line characters in names

It's in the current CVS files, but not the released tar.

On Thursday 07 June 2001 20:46, you wrote:
> Hi,
> This refers to the GUI client for JMeter.
>
> If we create any config elements such as URL Config and save the entire
> thread group / test plan and read it again , the names of the saved
> elements display new lines in the beginning and end. The following fix will
> take care of this problem.
>
> Index:
> ../src/org/apache/jmeter/save/handlers/AbstractConfigElementHandler.java
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-jmeter/src/org/apache/jmeter/save/handlers/Abstract
>ConfigElementHandler.java,v retrieving revision 1.5
> diff -r1.5 AbstractConfigElementHandler.java
> 111c111
> <         currentProperty = atts.getValue("name");
>
> ---
>
> >         currentProperty = atts.getValue("name").trim();
>
> 120,121c120,122
> <
>
> <         if(data != null && data.trim().length() > 0)
>
> ---
>
> >         if(data != null)
> >
> >              data = data.trim();
> >         if(data != null && data.length() > 0)
>
> 123c124
> <              config.putProperty(currentProperty,data.trim());
>
> ---
>
> >              config.putProperty(currentProperty,data);
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org

-- 
Mike Stover
mstover1@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org