[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-dev
Subject: AW: ExtensionPoints + Dependencies
From: <Jan.Materne () rzf ! fin-nrw ! de>
Date: 2010-08-18 6:45:12
Message-ID: 9EE86F1965E19E499C80DE52AC807B550B56963E () z011021 ! bk ! fin ! local
[Download RAW message or body]
>IMHO you are wrong. extensionOf adds C to the depends list of
>B but doesn't change anything for C itself.
So my target has to define the dependencies for itself.
I changed the names to more meaningful ones:
<project default="build">
<echo>Ant-Version ${ant.version}</echo>
<target name="init-ivy">
<echo>Initialize Ivy (download ivy.jar, taskdef ...)</echo>
</target>
<extension-point name="metrics" depends="init-ivy"/>
<target name="build" depends="metrics">
<echo>Full Build</echo>
</target>
<!--
Have to define the dependency so you could run this target
directly from command line, outside of a "full build"
-->
<target name="checkstyle" extensionOf="metrics" depends="init-ivy">
<echo>Ivy-Cachepath for downloading CS, taskdef it</echo>
<echo>Running Checkstyle...</echo>
</target>
</project>
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic