use of org.dbflute.properties.assistant.classification.DfClassificationResourceAnalyzer in project dbflute-core by dbflute.
the class DfClassificationProperties method extractClassificationResource.
protected List<DfClassificationTop> extractClassificationResource() {
final DfClassificationResourceAnalyzer analyzer = new DfClassificationResourceAnalyzer();
final String dirBaseName = "./dfprop";
final String resource = NAME_CLASSIFICATION_RESOURCE;
final String extension = "dfprop";
if (isSpecifiedEnvironmentType()) {
final String dirEnvName = dirBaseName + "/" + getEnvironmentType();
final List<DfClassificationTop> ls = analyzer.analyze(dirEnvName, resource, extension);
if (!ls.isEmpty()) {
return ls;
}
return analyzer.analyze(dirBaseName, resource, extension);
} else {
return analyzer.analyze(dirBaseName, resource, extension);
}
}
Aggregations