# generateChangeLog Ant Task and --diffType="data"

**URL:** https://forum.liquibase.org/t/generatechangelog-ant-task-and-difftype-data/517
**Category:** General Discussion
**Created:** [April 30, 2010, 4:50pm UTC](https://forum.liquibase.org/t/generatechangelog-ant-task-and-difftype-data/517 "2010-04-30T16:50:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hand\_of\_henry](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@hand\_of\_henry](https://forum.liquibase.org/u/hand_of_henry)
#### Post date: [April 30, 2010, 4:50pm UTC](https://forum.liquibase.org/t/generatechangelog-ant-task-and-difftype-data/517/1 "2010-04-30T16:50:00Z")

</div>

Hi,

Does anyone know if it’s possible to run the generateChangeLog Ant task to generate the data like&nbsp; --diffType=“data” on the command line?

Thanks,  
Brian

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [April 30, 2010, 4:50pm UTC](https://forum.liquibase.org/t/generatechangelog-ant-task-and-difftype-data/517/2 "2010-04-30T16:50:00Z")

</div>

There should be a diffTypes ant parameter you can set to include “data” and a dataDir attribute as well.

Nathan

---

<div class="post-metadata">

### Author: ![hand\_of\_henry](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@hand\_of\_henry](https://forum.liquibase.org/u/hand_of_henry)
#### Post date: [April 30, 2010, 4:50pm UTC](https://forum.liquibase.org/t/generatechangelog-ant-task-and-difftype-data/517/3 "2010-04-30T16:50:00Z")

</div>

Thanks for the reply Nathan. I tried the target, below, with no luck. It gives the following error…

“generateChangeLog doesn’t support the “diffTypes” attribute”

It gives the same for the “exportDataDir” attribute and guessed variants such as “dataDir”/“diffType”. I couldn’t see anything in the Javadocs for the Ant targets that suggest a diffType attribute is available.

I’m using version 1.9.5.

```
&nbsp; &nbsp; <generateChangeLog
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; driver="${database.driver}"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url="${database.url}"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; username="${database.username}"
	&nbsp; &nbsp; password="${database.password}"
	&nbsp; &nbsp; outputFile="${generated.sql}" &nbsp; &nbsp; 
	&nbsp; &nbsp; classpathref="liquibase.classpath" 
	&nbsp; &nbsp; diffTypes="data"
&nbsp; &nbsp; &nbsp; &nbsp; exportDataDir="C:\test"	&nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; />
</target>
```

---

<div class="post-metadata">

### Author: ![joanpujol](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@joanpujol](https://forum.liquibase.org/u/joanpujol)
#### Post date: [April 30, 2010, 4:50pm UTC](https://forum.liquibase.org/t/generatechangelog-ant-task-and-difftype-data/517/4 "2010-04-30T16:50:00Z")

</div>

DiffTypes is present from current 2.0 release.  
Can you test with that from [http://ci.ops4j.org/browse/LQB-DEF/latest/artifact](http://ci.ops4j.org/browse/LQB-DEF/latest/artifact)?
