You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Jim Cummings (JIRA)" <be...@incubator.apache.org> on 2005/03/04 00:19:51 UTC
[jira] Created: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
ant build.dist.archives does not work from DOS window
-----------------------------------------------------
Key: BEEHIVE-403
URL: http://issues.apache.org/jira/browse/BEEHIVE-403
Project: Beehive
Type: Bug
Components: Build
Versions: V1, V1Beta
Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
Reporter: Jim Cummings
Priority: Minor
This is really 2 related problems:
1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
[exec] D: Unknown Host
[exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
[exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
[exec] tar (child): Error is not recoverable: exiting now
Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
<arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Assigned: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=all ]
Julie Zhuo reassigned BEEHIVE-403:
----------------------------------
Assign To: Julie Zhuo
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1Beta, V1
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Assignee: Julie Zhuo
> Priority: Minor
> Fix For: V1
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=comments#action_61419 ]
Kenneth Tam commented on BEEHIVE-403:
-------------------------------------
Thanks for drilling into this Jim -- agree that asking Windows users who care about using the tar archives to switch to GNU tar is reasonable, and the uniformity to be gained by by sticking to the <tar> task for building archives is a Good Thing.
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1Beta, V1
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Assignee: Kenneth Tam
> Priority: Minor
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Jim Cummings (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=comments#action_60224 ]
Jim Cummings commented on BEEHIVE-403:
--------------------------------------
Sent this around by email last night when JIRA was down - just adding this in for historical purposes....
Digging around the ant docs at http://ant.apache.org/manual/CoreTasks/tar.html, it sounds like different tar apps support file paths >100 characters in incompatible ways. Ant defaults to generating long file paths the GNU way, which apparently does not work with MKS tar.
Unfortunately we have lots of files in our distribution with paths >100 chars.
I don't know if GNU tar can untar MKS tar files with long file paths, but that would require MKS tar for dist builds. I did try using WinZip on the .tar.gz archive we have on the website and even WinZip seems to have troubles with the long file paths.
My gut is that the norm is to do GNU formatted tars since Linux users will be using the GNU tar, and I would assume most Windows users would just use the .ZIP versions.
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1, V1Beta
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Priority: Minor
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Resolved: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=all ]
Kenneth Tam resolved BEEHIVE-403:
---------------------------------
Assign To: (was: Kenneth Tam)
Resolution: Fixed
.tar.gz files are being built with the <tar> task now, so they're gnu tar compatible under Windows and should be built the same independent of OS.
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1, V1Beta
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Priority: Minor
> Fix For: V1
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Steve Tocco (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=history ]
Steve Tocco updated BEEHIVE-403:
--------------------------------
Fix Version: V1
moving to v1 (if not needed for ship, please move to Fix For = TBD)
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1Beta, V1
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Assignee: Kenneth Tam
> Priority: Minor
> Fix For: V1
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Heather Stephens (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=comments#action_60196 ]
Heather Stephens commented on BEEHIVE-403:
------------------------------------------
Not sure how many different combos there are out there in the world *grin*, but here's some info from my experience...
In Windows OS I tried gnu tar in the mks, cygwin and the DOS shells and had various issues with all of them. I also tried mks tar ... this generated the files and I could unzip them in mks tar on Windows but linux users reported the archives were corrupt.
The only combination of tar and shell on Windows I found that completed successfully and generated a tar.gz file that could be uncompressed "universally" (any OS, any shell, any tar version that users have tried so far) was the version of tar that comes with Windows executed from a DOS shell. This is why Ken's use of "exec" to work around the ANT bug works (obviously as long as gnu tar doesn't supercede Windows DOS tar). That said, I'm sure I didn't try all possible combinations. It was hard to test as I don't have a linux box.
Another note: some people who may end up using this target to generate Beehive archives for shipping may only have a windows operating system. Somehow we have to be able to successfully generate archives from a Windows box that all users can unarchive.
Hope this helps...
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1, V1Beta
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Priority: Minor
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Jim Cummings (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=comments#action_61150 ]
Jim Cummings commented on BEEHIVE-403:
--------------------------------------
It looks like the norm is for distributions to be built GNU-compatible, but not necessarily MKS compatible (see the below snippets from other projects).
Currently if building a dist from windows, we exec to whatever tar you have in your env, and it looks like if your are using MKS tar, then it generates archives that are not GNU-compatible. I propose we go back to using the Ant tar task allowing long filenames which is GNU-compatible, and update the READMEs to say something like one of the below projects requiring GNU-tar. *** However, this would require whoever builds a dist on Windows to use GNU tar, not MKS tar.
Any objections to that?
>From the Tomcat download readme page:
"NOTE: The tar files in this distribution use GNU tar extensions, and must be untarred with a GNU compatible version of tar. The version of tar on Solaris and Mac OS X will not work with these files."
>From the Ant download page:
"Please note that the tar.* archives contain file names longer than 100 characters and have been created using GNU tar extensions. Thus they must be untarred with a GNU compatible version of tar."
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1Beta, V1
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Priority: Minor
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Closed: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=all ]
Julie Zhuo closed BEEHIVE-403:
------------------------------
Verified fixed with both the m1 branch and trunk. The build.dist.archives run under DOS shell now. the build file is now using the ant <tar> task.
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1Beta, V1
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Assignee: Julie Zhuo
> Priority: Minor
> Fix For: V1
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=history ]
Kenneth Tam reassigned BEEHIVE-403:
-----------------------------------
Assign To: Kenneth Tam
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1Beta, V1
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Assignee: Kenneth Tam
> Priority: Minor
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Kenneth Tam (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=comments#action_60175 ]
Kenneth Tam commented on BEEHIVE-403:
-------------------------------------
I'm using mks tar, which apparently doesn't suffer from this problem. tar behaviour under Windows appears to be highly variable. Thoughts on how to proceed here? Maybe we need to better understand how the ant tar task fails under Windows.. for example, I know for certain that the archives it creates can't be unarchived by mks tar :(.
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1, V1Beta
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Priority: Minor
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Updated: (BEEHIVE-403) ant build.dist.archives does not work from DOS window
Posted by "Heather Stephens (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-403?page=history ]
Heather Stephens updated BEEHIVE-403:
-------------------------------------
Attachment: installed.db
Oops. I needed my coffee this morning. :) I was using the MKS Korn shell.
Versions on my machine are as follows:
Windows 2000 5.01.2600 (SP1)
MKS Toolkit 7.5 / MKS Platform Components 4.3
Cygwin install info attached for all cygwin components.
> ant build.dist.archives does not work from DOS window
> -----------------------------------------------------
>
> Key: BEEHIVE-403
> URL: http://issues.apache.org/jira/browse/BEEHIVE-403
> Project: Beehive
> Type: Bug
> Components: Build
> Versions: V1, V1Beta
> Environment: Windows, DOS Shell, cygwin at end of my PATH and a drive letter in my paths
> Reporter: Jim Cummings
> Priority: Minor
> Attachments: installed.db
>
> This is really 2 related problems:
> 1) When I run ant build.dist.archives from my DOS prompt, the .gz files do not generated. There are errors that go by, but the build still thinks it is successful. In distribution.xml, if you add a failonerror="true" attribute to the exec elements this lets it fail the build if tar failed. Might want to do this for the 'svn' execs as well.
> 2) The other problem is why the .gz files are not getting generated. My path is finding my cygwin GNU tar (version 1.13.25). The cause is that tar is failing with this error:
> [exec] D: Unknown Host
> [exec] apache-beehive-incubating-svn-snapshot/docs/apidocs/classref_controls/org/apache/beehive/controls/api/bean/ControlInterface.html
> [exec] tar (child): D\:\\beehive_trunk\\trunk\\build\\dist\\archives/apache-beehive-incubating-svn-snapshot.tar.gz: Cannot open: Input/Output error
> [exec] tar (child): Error is not recoverable: exiting now
> Apparently GNU tar fails with the "Unknown Host" error if you use drive letters in your file paths. I tried taking it out of my BEEHIVE_HOME, but the drive letter crops up from somewhere else still. If you add this as the 1st argument to the exec tar element it seems to fix the problem.
> <arg value="--force-local"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira