Hi
I want to test Logback.
Without Ivy, my project has one compile JAR:
lib/slf4j-api-1.5.6.jar
and two runtime JARs:
lib/logback-core-0.9.14.jar
lib/logback-classic-0.9.14.jar
With Ivy, I configured the following ivy.xml:
<ivy-module version="1.0">
<info organisation="com.dummy" module="hello" />
<configurations>
<conf name="build" visibility="private" description="compilation only
need jar" />
</configurations>
<dependencies>
<dependency org="ch.qos.logback" name="logback-classic" rev="0.9.14" />
</dependencies>
</ivy-module>
and here is the Ant's task to download the dependencies:
<target name="resolve" description="retrieve dependencies">
<ivy:retrieve pattern="${lib}/[conf]/[artifact].[ext]" />
</target>
Do you know why when Ant run, it start downloading the following JARs?
...
[ivy:retrieve] found ch.qos.logback#logback-classic;0.9.14 in public
[ivy:retrieve] found ch.qos.logback#logback-core;0.9.14 in public
[ivy:retrieve] found org.slf4j#slf4j-api;1.5.6 in public
[ivy:retrieve] found javax.mail#mail;1.4 in public
[ivy:retrieve] found javax.activation#activation;1.1 in public
[ivy:retrieve] found janino#janino;2.4.3 in public
[ivy:retrieve] found org.apache.geronimo.specs#geronimo-jms_1.1_spec;1.0 in
public
[ivy:retrieve] found javax.servlet#servlet-api;2.5 in public
...
What I want to do is to configure a 'build' configuration, that gives
me slf4j-api-1.5.6.jar
and a 'runtime' configuration, that gives me logback-core-0.9.14.jar
and logback-classic-0.9.14.jar (which also extends the 'build'
configuration)?
--
Hez