2424import org .utplsql .api .reporter .Reporter ;
2525import org .utplsql .api .reporter .ReporterFactory ;
2626import org .utplsql .maven .plugin .helper .PluginDefault ;
27- import org .utplsql .maven .plugin .helper .SQLScannerHelper ;
27+ import org .utplsql .maven .plugin .helper .SqlScannerHelper ;
2828import org .utplsql .maven .plugin .model .ReporterParameter ;
2929import org .utplsql .maven .plugin .reporter .ReporterWriter ;
3030
@@ -72,7 +72,10 @@ public class UtPLSQLMojo extends AbstractMojo {
7272 @ Parameter
7373 protected final List <String > paths = new ArrayList <>();
7474
75- // Sources Configuration
75+ /**
76+ * Sources Configuration
77+ */
78+
7679 @ Parameter
7780 protected final List <Resource > sources = new ArrayList <>();
7881
@@ -94,7 +97,9 @@ public class UtPLSQLMojo extends AbstractMojo {
9497 @ Parameter
9598 private List <CustomTypeMapping > sourcesCustomTypeMapping ;
9699
97- // Tests Configuration
100+ /**
101+ * Tests Configuration
102+ */
98103 @ Parameter
99104 protected final List <Resource > tests = new ArrayList <>();
100105
@@ -137,7 +142,9 @@ public class UtPLSQLMojo extends AbstractMojo {
137142 @ Parameter
138143 protected boolean dbmsOutput ;
139144
140- // Color in the console, bases on Maven logging configuration.
145+ /**
146+ * Color in the console, bases on Maven logging configuration.
147+ */
141148 private final boolean colorConsole = MessageUtils .isColorEnabled ();
142149
143150 private ReporterWriter reporterWriter ;
@@ -242,9 +249,10 @@ private FileMapperOptions buildSourcesOptions() throws MojoExecutionException {
242249 }
243250 }
244251
245- List <String > scripts = SQLScannerHelper . findSQLs (project .getBasedir (), sources ,
252+ List <String > scripts = SqlScannerHelper . findSqlScripts (project .getBasedir (), sources ,
246253 PluginDefault .SOURCE_DIRECTORY , PluginDefault .SOURCE_FILE_PATTERN );
247- return createFileMapperOptions (scripts , sourcesOwner , sourcesRegexExpression , sourcesOwnerSubexpression , sourcesNameSubexpression , sourcesTypeSubexpression , sourcesCustomTypeMapping );
254+ return createFileMapperOptions (scripts , sourcesOwner , sourcesRegexExpression , sourcesOwnerSubexpression ,
255+ sourcesNameSubexpression , sourcesTypeSubexpression , sourcesCustomTypeMapping );
248256
249257 } catch (Exception e ) {
250258 throw new MojoExecutionException ("Invalid <SOURCES> in your pom.xml" , e );
@@ -263,7 +271,7 @@ private FileMapperOptions buildTestsOptions() throws MojoExecutionException {
263271 }
264272 }
265273
266- List <String > scripts = SQLScannerHelper . findSQLs (project .getBasedir (), tests , PluginDefault .TEST_DIRECTORY ,
274+ List <String > scripts = SqlScannerHelper . findSqlScripts (project .getBasedir (), tests , PluginDefault .TEST_DIRECTORY ,
267275 PluginDefault .TEST_FILE_PATTERN );
268276 return createFileMapperOptions (scripts , testsOwner , testsRegexExpression , testsOwnerSubexpression ,
269277 testsNameSubexpression , testsTypeSubexpression , testsCustomTypeMapping );
@@ -342,8 +350,7 @@ private List<Reporter> initReporters(Connection connection, Version utlVersion,
342350 return reporterList ;
343351 }
344352
345- private void logParameters (FileMapperOptions sourceMappingOptions , FileMapperOptions testMappingOptions ,
346- List <Reporter > reporterList ) {
353+ private void logParameters (FileMapperOptions sourceMappingOptions , FileMapperOptions testMappingOptions , List <Reporter > reporterList ) {
347354 Log log = getLog ();
348355 log .info ("Invoking TestRunner with: " + targetDir );
349356
0 commit comments