Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:38:44+00:00 2026-06-05T04:38:44+00:00

I have simple user input element in ant script (that’s run from maven antrun

  • 0

I have simple user input element in ant script (that’s run from maven antrun plugin):

<input addproperty="myprop" validargs="y,n" defaultvalue="y">

and this works well on windows: the process stops until y or n entered in the command line.
But when this is run in linux prod box – after entering y/n happens nothing: the script (ant process) hangs until ctrl+C

I’ve found some mail issue about concerning it and nothing else.

Is it an ant bug so far? does anybody can reproduce it? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:38:46+00:00Added an answer on June 5, 2026 at 4:38 am

    Works fine on my linux desktop (RHEL 5) for the following dummy snippet using maven-3.0.4 and java 1.6.0_32 run from bash shell.

    <project xmlns="http://maven.apache.org/POM/4.0.0" 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
                                 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    
        <modelVersion>4.0.0</modelVersion>
        <artifactId>dummy</artifactId>
        <groupId>com.dummy</groupId>
        <version>1.0-SNAPSHOT</version>
    
        <name>Dummy</name>
        <url>http://www.dummy.com</url>
    
        <build>
            <plugins>
                <plugin>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.7</version>
                    <executions>
                      <execution>
                        <phase>generate-sources</phase>
                        <configuration>
                          <target>
                              <input addproperty="myprop" validargs="y,n" defaultvalue="y"/>
                              <echo message="${myprop}"/>
                          </target>
                        </configuration>
                        <goals>
                          <goal>run</goal>
                        </goals>
                      </execution>
                    </executions>
              </plugin>
            </plugins>
        </build>
    </project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one simple app that suppose to get information from user and send
We have a script that parses XML feeds from user generated sources which from
I have simple question. User supplies URL to my PHP script where I fetch
I have a simple app that will allow a user to tag a location.
I have a simple Desktop Facebook application that allows the user to retrieve some
I'd like to have an <input type=file> form element that fires the upload process
I'm building a simple script that allows a user to add telephone numbers dynamically.
I have a simple user production report where daily quotas are tracked. The sql
This is driving me crazy. I have a very simple user control: public int?
I have a simple form where a user can add, edit, and delete people

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.