DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41024>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41024

           Summary: Problem with Input task
           Product: Ant
           Version: 1.7.0RC1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


I am having a problem with the input task where it doesn't seem to validate the 
arguments being passed and just sits there awaiting input.
I have narrowed this down to a small test case that shows when a forked java 
process is called before the input task it does this...! Without the java task 
there or being forked it behaves fine.

The build.xml looks like:

<?xml version="1.0" encoding="UTF-8"?>
<project name="builds_scripts" default="compile">
  <target name="compile">
    <javac
      srcdir="C:/Temp"
      destdir="C:/Temp"
      includes="TestCase.java"
    />
    <java
      classname="TestCase"
      classpath="C:/Temp"
      fork="yes"
    >
    </java>
    <input
     message="Input?"
     validargs="y,n"
     addproperty="do.tag"
    />    
  </target>
</project>

The TestCase.java looks like:

public class TestCase{
  public static void main(final String[] arguments) {
    System.out.println("Testing");
  }
}

Cheers.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to