incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Gill (JIRA)" <>
Subject [jira] Created: (IVY-609) Add a new trigger event to ivysettings what will be called immediately.
Date Tue, 25 Sep 2007 13:25:51 GMT
Add a new trigger event to ivysettings what will be called immediately.

                 Key: IVY-609
             Project: Ivy
          Issue Type: New Feature
          Components: Core
    Affects Versions: 2.0.0-alpha-2
            Reporter: John Gill

h3. Use Case
In our legacy build system, we have an ant file which has a series of property set in it which
specify the versions of the dependencies in it. Basically, something like this:

    <property name="projectA" value="1.2.3"/>
    <property name="projectB" value="4.5.6"/>

Unfortunately, these properties cannot be used in the ivy settings, as the ivy settings only
supports reading of properties files via the <properties/> element.

What is needed is a new type of ivy trigger which is called immediately (as soon as it is
defined) which can be used to call an ANT target which in my case can be used to read in our
depends.xml and  convert it to a properties file.

It is suggested that this new type of trigger event be called "*now*".

h3. Example

        <ant-build antfile="${ivy.settings.dir}/build.xml" target="make-ivy-properties"
        <properties file="" override="true"/>

<project name="projectX">
    <target name="make-ivy-properties">
        <copy file="depends.xml" tofile="">
                <replaceregex pattern='&ltproperty="(.*)" value="(.*)"' replace="\1=\2"

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message