Hi,
I have question on the capabilities of the AntRun plugin. This example
shows the Maven classpaths being copied into Ant properties, which are
then used in Ant:
http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html
I thougth it would be useful to reference these classpaths directly in
Ant, rather than using the copied properties, and so I ran a series of
tests. What I found was that the maven classpaths could be referenced,
but only in the scope of the called target. When used outside of a
target (in a taskdef, for example), an error is thrown. On the other
hand, properties that are created in the Maven tasks element can be used
both in and outside of the scope of the called target. This is using the
ant task, with both inheritsAll and inheritsRefs set to true.
I'm wondering if I'm correct in the above assessment of the capabilities
of antrun. Can maven classpaths not be referenced directly, outside of
the scope of the called ant task? If they cannot, what is the best way
in Ant to read a classpath that has been read into a property back into
a path element?
Let me know. Thanks,
Jake
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]