-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 
>>One little thing I find annoying is this: I have restructured the layout
>>of my sources according to the guidelines :  resulting the logo of my
>>app ending up in the directory : src/main/resources, when I compile my
>>program using maven that is ok ofcourse. But when I want to run it from
>>eclipse it is not.
> 
> 
> Usually there is a way to add resources to be copied to the output
> directory in Eclipse - I'm not sure what it is, though, being an IDEA
> user.
> 

The best way I've found to handle non-code resources in the classpath
within Eclipse is to add a class folder. The way to do this is to open
the properties for your project, select Java Build Path, then the
Libraries tab. Once here, click on the Add Class Folder... button, and
select your resources directory/directories, then click Ok (you can
simply check off the folders you want added to your classpath).

Using this approach allows you to have access to those resources from
your classpath, without getting into issues of duplicate files on your
sourcepath.

HTH,

john
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCaPQmK3h2CZwO/4URAs05AJwPxL6h+MJ0am2EGCvvzc8iw7+lpACaAtlk
kzVMC/H3Pw+KolXfXpn8Q2c=
=caY+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to