Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Copying non-Java resources when weaving

This discuss refers to bugs 36071, 40943and 44190.

AspectJ 1.1 did not copy non-Java resources e.g. properties files when
weaving. This meant that unlike JDT when working in Eclipse resources were
not copied from src -> bin. Also when binary weaving an outjar would not
contain resources from an injar. These problems were addressed in solutions
to bugs 36071 and 40943. Bug 44190 describes the problem when an attempt is
made to copy duplicate resources from separate inputs to a single output
e.g. 2 or more input jars to either a single output jar or bin directory
under Eclipse. The current behaviour is to issue an error as compiler
cannot decide which duplicate if any to use. A solution when using ANT to
binary weave is not to weave more than one input jar into a single output
jar. The solution for when working under Eclipse is less obvious. Ideas
include:
1. An option to revert to the former behaviour of not copying resources.
2. Copy only the first resource found and warn the user. This already
happens with metadata such as manifest files.
3. Better support for JAR files when working under Eclipse

Any views on this problem along with potential solutions would be greatly
appreciated.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



Back to the top