Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277459 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
9dd3be5162
2 changed files with 8 additions and 2 deletions
  1. +6
    -1
      src/main/org/apache/tools/ant/input/InputRequest.java
  2. +2
    -1
      src/main/org/apache/tools/ant/input/PropertyFileInputHandler.java

+ 6
- 1
src/main/org/apache/tools/ant/input/InputRequest.java View File

@@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@ public class InputRequest {
private String input; private String input;


/** /**
* Construct an InputRequest.
* @param prompt The prompt to show to the user. Must not be null. * @param prompt The prompt to show to the user. Must not be null.
*/ */
public InputRequest(String prompt) { public InputRequest(String prompt) {
@@ -40,6 +41,7 @@ public class InputRequest {


/** /**
* Retrieves the prompt text. * Retrieves the prompt text.
* @return the prompt.
*/ */
public String getPrompt() { public String getPrompt() {
return prompt; return prompt;
@@ -47,6 +49,7 @@ public class InputRequest {


/** /**
* Sets the user provided input. * Sets the user provided input.
* @param input the string to be used for input.
*/ */
public void setInput(String input) { public void setInput(String input) {
this.input = input; this.input = input;
@@ -54,6 +57,7 @@ public class InputRequest {


/** /**
* Is the user input valid? * Is the user input valid?
* @return true if it is.
*/ */
public boolean isInputValid() { public boolean isInputValid() {
return true; return true;
@@ -61,6 +65,7 @@ public class InputRequest {


/** /**
* Retrieves the user input. * Retrieves the user input.
* @return the user input.
*/ */
public String getInput() { public String getInput() {
return input; return input;


+ 2
- 1
src/main/org/apache/tools/ant/input/PropertyFileInputHandler.java View File

@@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with 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 * Picks up the input from a property, using the prompt as the
* name of the property. * name of the property.
* @param request an input request.
* *
* @exception BuildException if no property of that name can be found. * @exception BuildException if no property of that name can be found.
*/ */


Loading…
Cancel
Save