views:

104

answers:

1

Hello!

Netbeans doesn't allow me to specify, which files I want to have additionally included inside the JAR.

  • Can I work this around by editing the manifest.mf?
  • Or by editing build.xml?
  • What else could be done?

EDIT
I need the files to appear in jar's root (files such as LICENSE.txt or some exec script), because otherwise they wouldn't make lot sense.

A: 

Have you tried this tutorial or this one?

Jon Skeet
Both these articles advice me to "hide" resources in source subfolders. I wanted some resources to be in project root (for example LICENSE.txt, or some run scripts)
ivan_ivanovich_ivanoff
If you put it at the top level of a source folder, does it not end up in the root of the jar file?
Jon Skeet
YES! Indeed ;) Thank you.
ivan_ivanovich_ivanoff