0

I created a simple application which will read all the files and folders kepts inside a folder. Whenever I build the project, I only get the jar file but the folder where the file and folders are kept have to be created. Is this supposed to be like this or I have to code something, which will create the folder upon the final build.

Robin Green
  • 32,079
  • 16
  • 104
  • 187
mrN
  • 3,734
  • 15
  • 58
  • 82

1 Answers1

0

Compilation gives you only executable file (i.e. *.jar). If you need something else to make you application works - you must do it (programmatically or not).

Grook
  • 395
  • 1
  • 6
  • 19
  • Yes but other files can be created at build time. mrN seems to be unaware of the distinction between build and compilation. (build can encompass more activities.) – Robin Green May 14 '11 at 08:44
  • 1
    Oh, I see. So i think you may found interesting Maven and [this link](http://stackoverflow.com/questions/4085973/create-directory-when-needed-in-maven) – Grook May 14 '11 at 09:06