|
|
I need to override my EJB's Jar's Manifest file so that I can specify a CLASSPATH. How do I do this? |
|
Bill Joy writes:
It turns out there is a backdoor way to do what you want. If you modify your project (with JBuilder closed) and add one line to it, you will be able to specify the location of a MANIFEST.MF file which JBuilder will then use when building your EJB jar. That line looks like (assuming a .jpx project file format) <property category="archiving" name="overrideManifestPath" value="src/META-INF/MANIFEST.MF"/> where the value is a location relative to the EJB Module. The line needs to be specified as a property of your EJB Module so it needs to be inside the existing context, something like:
<file path="Untitled1.ejbgrpx">
<property category="archiving" name="overrideManifestPath" value="src/META-INF/MANIFEST.MF"/>
</file>
Your MANIFEST.MF would look something like:
Manifest-Version: 1.0 Name: Test Class-Path: My.jar 2002-Mar-22 8:12am gyles19@visi.com | |
| [Append to This Answer] | |
| 2002-Mar-22 8:12am |
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||