Revision: 4100
Author: janne.t.harkonen
Date: Thu Sep 23 00:05:20 2010
Log: Updated instructions about extending jar
http://code.google.com/p/robotframework/source/detail?r=4100
Modified:
/wiki/JavaIntegration.wiki
=======================================
--- /wiki/JavaIntegration.wiki Mon Sep 6 02:46:48 2010
+++ /wiki/JavaIntegration.wiki Thu Sep 23 00:05:20 2010
@@ -57,16 +57,22 @@
= Extending the Robot Framework Jar =
+== Using `jar` command ==
+
+NOTE: robotframework-2.5.3.jar contains (accidentally) two MANIFEST.MF
files,
+which causes `jar` command to fail. robotframework-2.5.3.jar can be
extended
+using `zip` command.
+
Adding additional test libraries or support code to the Robot Framework
jar is
-quite starightforward using the `zip` command. Python code must be placed
in `Lib` directory inside
-the jar and Java code can be placed directly to the root of the jar,
according
-to package structure.
+quite starightforward using the `jar` command distributed with JDK. Python
code
+must be placed in `Lib` directory inside the jar and Java code can be
placed
+directly to the root of the jar, according to package structure.
For example, to add Python package `mytestlib` to the jar, first copy the
`mytestlib` directory under a directory called `Lib`, then run command:
{{{
-zip -r /path/to/robotframework-2.5.3.jar Lib
+jar uf /path/to/robotframework-2.5.4.jar Lib
}}}
in the directory where `Lib` is located.
@@ -75,11 +81,11 @@
corresponding to the Java package structure and add that recursively to the
zip.
-For example, to add class `MyLib.class`, in package org.test, the file
must be in `org/test/MyLib.class`
-and you can execute:
+For example, to add class `MyLib.class`, in package org.test, the file
must be
+in `org/test/MyLib.class` and you can execute:
{{{
-zip -r /path/to/robotframework-2.5.3.jar org
+jar uf /path/to/robotframework-2.5.4.jar org
}}}
= Robot Framework as Maven Dependency =