Search in sources :

Example 6 with CompositeResourceAccessor

use of liquibase.resource.CompositeResourceAccessor in project liquibase by liquibase.

the class AbstractLiquibaseChangeLogMojo method getFileOpener.

@Override
protected ResourceAccessor getFileOpener(ClassLoader cl) {
    ResourceAccessor mFO = new MavenResourceAccessor(cl);
    ResourceAccessor fsFO = new FileSystemResourceAccessor(project.getBasedir().getAbsolutePath());
    return new CompositeResourceAccessor(mFO, fsFO);
}
Also used : CompositeResourceAccessor(liquibase.resource.CompositeResourceAccessor) ResourceAccessor(liquibase.resource.ResourceAccessor) CompositeResourceAccessor(liquibase.resource.CompositeResourceAccessor) FileSystemResourceAccessor(liquibase.resource.FileSystemResourceAccessor) FileSystemResourceAccessor(liquibase.resource.FileSystemResourceAccessor)

Example 7 with CompositeResourceAccessor

use of liquibase.resource.CompositeResourceAccessor in project liquibase by liquibase.

the class AbstractLiquibaseMojo method getFileOpener.

protected ResourceAccessor getFileOpener(ClassLoader cl) {
    ResourceAccessor mFO = new MavenResourceAccessor(cl);
    ResourceAccessor fsFO = new FileSystemResourceAccessor(project.getBasedir().getAbsolutePath());
    return new CompositeResourceAccessor(mFO, fsFO);
}
Also used : CompositeResourceAccessor(liquibase.resource.CompositeResourceAccessor) CompositeResourceAccessor(liquibase.resource.CompositeResourceAccessor) FileSystemResourceAccessor(liquibase.resource.FileSystemResourceAccessor) ResourceAccessor(liquibase.resource.ResourceAccessor) FileSystemResourceAccessor(liquibase.resource.FileSystemResourceAccessor)

Aggregations

CompositeResourceAccessor (liquibase.resource.CompositeResourceAccessor)7 FileSystemResourceAccessor (liquibase.resource.FileSystemResourceAccessor)6 ClassLoaderResourceAccessor (liquibase.resource.ClassLoaderResourceAccessor)4 ResourceAccessor (liquibase.resource.ResourceAccessor)4 Contexts (liquibase.Contexts)2 LabelExpression (liquibase.LabelExpression)2 Liquibase (liquibase.Liquibase)2 Database (liquibase.database.Database)2 File (java.io.File)1 FileOutputStream (java.io.FileOutputStream)1 Connection (java.sql.Connection)1 ParseException (java.text.ParseException)1 ArrayList (java.util.ArrayList)1 JarFile (java.util.jar.JarFile)1 DataSource (javax.sql.DataSource)1 CatalogAndSchema (liquibase.CatalogAndSchema)1 CheckSum (liquibase.change.CheckSum)1 ChangeLogParameters (liquibase.changelog.ChangeLogParameters)1 DatabaseChangeLog (liquibase.changelog.DatabaseChangeLog)1 ChangeExecListener (liquibase.changelog.visitor.ChangeExecListener)1