Skip to content

Commit

Permalink
Merge pull request #123 from joewiz/develop
Browse files Browse the repository at this point in the history
[feature] enable SSL support for xdb ant tasks

Excellent! Thanks Joe.
I am impressed to see your first Java contribution :-)
  • Loading branch information
adamretter committed Jan 16, 2014
2 parents 8d6581b + 619d6f8 commit 8dc2e16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/org/exist/ant/AbstractXMLDBTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public abstract class AbstractXMLDBTask extends Task
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;
Expand Down Expand Up @@ -104,6 +105,17 @@ public void setUri( String uri )
}


/**
* DOCUMENT ME!
*
* @param ssl
*/
public void setSsl( boolean ssl )
{
this.ssl = ssl;
}


/**
* DOCUMENT ME!
*
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 8dc2e16

Please sign in to comment.