Summary: | Stream Closed error in DefaultInputHandler with embedded ant <input> task | ||
---|---|---|---|
Product: | Ant | Reporter: | Kelly Davis <kldavis4> |
Component: | Core | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nicolas.lalevee |
Priority: | P2 | ||
Version: | 1.8.1 | ||
Target Milestone: | 1.8.3 | ||
Hardware: | Macintosh | ||
OS: | All |
Description
Kelly Davis
2011-05-06 18:50:47 UTC
I am not that used to write pom.xml file. Could you provide a piece of pom.xml which reproduce the bug please ? The following pom will generate the error: <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> <groupId>org.help</groupId> <artifactId>Test</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>Test</name> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>configure-resources</id> <phase>generate-resources</phase> <configuration> <target> <input message="Enter Foo Property" addproperty="foo.property" defaultvalue="FOO"/> <input message="Enter Bar Property" addproperty="bar.property" defaultvalue="BAR"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> execute 'mvn generate-sources' Sorry for the late follow up, but I cannot reproduce the error. I tried with both maven 2 and maven 3. Here is what I got: hibou@hibpro ~/dev/ant/svn/core/trunk/tmp $ mvn generate-sources [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Test 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.135s [INFO] Finished at: Sun Jul 24 13:52:29 CEST 2011 [INFO] Final Memory: 2M/81M [INFO] ------------------------------------------------------------------------ hibou@hibpro ~/dev/ant/svn/core/trunk/tmp $ mvn2 generate-sources [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Test [INFO] task-segment: [generate-sources] [INFO] ------------------------------------------------------------------------ [INFO] No goals needed for project - skipping [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Sun Jul 24 13:52:36 CEST 2011 [INFO] Final Memory: 2M/81M [INFO] ------------------------------------------------------------------------ Ok, sorry about that. If you run 'mvn generate-sources' it doesn't run the ant plugin. Please run it with 'mvn compile'. That should trigger the problem. reproduced and fixed. Thanks for your report. |