jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1544805 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java
Date Sat, 23 Nov 2013 14:14:28 GMT
Author: pmouawad
Date: Sat Nov 23 14:14:27 2013
New Revision: 1544805

URL: http://svn.apache.org/r1544805
Log:
Add a warning if deprecated property is used

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java?rev=1544805&r1=1544804&r2=1544805&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleSenderFactory.java Sat Nov 23 14:14:27
2013
@@ -60,9 +60,12 @@ public class SampleSenderFactory {
         final boolean holdSamples = JMeterUtils.getPropDefault("hold_samples", false); //
$NON-NLS-1$
 
         // Extended property name
-         final String type = JMeterUtils.getPropDefault("mode", MODE_STRIPPED_BATCH); //
$NON-NLS-1$
-
+        final String type = JMeterUtils.getPropDefault("mode", MODE_STRIPPED_BATCH); // $NON-NLS-1$
+        
         if (holdSamples || type.equalsIgnoreCase(MODE_HOLD)) {
+            if(holdSamples) {
+                log.warn("Property hold_samples is deprecated and will be removed in upcomping
version, use mode="+MODE_HOLD +" instead");
+            }
             HoldSampleSender h = new HoldSampleSender(listener);
             return h;
         } else if (type.equalsIgnoreCase(MODE_BATCH)) {



Mime
View raw message