Hellu,
How can I share different web resources like css and images between different projects, such that the are located in the other project in a sub pacakge.
Suppose:
project Share and project NeedShare:
Share source dir: src/com/some/public/resources
NeedShare source dir: src/com/some/public/login/….
The NeedShare project want the dir of Share to be copied to his own source or target dir.
I am familar with he “link source” and class folder options to add a source or class path folder, but this doesn’t exactly copy the source/target files to the other project.
With sharing resources like css and images, I need them to be exactly present (instead of java files) in the location I want, as in my public sub pacakge (in case of a GWT project). Otherwise I can’t test the web page, as it will then miss some resources…
With the link source option I can only link a source folder from another project to the root of my project, whereas It needs to be linked to a certain subpackage like public ….
I can also be that the resources are copied to the target/bin of my project, but I don’t seem to be able to manage that, also not with adding a class path folder as library ….
Please some advice on how to do that.. ??
I was thinking of making an ant file and adding that as a builder, such that the files are automatically copied from the shared resource project to my own project.. but I can’t imagine it can’t be done more easily ?
So the builder will basically take care of copying the sources to an additional target/bin directory instead of the normal default one…
I hope my problem is clear…
Please some feedback ?
Regards,
Ed Bras