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 Apache Wiki <wi...@apache.org> on 2006/11/29 16:25:43 UTC
[Jakarta-jmeter Wiki] Update of "BuildingPlugInWithEclipse" by DanielGrob
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Jakarta-jmeter Wiki" for change notification.
The following page has been changed by DanielGrob:
http://wiki.apache.org/jakarta-jmeter/BuildingPlugInWithEclipse
The comment on the change is:
adapted according to my experiences while setting up JMeter v2_2 in Eclipse 3.2
------------------------------------------------------------------------------
* Let Eclipse internal compiler handle the building of JMeter, instead of relying on JMeter's own Ant build files. When Eclipse handles building, development work goes more smoothly.
* Source build paths:
* Add all paths which contain /org folder
- * components/ and protocols contain nested levels so be careful choosing the right target folders
+ * src/monitor and src/protocol contain nested levels so be careful choosing the right target folders
- * Exclude following files from building
- * They have missing dependencies
+ * src/protocol/jndi has a strange directory structure so skip this path
+ * Exclude following files from building (they have missing dependencies)
* org/apache/jmeter/util/JsseSSLManager.java (HTTP security)
* org/apache/jmeter/util/keystore/DefaultKeyStore.java (HTTP security)
* org/apache/jmeter/util/keystore/PKCS12KeyStore.java (HTTP security)
@@ -31, +31 @@
* org/apache/jmeter/protocol/http/control/gui/WebServiceSamplerGui (depend on javax.mail)
* org/apache/jmeter/reporters/ (depend on javax.mail)
* ...or just copy missing JARs from Internet (Java MAIL API: mailapi.jar, etc.), it's easier
+ * ...or just add mailapi.jar from Internet to build path and remove src/protocol/jms and src/htmlparser16 from source folders
* Add libraries
* All jar files under lib/ folder
* Export libraries
- * At least logkitlibraries are needed in projects depended on JMeter
+ * At least logkit libraries are needed in projects depended on JMeter
* Export them at order and export tab page in the project properties dialog
- * To make log4j logging to Eclipse console work, you need to comment out some code. Read more notes about this below. Class is org.apacha.jmeter.jorphan.logging.LoggingManager
+ * To make log4j logging to Eclipse console work, you need to change some code. You can find the affected code in the org.apacha.jmeter.jorphan.logging.LoggingManager.initializeLogging(Properties) method. Read more notes about this below.
{{{
- public static void initializeLogging(Properties properties) {
+ public static void initializeLogging(Properties properties) {
- if (logManager == null) {
+ if (logManager == null) {
- logManager = new LoggingManager();
+ logManager = new LoggingManager();
- }
+ }
- setFormat(properties);
+ setFormat(properties);
-
+
- setPriority(properties.getProperty(LOG_PRIORITY, "INFO"));
+ setPriority(properties.getProperty(LOG_PRIORITY, "INFO"));
-
+
- // Direct to system out
+ // Direct to system out
-
+
- isWriterSystemOut = true;
+ isWriterSystemOut = true;
- isTargetSystemOut = true;
+ isTargetSystemOut = true;
-
+
- WriterTarget wt = new WriterTarget(new OutputStreamWriter(System.out), getFormat());
+ WriterTarget wt = new WriterTarget(new OutputStreamWriter(System.out), getFormat());
- Hierarchy.getDefaultHierarchy().setDefaultLogTarget(wt);
+ Hierarchy.getDefaultHierarchy().setDefaultLogTarget(wt);
-
+
- setLoggingLevels(properties);
+ setLoggingLevels(properties);
-
- /*
-
+
+ // if (logManager == null) {
+ // logManager = new LoggingManager();
+ // }
+ //
+ // setFormat(properties);
+ //
- // Set the top-level defaults
+ // // Set the top-level defaults
- setTarget(makeWriter(properties.getProperty(LOG_FILE, "jmeter.log"), LOG_FILE));
+ // setTarget(makeWriter(properties.getProperty(LOG_FILE, "jmeter.log"), LOG_FILE));
- setPriority(properties.getProperty(LOG_PRIORITY, "INFO"));
+ // setPriority(properties.getProperty(LOG_PRIORITY, "INFO"));
-
+ //
- setLoggingLevels(properties);
+ // setLoggingLevels(properties);
- // now set the individual categories (if any)
+ // // now set the individual categories (if any)
-
+ //
- setConfig(properties);// Further configuration*/
+ // setConfig(properties);// Further configuration
- }
+ }
}}}
* Now Eclipse should build JMeter without errors (stop icons in source tree)
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org