Simple question: manifest.mf

S

ShadowMan

Hi all
I have to specify a long number of jars in Class-path field of MANIFEST.MF
file.
If I put some of them on new line it seem that application server doesn't
see them...I also tried to use '\' at end of line...but it still doesn't
work

How can I avoid a long Class-path line ?

thanx
 
K

KC Wong

I have to specify a long number of jars in Class-path field of MANIFEST.MF
file.
If I put some of them on new line it seem that application server doesn't
see them...I also tried to use '\' at end of line...but it still doesn't
work

The manifest is parsed in a line by line style I think... and I have not
read about any line continuation syntax in the docs.

How can I avoid a long Class-path line ?

Either repackage the jar you depends on, or... turn on line wrap in your
editor - it might make you feel better :)
 
A

Andrew Thompson

actually, on the same page I read this:

No line may be longer than 72 bytes (not characters), in its
UTF8-encoded form. If a value would make the initial line longer than
this, it should be continued on extra lines (each starting with a single
SPACE).

Well spotted! Thanks for the clarification.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top