|
Re: [CDO] Little patch for setting up the CDO sources workspace [message #431370 is a reply to message #431313] |
Wed, 08 July 2009 09:14 |
|
Kai,
Thx for the hint! Usually we prefer patches on bugzillas, but in this
case no production code is affected. That said, I can't apply the patch.
But the change is simple enough and I can apply it manually ;-)
Cheers
/Eike
----
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Kai Schlamp schrieb:
> Hi Eike,
>
> below is a little patch for the SetupWorkspace.java for setting up the
> CDO Sources.
> The problem is when you are working on Linux and change url-target.txt
> and url.baseline.txt as mentioned on
> http://wiki.eclipse.org/CDO_Source_Installation#Bootstrap, then those
> files are not downloaded correctly.
> Was not sure if it is really worth a bug report.
>
> ### Eclipse Workspace Patch 1.0
> #P develop.setup
> Index: src/setup/SetupWorkspace.java
> ============================================================ =======
> RCS file:
> /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf.cdo/develo p/setup/src/setup/SetupWorkspace.java,v
>
> retrieving revision 1.1
> diff -u -r1.1 SetupWorkspace.java
> --- src/setup/SetupWorkspace.java 4 Jul 2009 05:11:43 -0000 1.1
> +++ src/setup/SetupWorkspace.java 8 Jul 2009 09:01:51 -0000
> @@ -123,7 +123,7 @@
>
> URLConnection connection = url.openConnection();
> String contentType = connection.getContentType();
> - if (!"application/zip".equals(contentType))
> + if (!"application/zip".equals(contentType) &&
> !"application/x-gzip".equals(contentType))
> {
> copy((InputStream)connection.getContent(), System.err);
> throw new IOException("Invalid content type: " + contentType);
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03970 seconds