 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
phimalaya Guest
|
Posted: Tue Apr 03, 2007 7:13 pm Post subject: how to exclude files from WAR |
|
|
hello, i am creating a WAR file in jbuilder 2006.
i have found that one unwanted folder/package gets included in the WAR(in
the classes folder). this happens eventhough i have excluded it thru a
filter. what shall i do to exclude it in the WAR file?
thx |
|
| Back to top |
|
 |
Paul Furbacher [TeamB] Guest
|
Posted: Thu Apr 05, 2007 8:00 am Post subject: Re: how to exclude files from WAR |
|
|
phimalaya wrote:
| Quote: | hello, i am creating a WAR file in jbuilder 2006.
i have found that one unwanted folder/package gets included in the WAR(in
the classes folder). this happens eventhough i have excluded it thru a
filter. what shall i do to exclude it in the WAR file?
|
I think I was playing with this the other day and found something
similar. (Can't remember what I was trying to do, but I couldn't
filter out whatever it was that I was trying to exclude in an
application archive.)
I searched the archives just now for keywords
^jbuilder exclude filter archive
(at tamaracka), but didn't find much in the way of solutions,
just unresolved problems, most of which originate starting
with JB 2005.
My guess is that if you don't get any answers here, your
best bet may be an ANT build.xml file which creates the
desired WAR file. This is actually pretty easy to do
using the <war> task and some nested <fileset dir="...">
elements. Right-click on the build.xml file's Project
Pane node (or the editor tab), select Properties and
down at the bottom of the Property Dialog, set the
script to execute post-compile if you want the WAR
to be made as part of project make/rebuild.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you. |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Thu Apr 05, 2007 6:02 pm Post subject: Re: how to exclude files from WAR |
|
|
phimalaya wrote:
| Quote: | hello, i am creating a WAR file in jbuilder 2006.
i have found that one unwanted folder/package gets included in the WAR(in
the classes folder). this happens eventhough i have excluded it thru a
filter. what shall i do to exclude it in the WAR file?
|
I have generally found that the best way to configure archives in JBuilder
2006 is to remove all the named filters (e.g. "Java class file", "GIF
image") and to add explicit paths (e.g.
"com/datadevelopment/product/actions/**") for only those files that I
need. Like Paul, I haven't found a reliable way to get exclusions to work
when using the named filters.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|