Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Jan 16, 2014
Joe Wicentowski joewiz [feature] enable SSL support for xdb ant tasks 619d6f8
Adam Retter adamretter 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 :-)
8dc2e16
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/org/exist/ant/AbstractXMLDBTask.java
13 src/org/exist/ant/AbstractXMLDBTask.java
View
@@ -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 );

No commit comments for this range

Something went wrong with that request. Please try again.