File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
utplsql-maven-plugin/src/main/java/org/utplsql/maven/plugin Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public class UtPLSQLMojo extends AbstractMojo
126126 public void execute () throws MojoExecutionException
127127 {
128128 getLog ().debug ("Java Api Version = " +JavaApiVersionInfo .getVersion ());
129- loadDefaultCredentials ();
129+ loadConfFromEnvironment ();
130130
131131 Connection connection = null ;
132132 try
@@ -190,11 +190,16 @@ public void execute() throws MojoExecutionException
190190 }
191191
192192 /**
193- * Load
193+ * Load some configuration from env variables.
194194 *
195195 */
196- private void loadDefaultCredentials ()
196+ private void loadConfFromEnvironment ()
197197 {
198+ if (StringUtils .isEmpty (url ))
199+ {
200+ url = System .getProperty ("dbUrl" );
201+ }
202+
198203 if (StringUtils .isEmpty (user ))
199204 {
200205 user = System .getProperty ("dbUser" );
You can’t perform that action at this time.
0 commit comments