ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41024] New: - Problem with Input task
Date Thu, 23 Nov 2006 12:34:04 GMT
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: rmulvaney@curamsoftware.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message