Hi,
Im trying to use the dbDoc and changeLogSync ANT tasks. However, these tasks dont seem to recognise the ant classpath. In the below stacktrace, Liquibase is unable to find my change set file, although it should be on the classpath via ANT classpathref mechanism. this works for other Liquibase ANT tasks.
- generate-database-docs:
[dbDoc] INFO 27/09/11 15:38:liquibase: Generating Database Documentation
[dbDoc] INFO 27/09/11 15:38:liquibase: Successfully acquired change log lock
[dbDoc] INFO 27/09/11 15:38:liquibase: Successfully released change log lock - BUILD FAILED
C:\dev\macalla-platform-7-1-0_03-00-03_branch\mp\install-files\sql\liquibase\build.xml:441: liquibase.exception.ChangeLogParseException: Mp_all_script.xml does not exist
at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:93)
at liquibase.Liquibase.generateDocumentation(Liquibase.java:656)
at liquibase.Liquibase.generateDocumentation(Liquibase.java:646)
at liquibase.integration.ant.DBDocTask.execute(DBDocTask.java:31)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) - Total time: 1 second
- My ANT tasks are defined like below… Note that my other Liquibase ANT tasks have no problem picking up the changeset files via the ANT classpath.
-
-
-
database.url not set
database.driver not set - daffy.database.username not set
daffy.database.password not set - audit1.database.username not set
audit1.database.password not set - <changeLogSync
changeLogFile=“Mp_all_script.xml”
driver="${database.driver}"
url="${database.url}"
username="${daffy.database.username}"
password="${daffy.database.password}"
classpathref=“classpath”
outputFile=“false”
/>
<changeLogSync
changeLogFile=“Mp_audit_all_script.xml”
driver="${database.driver}"
url="${database.url}"
username="${audit1.database.username}"
password="${audit1.database.password}"
classpathref=“classpath”
outputFile=“false”/> -
database.url not set
database.driver not set - daffy.database.username not set
daffy.database.password not set - audit1.database.username not set
audit1.database.password not set - <dbDoc
changeLogFile=“Mp_all_script.xml”
driver="${database.driver}"
url="${database.url}"
username="${daffy.database.username}"
password="${daffy.database.password}"
outputDirectory="."
classpathref=“classpath”
>
<dbDoc
changeLogFile=“Mp_audit_all_script.xml”
driver="${database.driver}"
url="${database.url}"
username="${audit1.database.username}"
password="${audit1.database.password}"
outputDirectory="."
classpathref=“classpath”
>
Is this a known bug??
- Thanks.