java - ant "<input addproperty=..." not working from bash in linux -


i have simple user input element in ant script (that's run maven antrun plugin):

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

and works on windows: process stops until y or n entered in command line. when run in linux prod box - after entering y/n happens nothing: script (ant process) hangs until ctrl+c

i've found mail issue concerning it , nothing else.

is ant bug far? can reproduce it? thanks!

works fine on linux desktop (rhel 5) following dummy snippet using maven-3.0.4 , java 1.6.0_32 run 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> 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -