Article View: aus.computers.java
Article #87Manual Packaging for Deployment - J2ee
From: Bob Reynolds
Date: Mon, 05 Jan 2004 10:47
Date: Mon, 05 Jan 2004 10:47
32 lines
2799 bytes
2799 bytes
Hello, I have a requirement to create EAR and WAR packages without using the integrated package building tools built into the IDE. The packages will be created via a deployment script, preferably on a Win2k/Xp machine (less preferably we have a solaris 9x box - however i really need to get this running on xp or i'll be shuffling files between systems constantly) To be honest, all i've ever used is my IDE, in this case Sun One Studio (forte) to build my EARs and WARs but now I need to build my packages on a dedicated build box thats tied in with our Source Repository.. Meaning i have to go to first principles to create the packages... Retrieving the files from the Code Bank isnt the issue, but compiling and packaging the files is. I'm using Javac to create my class files, the bit i'm not sure about (read, currently lost) is the creation of the WAR/EAR, readings suggest that I use the Deploytool, or JAR however I cant find explanitory text on how to use those apps.. also note, I cant use a GUI, (deploy tool appears to have a gui/non gui mode) as this will be a scripted deployment. To add something else into the mix, ANT seems a popular choice, however this is something ive never played with before so unless its the "prefered" choice of the forum, i'm not planning on going there! Please throw a few pearls of your collective wisdom my way, anything you have would be appreciated. Cheers
Technical Details
Message-ID:
<XgbKb.78516$aT.60471@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!lon-transit.news.telstra.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,d2b01c723ae74ed,start X-Google-Attributes: gidf5d71,public X-Google-Thread: 111f0d,d2b01c723ae74ed,start X-Google-Attributes: gid111f0d,public X-Google-Thread: 10d6db,d2b01c723ae74ed,start X-Google-Attributes: gid10d6db,public X-Google-Thread: 10d386,d2b01c723ae74ed,start X-Google-Attributes: gid10d386,public X-Google-ArrivalTime: 2004-01-05 02:48:05 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!lon-transit.news.telstra.net!ken-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: "Bob Reynolds" <bob@bigpond.com> Newsgroups: aus.computers.java,codewarrior.java,comp.compilers.tools.javacc,comp.lang.java Subject: Manual Packaging for Deployment - J2ee Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <XgbKb.78516$aT.60471@news-server.bigpond.net.au> Date: Mon, 05 Jan 2004 10:47:19 GMT NNTP-Posting-Host: 144.137.125.137 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1073299639 144.137.125.137 (Mon, 05 Jan 2004 21:47:19 EST) NNTP-Posting-Date: Mon, 05 Jan 2004 21:47:19 EST Organization: BigPond Internet Services