- This topic has 3 replies, 2 voices, and was last updated 16 years, 10 months ago by Loyal Water.
-
AuthorPosts
-
edbrasMemberHellu,
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
Loyal WaterMemberWe don’t support automating shared resources in any way, so your idea of using Ant is actually a good one.
edbrasMemberOk, thanxs, was afraid of it.
BTW: your website is always very slow from Holland… And it’s common to get a white page and I have t refresh the page to get it correct. (also on my other computer).
Cheers,
Ed
Loyal WaterMemberEd,
I’ll ask the network admin to take a look at this issue. -
AuthorPosts