Can I use properties in an ivy.xml file to avoid repeating version numbers of dependencies?

Posted by scompt.com on Stack Overflow See other posts from Stack Overflow or by scompt.com
Published on 2010-06-08T09:16:59Z Indexed on 2010/06/08 9:22 UTC
Read the original article Hit count: 208

Filed under:
|
|

Here's what part of my ivy.xml looks like right now:

<dependency org="org.springframework" name="org.springframework.core" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.context" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.jdbc" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.beans" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.jms" rev="3.0.2.RELEASE" />

Here's what I'd like it to look like:

<dependency org="org.springframework" name="org.springframework.core" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.context" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.jdbc" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.beans" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.jms" rev="${spring.version}" />

Is this possible? What's the syntax?

© Stack Overflow or respective owner

Related posts about apache

Related posts about dependencies