Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 73173 - cannot add console input from ant build script
Summary: cannot add console input from ant build script
Status: RESOLVED DUPLICATE of bug 45484
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 14:38 EDT by keith doyle CLA
Modified: 2004-09-03 07:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description keith doyle CLA 2004-09-02 14:38:03 EDT
<?xml version="1.0" ?>
<project name="CVSforANT" default="cvsLogin" basedir=".">

    <!-- cvsLogin target -->
    <target name="cvsLogin">
        <input message="Please enter CVS password:"
               addproperty="cvsPassword" />
   
        <condition property="noCVSPassword">
            <equals arg1="" arg2="${cvsPassword}" />
        </condition>
   
        <fail if="noCVSPassword">You did not enter your CVS password.</fail>
   
        <cvspass cvsroot=":localhost:/opt/cvs"
                 password="${cvsPassword}" />
    </target>

</project>

BUILD FAILED: C:\eclipse3\workspace\CVSforANT\build\build.xml:8: Failed to 
read input from Console.
Comment 1 Darin Swanson CLA 2004-09-02 16:31:52 EDT
As detailed in the Eclipse readme, the input task works the same as Eclipse 
2.1 if you run the Ant build in the same JRE as Eclipse (which was the only 
option in Eclipse 2.1).

For the input task to work by default run your build in the same JRE as 
Eclipse. See the the JRE tab of your Ant launch configuration.
To use the input task in a separate JRE you will need to provide an input 
handler.


*** This bug has been marked as a duplicate of 45484 ***
Comment 2 keith doyle CLA 2004-09-03 07:02:46 EDT
Thanks Darin,
For those not in the know you can set the jre ant uses from the ">run>external 
tools" menu option.