Bug 65237 - Use custom directory when launching JMeter from sources (e.g. build/standalone)
Summary: Use custom directory when launching JMeter from sources (e.g. build/standalone)
Status: NEW
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 22:33 UTC by Vladimir Sitnikov
Modified: 2022-05-11 12:55 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Sitnikov 2021-04-12 22:33:13 UTC
Historically, the approach was to build the jars, copy them to /lib and then launch JMeter.

However, it creates several issues:
a) The source files, the build artifacts and log files interfere. It is hard to decide which files to remove when cleaning the workspace
b) Adding custom plugins for testing is non-trivial as well. For instance, if the user adds their own plugins right to /lib/ext (or whatever), then gradlew clean should keep them there otherwise the user would have to copy the jars again and again

What do you think if the base scripts and files to launch JMeter were co-located in a single folder (e.g. /startup/src/main/resources) and copyDist task copied those files into a temporary folder (e.g. /src/dist/build/standalone/)?

That does not solve "user-provided plugins for testing", however, it would separate the source files from the playground.

User-provided plugins could be handled by adding a magic /test-plugins/lib folder which would be excluded by gitignore. The files from that folder could be copied into /src/dist/build/standalone/lib as well. Then we can wipe /src/dist/build/standalone/ and re-create it easily.

WDYT?

See also https://bz.apache.org/bugzilla/show_bug.cgi?id=63914
Comment 1 Felix Schumacher 2021-04-24 15:59:18 UTC
Looks like an interesting feature. This is meant for development only, the binary distribution would not change, right?
Comment 2 The ASF infrastructure team 2022-09-24 20:38:22 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5521