Bug 50708 - Classpath jar order in NewDriver not alphabetically
Classpath jar order in NewDriver not alphabetically
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.4
PC Windows XP
: P2 major (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-02-02 11:07 UTC by jens_0
Modified: 2011-02-02 11:48 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jens_0 2011-02-02 11:07:51 UTC
Hello,

my extension whose jar I add to the lib\ext directory overwrites an existing JMeter class. This works well in most cases, as the name of my extension begins with an "A" and comes first in the classpath before the other JMeter lib\ext jars.

Now I had the case of one system where this was not working and I checked the classpath and indeed, the order was not alphabetically.
NewDriver uses File.listFiles which does not guarantee a specific order!

Therefore my request would be to add the line 
Arrays.sort(libJars); 
to myDriver.java line 100.
Comment 1 Sebb 2011-02-02 11:48:41 UTC
Good idea:

URL: http://svn.apache.org/viewvc?rev=1066521&view=rev
Log:
Bug 50708 - Classpath jar order in NewDriver not alphabetically

Modified:
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/NewDriver.java
   jakarta/jmeter/trunk/xdocs/changes.xml