Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where should I store my images?

I'm developing a Java application, and I don't know where is the best place to store the images in the project folder. Should I make a resources folder at the root, or inside the src folder. Or somewhere else ?

Where should it be so it won't make my Ant builds crash ?

Thanks.

PS : I didn't know if I should post here or on meta. I did it here, but if that's not appropriate, just tell me, i'll know for the next one.

like image 454
3rgo Avatar asked Apr 04 '11 10:04

3rgo


People also ask

Where can I save all my pictures?

Google Photos is a great resource for both organizing and editing photos that requires little to no work on your part. The Google Photos app -- available on iOS and Android -- can back up your photos to your Gmail account.

Where should I store photos from my phone?

Google Photos If you have an Android phone, you'll probably find the Google service, Photos preinstalled on your device. If you set up a Google account and use it, you will have access to a versatile cloud storage system that offers unlimited photo storage.


1 Answers

I'd go with project/resources. I.e., have a structure that looks like

+ project
+--- src/        (your source code)
+--- lib/        (your libraries)
+--- bin/        (compiled classes)
+--- resources/  (images etc)
+--- build.xml

Here's a related question:

  • adding non-code resources to jar file using Ant
like image 122
aioobe Avatar answered Sep 19 '22 18:09

aioobe