Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #123 from joewiz/develop

[feature] enable SSL support for xdb ant tasks

Excellent! Thanks Joe.
I am impressed to see your first Java contribution :-)
  • Loading branch information...
commit 8dc2e164dd70702e5d8d0f1fcd96f902b53e0119 2 parents 8d6581b + 619d6f8
@adamretter adamretter authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/org/exist/ant/AbstractXMLDBTask.java
View
13 src/org/exist/ant/AbstractXMLDBTask.java
@@ -53,6 +53,7 @@
protected String user = "guest";
protected String password = "guest";
protected String uri = null;
+ protected boolean ssl = false;
protected boolean createDatabase = false;
protected String configuration = null;
protected boolean failonerror = true;
@@ -107,6 +108,17 @@ public void setUri( String uri )
/**
* DOCUMENT ME!
*
+ * @param ssl
+ */
+ public void setSsl( boolean ssl )
+ {
+ this.ssl = ssl;
+ }
+
+
+ /**
+ * DOCUMENT ME!
+ *
* @param create
*/
public void setInitdb( boolean create )
@@ -149,6 +161,7 @@ protected void registerDatabase() throws BuildException
final Class<?> clazz = Class.forName( driver );
final Database database = (Database)clazz.newInstance();
database.setProperty( "create-database", createDatabase ? "true" : "false" );
+ database.setProperty( "ssl-enable", ssl ? "true" : "false" );
if( configuration != null ) {
database.setProperty( "configuration", configuration );
Please sign in to comment.
Something went wrong with that request. Please try again.