Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 1169

Re : CustomtaskChange passing a parameter

$
0
0
Hi aorb38,

it is as simly as adding a property to your implementation class (wich implements CustomSqlChange or CustomTask).
  1. public class CustomTask implements CustomTaskChange {

    private String myTaskParam;

    ...

    public void setMyTaskParam(String myTaskParam) {
    this.myTaskParam = myTaskParam;
    }
    }
You have to provide set methods and can then use the customChange param tags:
  1. <changeSet id="1" author="me">
    <customChange class="liquibase.ext.company.custom.CustomTask">
    <param name="myTaskParam" value="customTask value" />
    </customChange>
    </changeSet>

Viewing all articles
Browse latest Browse all 1169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>