Discussion:
how to exclude files from WAR
(too old to reply)
phimalaya
2007-04-03 14:13:41 UTC
Permalink
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
Paul Furbacher [TeamB]
2007-04-05 03:00:56 UTC
Permalink
Post by phimalaya
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.
Kevin Dean [TeamB]
2007-04-05 13:02:51 UTC
Permalink
Post by phimalaya
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
Loading...