Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] how to mirror an update-site and dependencies using p2

Hi Nick, list, 

> http://www.google.com/support/forum/p/apps-apis/thread?tid=06aff7dfd9442aa0&hl=en
>
> "Be sure not to leave any other character in front of:
> <?xml version='1.0' encoding='utf-8'?>
>
> I got this error while trying to post an XML with an carriage return in  
> front of XML"
>
> Does that help?

Yes, thanks a lot!

It worked here.

The first error was because I made a stupid mistake, assuming that &gt;
and &lt; characters were changed by mistake by my browser (I got this
kind of error long time ago) and changed your script. When I reverted it to the original, 
I received some network errors.

The second part was because of my infrastructure here where my proxy
server blocked some requests and I couldn't reach outside world. Solved now.

Just for record, I'll put here how it worked to me. 
It's your solution Nick with the proxy settings added.

<warning step by step reminder>
Almost Everything was put on /tmp for tests.
I have downloaded ant-contrib.jar (http://sourceforge.net/projects/ant-contrib/files/) and put it on /tmp/eclipse/

I've unpacked the latest eclipse version (eclipse-SDK-3.5.2RC4-linux-gtk.tar.gz)  in /tmp/eclipse/ so my eclipse path is /tmp/eclipse/eclipse/ 

# setting proxy variables
me@machine:/tmp$ export PROXYHOST='myproxy.host.com'
me@machine:/tmp$ export PROXYPORT='8001'

# cleaning previous generated directories
me@machine:/tmp$ rm -rf workspace partial-repo-mirror/ ;

# running eclipse 
me@machine:/tmp$ ./eclipse/eclipse/eclipse -nosplash -data /tmp/workspace -consolelog \
-application org.eclipse.ant.core.antRunner -f /tmp/partialMirrorFromRepo.xml  \
 -vmargs -Dhttp.proxyHost=${PROXYHOST} -Dhttp.proxyPort=${PROXYPORT}

# the -vmargs line above provides proxy information to eclipse. 
</warning>

Nick, there is only one question reminding.

In your script, you've specified some repositories and Installable Units:
----------------------------
<source>
        <repository location="http://eclipse.svnkit.com/1.3.x/"; />
        <repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/"; />
        <repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/"; />
        <repository location="http://download.eclipse.org/rt/ecf/3.0/3.5/repo/"; />
        <repository location="http://download.eclipse.org/releases/galileo/"; />
        <repository location="http://download.cloudsmith.com/galileoplus/"; />
</source>
<iu id="org.tmatesoft.svnkit.feature.group" />
<iu id="com.sun.jna.feature.group" />
<iu id="org.polarion.eclipse.team.svn.connector.feature.group" />
<iu id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group" />
<iu id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group" />
<iu id="org.eclipse.team.svn.feature.group" />
<iu id="org.eclipse.ecf" />
<iu id="org.eclipse.ecf.filetransfer" />
<iu id="org.eclipse.ecf.identity" />
<iu id="org.eclipse.ecf.provider.filetransfer" />
<iu id="org.eclipse.ecf.provider.filetransfer.httpclient" />
<iu id="org.eclipse.ecf.provider.filetransfer.httpclient.ssl" />
<iu id="org.eclipse.ecf.provider.filetransfer.ssl" />
<iu id="org.eclipse.ecf.ssl" />
--------------------------

It's ok to me to have the repository list and org.tmatesoft.svnkit feature listed. But how (where) did you get the dependency list of svnkit?

I need to identify where I can find these dependencies to adapt your script to, for example, m2eclipse's update-site.

Somebody at irc.freenode.org #eclipse, told me that artifact.xml and content.xml at the update-site site should point that dependencies,
but unfortunatelly I didn't found where.

Could you please show me where? Or point me some documentation where I can find the way it works? 

Thanks a lot,

LEslie


Back to the top