|
|
@ -68,6 +68,8 @@ public class GitCloneTask extends Task { |
|
|
|
private String branch = Constants.HEAD; |
|
|
|
private String branch = Constants.HEAD; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* Set the <code>uri</code>. |
|
|
|
|
|
|
|
* |
|
|
|
* @param uri |
|
|
|
* @param uri |
|
|
|
* the uri to clone from |
|
|
|
* the uri to clone from |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -80,7 +82,6 @@ public class GitCloneTask extends Task { |
|
|
|
* directory isn't set, a name associated with the source uri will be used. |
|
|
|
* directory isn't set, a name associated with the source uri will be used. |
|
|
|
* |
|
|
|
* |
|
|
|
* @see URIish#getHumanishName() |
|
|
|
* @see URIish#getHumanishName() |
|
|
|
* |
|
|
|
|
|
|
|
* @param destination |
|
|
|
* @param destination |
|
|
|
* the directory to clone to |
|
|
|
* the directory to clone to |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -89,6 +90,8 @@ public class GitCloneTask extends Task { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* Set <code>bare</code> |
|
|
|
|
|
|
|
* |
|
|
|
* @param bare |
|
|
|
* @param bare |
|
|
|
* whether the cloned repository is bare or not |
|
|
|
* whether the cloned repository is bare or not |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -97,6 +100,8 @@ public class GitCloneTask extends Task { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* Set the <code>branch</code> |
|
|
|
|
|
|
|
* |
|
|
|
* @param branch |
|
|
|
* @param branch |
|
|
|
* the initial branch to check out when cloning the repository |
|
|
|
* the initial branch to check out when cloning the repository |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -104,6 +109,7 @@ public class GitCloneTask extends Task { |
|
|
|
this.branch = branch; |
|
|
|
this.branch = branch; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void execute() throws BuildException { |
|
|
|
public void execute() throws BuildException { |
|
|
|
log("Cloning repository " + uri); |
|
|
|
log("Cloning repository " + uri); |
|
|
|