hi u can try this under your <build> tag --under <resource> as given below remove the <include>**/*.txt</include> from <includes> under <directory> <resource>
<directory>src</directory> <includes> <include>**/*.xml</include> <include>**/*.css</include> <include>**/*.txt</include>--- remove this line <include>**/*.gif</include> <include>**/*.html</include> <include>**/*.properties</include> </includes> </resource> hope this will help Manoj Kaushik On 9/20/06, Kapil Gupta <[EMAIL PROTECTED]> wrote:
Hi, How can I exclude a txt file lying in java source folder while packaging jar file. The same thing can be done using filtering to exclude a file from resources folder but I could not find any documentation on excluding a file from source folder. Regards Kapil CONFIDENTIALITY NOTICE This e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone +91.172.229.9450 or return e-mail message [EMAIL PROTECTED] <BLOCKED::mailto:[EMAIL PROTECTED]> and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.