SunQuest
           Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old May 22nd, 2002, 06:21 AM
coderkind coderkind is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 6 coderkind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy How to create WAR files on a mac?

Hi,

I'm working with a set of files that need to eventually end up as a WAR file for deployment on a server.

These files were previously WAR-ed, and so have all the necessary XML docs etc with them already.

Basically, need to edit the individual files, then WAR everything up again.

Can anyone recommend a way of doing this, or an application (preferably freeware/shareware or trial for the moment) that could help me?

I can work from either OS 9 or OS X to get this done.

Thanks in advance for any help

Reply With Quote
  #2  
Old May 30th, 2002, 10:37 PM
jnicholas jnicholas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 5 jnicholas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A WAR file is just a jar file that has a specific directory setup. you just use the jar command or program to create it and name it with a war extension.

Reply With Quote
  #3  
Old May 31st, 2002, 05:07 AM
coderkind coderkind is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 6 coderkind User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the reply.

Problem is, I've inherited these files and directory structure from someone obviously working from a PC within something like JBuilder or something, and I haven't a clue what a comparible production environment might be on the mac.

I've been told that a WAR file is just a zip file, but essentially renamed, but that if I'm modifying any JSP pages within the setup, I need to recompile the whole WAR, whereas if I just modify a HTML file, I can just zip and rename again...

Confused!


Reply With Quote
  #4  
Old May 31st, 2002, 01:30 PM
jnicholas jnicholas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 5 jnicholas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You don't actually "compile" the war file but the files within the war file. Changing jsps shouldn't require any recompiling since jsps are compiled by the container (tomcat etc). If you changed some .java files you would need to recompile those into the new .class files and then jar everything up. JSP, HTML and XML files shouldn't require any additional steps.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > How to create WAR files on a mac?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway