-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP for resource loading in flyway extension
- Loading branch information
1 parent
adb810d
commit 35a5498
Showing
6 changed files
with
91 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 0 additions & 68 deletions
68
...flyway/runtime/src/main/java/io/quarkus/flyway/runtime/ClassPathScannerSubstitutions.java
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
...ns/flyway/runtime/src/main/java/io/quarkus/flyway/runtime/QuarkusPathLocationScanner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package io.quarkus.flyway.runtime; | ||
|
||
import java.util.Collection; | ||
import java.util.Collections; | ||
|
||
import org.flywaydb.core.api.Location; | ||
import org.flywaydb.core.api.logging.Log; | ||
import org.flywaydb.core.api.logging.LogFactory; | ||
import org.flywaydb.core.internal.resource.LoadableResource; | ||
import org.flywaydb.core.internal.scanner.classpath.ResourceAndClassScanner; | ||
|
||
public final class QuarkusPathLocationScanner implements ResourceAndClassScanner { | ||
private static final Log LOG = LogFactory.getLog( QuarkusPathLocationScanner.class ); | ||
private final Location location; | ||
|
||
public QuarkusPathLocationScanner(Location location) { | ||
this.location = location; | ||
LOG.warn( "LOCATION " + location ); | ||
} | ||
|
||
/** | ||
* Scans the classpath for resources under the configured location. | ||
* | ||
* @return The resources that were found. | ||
*/ | ||
@Override | ||
public Collection<LoadableResource> scanForResources() { | ||
// NEED TO DO SOMETHING TO RETURN THE RESOURCES ADDED TO SVM in FlywayBuildStep | ||
return Collections.emptyList(); | ||
} | ||
|
||
/** | ||
* Scans the classpath for concrete classes under the specified package implementing this interface. | ||
* Non-instantiable abstract classes are filtered out. | ||
* | ||
* @return The non-abstract classes that were found. | ||
*/ | ||
@Override | ||
public Collection<Class<?>> scanForClasses() { | ||
return Collections.emptyList(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters