ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50368] New: Copy task fails with: Invalid argument message
Date Mon, 29 Nov 2010 16:32:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50368

           Summary: Copy task fails with: Invalid argument message
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jantekb@ratesoft.hu


A simple ant script, that works perfectly on Windows fails on my Debian
machine. I have checked that the file to be copied exists and is allowed to be
read.


This is the target snippet causing the problem:

<copy includeemptydirs='false'

todir='/home/builder/workspace-maker/workspaces/something/Ring/WebRoot/WEB-INF/classes'>

 <fileset dir='/home/builder/workspace-maker/workspaces/something/Ring/src'>
  <exclude name='**/*.launch' />
  <exclude name='**/*.java' />
 </fileset>
</copy>



This is the error message:

BUILD FAILED
/home/builder/workspace-maker/workspaces/something/RingAppl/build.xml:15: The
following error occurred while executing this line:
/home/builder/workspace-maker/workspaces/something/Ring/build.xml:1413: Failed
to copy
/home/builder/workspace-maker/workspaces/something/Ring/src/hu/rate/javascript/ring/Ring.Test.js
to
/home/builder/workspace-maker/workspaces/something/Ring/WebRoot/WEB-INF/classes/hu/rate/javascript/ring/Ring.Test.js
due to Invalid argument
        at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:853)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:523)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
        at org.apache.tools.ant.Main.runBuild(Main.java:801)
        at org.apache.tools.ant.Main.startAnt(Main.java:218)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: Invalid argument
        at sun.nio.ch.FileChannelImpl.transferTo0(Native Method)
        at
sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:392)
        at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487)
        at
org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:475)
        at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519)
        at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:481)
        at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:310)
        at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:841)
        ... 30 more

Total time: 16 seconds

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message