I have a bunch of ivy.xml files that reference a set of internally developed
modules that all have the same version.    I was wondering if there is way
to to reference properties inside of ivy.xml files that can then be set via
ant or somewhere else.   E.g. -  I set a property
"the.release.version.to.use" in ant and that is what is used by ivy during
the resolve.

<ivy-module version="1.0">
        <info organisation="myorg" module="mymodule" />
        <configurations>
                <conf name="runtime" description="the modules needed at 
runtime"/>
                <conf name="build" description="the modules needed at build
time"/>
                <conf name="dist" description="the dcs distribution"/>
        </configurations>
        <publications>
                <artifact name="mymodule" type="tar.gz" ext="tar.gz" 
conf="dist" />
                <artifact name="mymodule" type="jar" ext="jar"
conf="runtime" />
        </publications>
        <dependencies>
                <dependency org="myorg" name="module1" 
rev="${the.release.version.to.use}"
conf="runtime->runtime"/>
                <dependency org="myorg" name="module2"
rev="${the.release.version.to.use}" conf="runtime->runtime"/>
                <dependency org="myorg" name="module3"
rev="${the.release.version.to.use}" conf="runtime->runtime"/>
        </dependencies>
</ivy-module>
-- 
View this message in context: 
http://www.nabble.com/Referencing-dynamic-properties-in-ivy.xml.-tp25071706p25071706.html
Sent from the ivy-user mailing list archive at Nabble.com.

Reply via email to