View | Details | Raw Unified | Return to bug 58164
Collapse All | Expand All

(-)C:/perso_max/workspace/JMeter_2.12/src/core/org/apache/jmeter/engine/DistributedRunner.java (-22 lines)
Lines 75-96 Link Here
75
		
76
		// Check if file exist on ResultCollector listener before start the test
77
  		SearchByClass<ResultCollector> resultListeners = new SearchByClass<ResultCollector>(ResultCollector.class); 
78
        tree.traverse(resultListeners);
79
        Iterator<ResultCollector> irc = resultListeners.getSearchResults().iterator();
80
        while (irc.hasNext() ) { 
81
        	ResultCollector rc = irc.next();
82
        	File f = new File(rc.getFilename());
83
        	if (f.exists())
84
        	{
85
        		  int response = JOptionPane.showConfirmDialog(null, 
86
                          "Le fichier \"" + rc.getFilename() + "\" existe, voulez-vous continuer?", // $NON-NLS-1$
87
                          "Warning", // $NON-NLS-1$
88
                          JOptionPane.YES_NO_OPTION);
89
        		  if ( response == JOptionPane.NO_OPTION )
90
        		  {
91
        			  stop();
92
        			  return;
93
        		  }
94
        	}
95
        }
96

Return to bug 58164