4950515253545556575859
.setEventListener(this); if (stepsPackage == null || stepsPackage.isEmpty()) { config.setStepsSourceForDirectory(stepsDir); } else { config.setStepsSource(new PackageResource(stepsPackage, getClassLoaderWithCompiledClasses())); } config.build().patch(); } catch (Exception e) {
58596061626364656667
private DbStepResource getResource() { if (migrationPackage != null && !migrationPackage.isEmpty()) { return new PackageResource(migrationPackage, getClassLoaderWithCompiledClasses()); } else { return new DirResource(migrationScripts); } }
114115116117118119120121
} public DbConfiguration setStepsSourceForPackage(String packageName) { this.stepsSource = new PackageResource(packageName, this.getClass().getClassLoader()); return this; }
121122123124125126127128
} public DbConfiguration setStepsSourceForPackage(Package pckg) { this.stepsSource = new PackageResource(pckg); return this; }
135136137138139140141
} public Db andDbScriptsInPackage(Package pckg) { return andDbScripts(new PackageResource(pckg)); }
141142143144145146147
} public Db andDbScriptsInPackage(String packageName) { return andDbScripts(new PackageResource(packageName)); }