Skip to content

Commit 825b30e

Browse files
committed
Added new parameter include/excludeSchemaExpr and include/excludeObjectExpr
1 parent 1c6aa23 commit 825b30e

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

pom.xml

+2-15
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383

8484
<dependency>
8585
<groupId>org.utplsql</groupId>
86-
<artifactId>java-api</artifactId>
87-
<version>3.1.9</version>
86+
<artifactId>utplsql-java-api</artifactId>
87+
<version>3.1.15</version>
8888
</dependency>
8989

9090
<dependency>
@@ -320,17 +320,4 @@
320320
</build>
321321
</profile>
322322
</profiles>
323-
324-
<repositories>
325-
<repository>
326-
<id>utplsql-java-api</id>
327-
<url>https://packagecloud.io/utplsql/utplsql-java-api/maven2</url>
328-
<releases>
329-
<enabled>true</enabled>
330-
</releases>
331-
<snapshots>
332-
<enabled>true</enabled>
333-
</snapshots>
334-
</repository>
335-
</repositories>
336323
</project>

src/main/java/org/utplsql/maven/plugin/UtPlsqlMojo.java

+23
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ public class UtPlsqlMojo extends AbstractMojo {
6565
@Parameter
6666
String excludeObject;
6767

68+
@Parameter
69+
String includeSchemaExpr;
70+
@Parameter
71+
String excludeSchemaExpr;
72+
@Parameter
73+
String includeObjectExpr;
74+
@Parameter
75+
String excludeObjectExpr;
76+
6877
@Parameter(defaultValue = "false")
6978
boolean skipCompatibilityCheck;
7079

@@ -184,6 +193,20 @@ public void execute() throws MojoExecutionException {
184193
}
185194
}
186195

196+
if (isNotBlank(excludeSchemaExpr)) {
197+
runner.excludeSchemaExpr(excludeSchemaExpr);
198+
}
199+
if (isNotBlank(includeSchemaExpr)) {
200+
runner.includeSchemaExpr(includeSchemaExpr);
201+
}
202+
203+
if (isNotBlank(excludeObjectExpr)) {
204+
runner.excludeObjectExpr(excludeObjectExpr);
205+
}
206+
if (isNotBlank(includeObjectExpr)) {
207+
runner.includeObjectExpr(includeObjectExpr);
208+
}
209+
187210
runner.run(connection);
188211

189212
} catch (SomeTestsFailedException e) {

0 commit comments

Comments
 (0)