You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/12/29 16:06:41 UTC

DO NOT REPLY [Bug 50529] New: Runtime reading data in a Java class

https://issues.apache.org/bugzilla/show_bug.cgi?id=50529

           Summary: Runtime reading data in a Java class
           Product: Ant
           Version: 1.8.2
          Platform: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: scheiber@unitbv.ro


The <java> task does not allow to run a class with code like
=========================
import java.util.Scanner;
....
Scanner scanner=new Scanner(System.in);
long a=nextLong();
....
=========================
This was OK in ant 1.8.1.

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

DO NOT REPLY [Bug 50529] Runtime reading data in a Java class

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50529

--- Comment #3 from Jesse Glick <jg...@netbeans.org> 2012-01-19 14:47:22 UTC ---
Reproducible with that script on Linux; the test program does get the input,
but only after sending Ctrl-D.

Not sure what specifically changed in 1.8.2 but in general you should not use
<java> to run programs with nontrivial stdio, since Ant processes it to fit
into the logging system.

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

DO NOT REPLY [Bug 50529] Runtime reading data in a Java class

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50529

Jesse Glick <jg...@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #4 from Jesse Glick <jg...@netbeans.org> 2012-01-19 15:02:47 UTC ---


*** This bug has been marked as a duplicate of bug 50960 ***

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

DO NOT REPLY [Bug 50529] Runtime reading data in a Java class

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50529

Jesse Glick <jg...@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jglick@netbeans.org
         OS/Version|                            |All

--- Comment #1 from Jesse Glick <jg...@netbeans.org> 2011-01-07 18:30:16 EST ---
Seems to be working for me with 1.8.2 on Ubuntu with fork="true". What exact OS
are you running? Do you have a complete test case to reproduce?

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

DO NOT REPLY [Bug 50529] Runtime reading data in a Java class

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50529

--- Comment #2 from Scheiber Erno <sc...@unitbv.ro> 2011-01-11 01:00:33 EST ---
Created an attachment (id=26474)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26474)
A Java class with build.xml to underline the problem

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