Here's what you can not do:
<path id="project.all.jars.path"> <path refid="project.all.jars.path" /> <path refid="ivy.build.path" /> </path>
Defining a path by referencing itself doesn't work because both these references would point to the same object. Here's what does work:
<pathconvert property="classpathPropBefore" refid="project.all.jars.path" />
<path id="project.all.jars.path">
<path path="${classpathPropBefore}" />
<path refid="ivy.build.path" />
</path>
It's simple if you think about it. All I did was write the old content of the classpathentry into the property classpathPropBefore and then redefined the classpath entry with it's old content plus my addition.
No comments:
Post a Comment