diff --git a/src/main/org/apache/tools/ant/input/InputRequest.java b/src/main/org/apache/tools/ant/input/InputRequest.java index 03b15c226..251400af4 100644 --- a/src/main/org/apache/tools/ant/input/InputRequest.java +++ b/src/main/org/apache/tools/ant/input/InputRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2002,2004 The Apache Software Foundation + * Copyright 2002,2004-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,6 +28,7 @@ public class InputRequest { private String input; /** + * Construct an InputRequest. * @param prompt The prompt to show to the user. Must not be null. */ public InputRequest(String prompt) { @@ -40,6 +41,7 @@ public class InputRequest { /** * Retrieves the prompt text. + * @return the prompt. */ public String getPrompt() { return prompt; @@ -47,6 +49,7 @@ public class InputRequest { /** * Sets the user provided input. + * @param input the string to be used for input. */ public void setInput(String input) { this.input = input; @@ -54,6 +57,7 @@ public class InputRequest { /** * Is the user input valid? + * @return true if it is. */ public boolean isInputValid() { return true; @@ -61,6 +65,7 @@ public class InputRequest { /** * Retrieves the user input. + * @return the user input. */ public String getInput() { return input; diff --git a/src/main/org/apache/tools/ant/input/PropertyFileInputHandler.java b/src/main/org/apache/tools/ant/input/PropertyFileInputHandler.java index 81ffe7a2e..bb3e06b65 100644 --- a/src/main/org/apache/tools/ant/input/PropertyFileInputHandler.java +++ b/src/main/org/apache/tools/ant/input/PropertyFileInputHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002,2004 The Apache Software Foundation + * Copyright 2002,2004-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -46,6 +46,7 @@ public class PropertyFileInputHandler implements InputHandler { /** * Picks up the input from a property, using the prompt as the * name of the property. + * @param request an input request. * * @exception BuildException if no property of that name can be found. */