简体   繁体   中英

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.

I'd go with project/resources . Ie, 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:

A common practice is to create res folder in the root of your project in order to separate resources from the source code. Your ant script is your responcibility, so you just need to fix it to fit your needs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM