On Jun 17, 2009, at 12:22 PM, Chuck Hill wrote:
On Jun 17, 2009, at 8:52 AM, David Avendasora wrote:
Hmm.
I'm hoping for a way to use them that will work within the normal woproject Ant build process.
I'm running into a problem with path lengths with the folder-based frameworks when trying to build my fully-embedded applications with Hudson on Windows 2k. Who ever thougth 256 characters was a reasonable limit for a path length?!
Isn't it 1024? There are two shells cmd and command. One of those has a 1024 limit, IIRC. Still too short.
If I try to do the same copy manually (by dragging and dropping, or copying in cmd.exe (same as what Hudson is using) to complains about the file name is too long. I can't even create the last directory (assistant) in the path that it's complaining about - that also errors saying the path is too long.
So I think what is really happening is that the creation of the directory is actually what fails first but it doesn't stop the process. When Ant tries to copy a file into that missing directory it then fails with "The system cannot find the path specified". That's my theory.
Windows sucks. That's a fact.
Dave
BUILD FAILED
D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\build.xml:143: Failed to copy D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\dist\BakeryManagementWebClient.woa\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A\WebServerResources\Java\com\webobjects\eogeneration\assistant\EOXMLEditor$_DisplayObject.class to D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\dist\BakeryManagementWebClient\WEB-INF\BakeryManagementWebClient.woa\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A\WebServerResources\Java\com\webobjects\eogeneration\assistant\EOXMLEditor$_DisplayObject.class due to java.io.FileNotFoundException D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\dist\BakeryManagementWebClient\WEB-INF\BakeryManagementWebClient.woa\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A\WebServerResources\Java\com\webobjects\eogeneration\assistant\EOXMLEditor$_DisplayObject.class (The system cannot find the path specified)
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:817)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:496)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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:585)
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:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.io.FileNotFoundException: D:\Hudson\Home\jobs\BakeryManagementWebClient\workspace\Trunk\dist\BakeryManagementWebClient\WEB-INF\BakeryManagementWebClient.woa\Contents\Frameworks\JavaEORuleSystem.framework\Versions\A\WebServerResources\Java\com\webobjects\eogeneration\assistant\EOXMLEditor$_DisplayObject.class (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.tools.ant.types.resources.FileResource.getOutputStream(FileResource.java:213)
at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:373)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:475)
at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:304)
at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:805)
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden