facebook

Ant input console ?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #273851 Reply

    JM.Gaston
    Member

    How do you setup an input console for Ant ?
    for ex:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="helloproject" default="hello">
        <target name="hello" >
            <echo message="Hello !" />
            <input addproperty="hello.name" 
                message="Enter your name: " defaultvalue="world" />
            <echo message="Hello ${hello.name}!" />
        </target>
    </project>
    

    When I check “Set an Input Handler” in the external tools Wizzard,
    I get a NullPointerException, and when I don’t, the console does
    not pause for input and I get a “Failed to read input from console”
    error.

    I am sorry to ask for something so basic, but I could not find info
    anywhere (other than a statement that “It works” in an unrelated
    Eclipse bug report: good to know)

    Regards,

    JG

    #273874 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    JG, I did run across this post:
    http://dev.eclipse.org/newslists/news.eclipse.technology/msg00887.html

    and it looks like if you set the Ant task to run inside the same JRE as Eclipse, you’ll get a provided inputhandler. Otherwise you need to use -inputhandler to specify your own. (Not done this myself, so not exactly sur eon details).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Ant input console ?

You must be logged in to post in the forum log in