[
https://jira.codehaus.org/browse/MANTRUN-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282359#comment-282359
]
Benson Margulies commented on MANTRUN-162:
------------------------------------------
the ant 1.8.2 release notes state:
* Removed ant-nodeps.jar; it is now merged into ant.jar.
So I'm updating to just use plain 'ant'.
> Update Ant 1.8.2, avoid insufficient system resources error
> -----------------------------------------------------------
>
> Key: MANTRUN-162
> URL: https://jira.codehaus.org/browse/MANTRUN-162
> Project: Maven 2.x Antrun Plugin
> Issue Type: Improvement
> Affects Versions: 1.6
> Environment: winxp, maven 3.0.3
> Reporter: Bruno Marti
>
> There is a bug in ant 1.8.1 on copy files bigger than 64mb.
> Something like :
> {code}
> <target name="test" description="publish file">
> <property name="myhost" value="\\myhost"/>
> <property name="mydir" value="mydir"/>
> <property name="todirectory" value="${myhost}\${mydir}"/>
> <echo message="copying to ${todirectory}"/>
> <mkdir dir="${todirectory}"/>
> <copy file="my.zip" todir="${todirectory}"/>
> </target>
> {code}
> wont work in antrun-plugin 1.6 if the file is bigger than 64mb.
> {color:red}
> Error:
> {color}
> {code}
> An Ant BuildException has occured: Failed to copy \\...my.zip to \\.... due
> to Insufficient system resources exist to complete the requested service ->
> [Help 1]
> Caused by: java.io.IOException: Insufficient system resources exist to
> complete the requested servic
> at sun.nio.ch.FileDispatcher.write0(Native Method)
> {code}
> see also: [Ant Bug|https://issues.apache.org/bugzilla/show_bug.cgi?id=49341]
> Update dependency Ant to 1.8.2 or use this workaround for antrun 1.6:
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>org.apache.ant</groupId>
> <artifactId>ant</artifactId>
> <version>1.8.2</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira