🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1392

How do you insert a .jar file into a project's output .jar file?

#1392
From: Nick Emery
Date: Wed, 11 Oct 2000 00:00
32 lines
1880 bytes
Hi,

I'm trying to build a Web Application using CW6 on a Mac. This consists of
.html, .jsp, .gif, .jpeg, .xml and .jar files in the standard Web Application
Archive (.war) file.

.war files are actually just .jar files with a different file type, and with a
particular directory structure. I assumed that I could get CW6 to
automatically generate
the .war file from the various files and sources, and I have nearly succeeded...

The problem I am having is this: if you include a .jar file into a CW6
project, and
set its Merge Into Output property, the Java Linker merges the .jar file's
contents into the resulting output file rather than inserting the .jar file into
it with the appropriate directory structure. This is not what is required in a
.war file.

Is there any way to get CW6 to insert the .jar file instead?

I've tried a number of approaches including a) changing the .jar file mapping to
use the JAR Importer rather than the Java Linker b) changing the Mac file
type and
creator to be something other than ZIP /MWZP etc.

I assumed that I would be able to do this with Class Wrangler, but
curiously it too
seems to suffer the same problem - always merging the contents of the .jar
file rather
than inserting the entire .jar file itself.

--Nick
Technical Details
Message-ID: <nick-1110000923280001@nessus.peramon.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,7d1f97be88244d9e,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,7d1f97be88244d9e,start
X-Google-Attributes: gidf635e,public
From: nick@lexicos.com (Nick Emery)
Subject: How do you insert a .jar file into a project's output .jar file?
Date: 2000/10/11
Message-ID: <nick-1110000923280001@nessus.peramon.com>
X-Deja-AN: 680050770
X-Trace: 971252714 beta.news.uk.uu.net 23086 193.132.195.113
Organization: Peramon Technology Ltd
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac