From c7093f5cbe92fbce7242f0be05aa942d9e15be9d Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 16 Dec 2017 23:53:05 +0100 Subject: [PATCH] Fix javadoc in org.eclipse.jgit.ant Change-Id: I97231080ebe040ad44f7189de6109b9626424d2f Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/ant/tasks/GitAddTask.java | 3 +++ .../src/org/eclipse/jgit/ant/tasks/GitCheckoutTask.java | 9 +++++++++ .../src/org/eclipse/jgit/ant/tasks/GitCloneTask.java | 8 +++++++- .../src/org/eclipse/jgit/ant/tasks/GitInitTask.java | 3 +++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitAddTask.java b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitAddTask.java index db6f008a1..479dd869d 100644 --- a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitAddTask.java +++ b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitAddTask.java @@ -71,6 +71,8 @@ public class GitAddTask extends Task { private Union path; /** + *

Set the field src.

+ * * @param src * the src to set */ @@ -106,6 +108,7 @@ private synchronized Union getPath() { return path; } + /** {@inheritDoc} */ @Override public void execute() throws BuildException { if (src == null) { diff --git a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCheckoutTask.java b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCheckoutTask.java index 9962472c9..0b27cc264 100644 --- a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCheckoutTask.java +++ b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCheckoutTask.java @@ -67,6 +67,8 @@ public class GitCheckoutTask extends Task { private boolean force; /** + * Set the src + * * @param src * the src to set */ @@ -75,6 +77,8 @@ public void setSrc(File src) { } /** + * Set branch + * * @param branch * the initial branch to check out */ @@ -83,6 +87,8 @@ public void setBranch(String branch) { } /** + * Set if branch should be created if not yet existing + * * @param createBranch * whether the branch should be created if it does not already * exist @@ -92,6 +98,8 @@ public void setCreateBranch(boolean createBranch) { } /** + * Set force + * * @param force * if true and the branch with the given name * already exists, the start-point of an existing branch will be @@ -102,6 +110,7 @@ public void setForce(boolean force) { this.force = force; } + /** {@inheritDoc} */ @Override public void execute() throws BuildException { CheckoutCommand checkout; diff --git a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCloneTask.java b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCloneTask.java index b2cb35cbe..18a6db89f 100644 --- a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCloneTask.java +++ b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitCloneTask.java @@ -68,6 +68,8 @@ public class GitCloneTask extends Task { private String branch = Constants.HEAD; /** + * Set the uri. + * * @param uri * the uri to clone from */ @@ -80,7 +82,6 @@ public void setUri(String uri) { * directory isn't set, a name associated with the source uri will be used. * * @see URIish#getHumanishName() - * * @param destination * the directory to clone to */ @@ -89,6 +90,8 @@ public void setDest(File destination) { } /** + * Set bare + * * @param bare * whether the cloned repository is bare or not */ @@ -97,6 +100,8 @@ public void setBare(boolean bare) { } /** + * Set the branch + * * @param branch * the initial branch to check out when cloning the repository */ @@ -104,6 +109,7 @@ public void setBranch(String branch) { this.branch = branch; } + /** {@inheritDoc} */ @Override public void execute() throws BuildException { log("Cloning repository " + uri); diff --git a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitInitTask.java b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitInitTask.java index 91e57c0d6..70fd80eac 100644 --- a/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitInitTask.java +++ b/org.eclipse.jgit.ant/src/org/eclipse/jgit/ant/tasks/GitInitTask.java @@ -71,6 +71,8 @@ public void setDest(File dest) { } /** + * Configure if the repository should be bare + * * @param bare * whether the repository should be initialized to a bare * repository or not. @@ -79,6 +81,7 @@ public void setBare(boolean bare) { this.bare = bare; } + /** {@inheritDoc} */ @Override public void execute() throws BuildException { if (bare) {