[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,

Thanks for the fast reply.

I've been trying to use your script (
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/tools/scripts/partialMirrorFromRepo.xml?root=Technology_Project&revision=1.5&content-type=text%2Fplain
)
but without any luck.

first I get the following error:
-----------------------------------------------------------------------------------------------
leslie@ecelepar11920:~/debian/pacotes/install_eclipse/kiss$ ./eclipse/eclipse  -nosplash -data /tmp/workspace2 -consolelog -application org.eclipse.ant.core.antRunner -f /home/leslie/debian/pacotes/install_eclipse/kiss/partialMirrorFromRepo.xml
!SESSION 2010-04-22 17:33:42.773 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=pt_BR
Framework arguments:  -product org.eclipse.epp.package.jee.product -application org.eclipse.ant.core.antRunner -f /home/leslie/debian/pacotes/install_eclipse/kiss/partialMirrorFromRepo.xml
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product -data /tmp/workspace2 -consolelog -application org.eclipse.ant.core.antRunner -f /home/leslie/debian/pacotes/install_eclipse/kiss/partialMirrorFromRepo.xml

!ENTRY org.eclipse.equinox.p2.repository 4 0 2010-04-22 17:33:43.830
!MESSAGE ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.
Buildfile: /home/leslie/debian/pacotes/install_eclipse/kiss/partialMirrorFromRepo.xml

BUILD FAILED
/home/leslie/debian/pacotes/install_eclipse/kiss/partialMirrorFromRepo.xml:127: The processing instruction target matching "[xX][mM][lL]" is not allowed.

Total time: 0 seconds

!ENTRY org.eclipse.osgi 4 0 2010-04-22 17:33:44.659
!MESSAGE Application error
!STACK 1
----------------------------------------------------------------------------------

The log is gzipped and attached.


After this, I've tried to comment the buildXmlSite target to see if it works, but the only thing I got was an empty directory with 2 jar files generated by the script and nothing else.

Any hints? 


Thanks in advance,

LEslie
PS: I'm behind a proxy server, but even in another network I had the same problem.


Em Wed, Apr 21, 2010 at 02:29:18PM -0400, Nick Boldt escreveu:
| Date: Wed, 21 Apr 2010 14:29:18 -0400
| From: Nick Boldt <nickboldt@xxxxxxxxx>
| To: p2-dev@xxxxxxxxxxx
| Subject: Re: [p2-dev] how to mirror an update-site and dependencies using
| 	p2
| Reply-To: P2 developer discussions <p2-dev@xxxxxxxxxxx>
| 
> http://wiki.eclipse.org/Equinox/p2/Ant_Tasks/Partial_Mirroring/Example
>
> Use followStrict="false" to get everything; use followStrict="true" to  
> get only the stuff from the specified site(s).
>
> For shell invocation, save your script as mirror.xml, then do `ant -f  
> mirror.xml`
>
> Nick
>
> On 04/20/2010 02:00 PM, Leslie H. Watter wrote:
>> Hi Folks,
>>
>> I've been digging around how to mirror an update-site with dependencies.
>> Now I know how to mirror an update-site but *without dependencies*.
>>
>> All that I want is to resolve the dependencies of the mirror site as the
>> way eclipse does using GUI.
>>
>> What I'm trying to do is mirror m2eclipse's update-site plugin with it's
>> dependencies.
>>
>> Mirroring only m2eclipse works fine the way I'm doing below, but I don't get the dependencies
>> org.eclipse.zest.* which are necessary to get the plugin working completely.
>>
>> Is there any way to use p2 mirror the update site resolving the
>> dependencies like the way the user interface does it?
>>
>> My script to mirror update-sites:
>> -------
>>   #!/bin/bash
>>   set -xe
>>   PROXYHOST="proxy.machine"
>>   PROXYPORT="PPORT"
>>   PROXYUSER="USER"
>>   PROXYPASSWD="PWD"
>>   ECLIPSESOURCELINK="http://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/galileo/SR2/eclipse-jee-galileo-SR2-linux-gtk.tar.gz";
>>   ECLIPSETGZ=$(echo $ECLIPSESOURCELINK | awk 'BEGIN{FS="/"}{print $NF}')
>>   ECLIPSEDIR="./eclipse"
>>
>>    updirs=( 'http://m2eclipse.sonatype.org/sites/m2e/|m2e' 'http://m2eclipse.sonatype.org/sites/m2e-extras/|m2e-extras' 'http://download.eclipse.org/tools/gef/updates/releases/|gef')
>>
>>   export JAVA_HOME="/usr/lib/jvm/java-6-sun"
>>
>>   if ! [ -e $ECLIPSETGZ ]; then
>>   	if ![ ${PROXYUSER}x == ""x ];
>>   	then
>>   		curl -O -U ${PROXYUSER}:${PROXYPASSWD} --proxy-anyauth --proxy ${PROXYHOST}:${PROXYPORT} ${ECLIPSESOURCELINK}
>>   	fi
>>   fi
>>
>>   rm -fr $ECLIPSEDIR
>>   tar xzf $ECLIPSETGZ
>>
>>   for updir in ${updirs[@]};
>>   do
>>   	update=${updir%%|*}
>>   	dir=${updir##*|}
>>   	if ! [ -d $dir ] ; then
>>   		mkdir $dir
>>   	fi
>>   	java -Dhttp.proxyHost=${PROXYHOST} -Dhttp.proxyPort=${PROXYPORT} -jar ${ECLIPSEDIR}/plugins/org.eclipse.equinox.launcher_*.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from $update -to $dir
>>   done
>> -------
>>
>>
>> Thanks in advance,
>>
>> Leslie
>> _______________________________________________
>> p2-dev mailing list
>> p2-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>
> -- 
> Nick Boldt :: http://nick.divbyzero.com
> Release Engineer :: Eclipse Modeling & Dash Athena
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
>) :-- final da mensagem Re: [p2-dev] how to mirror an update-site and dependencies using p2 de Nick Boldt <nickboldt@xxxxxxxxx> --:

Attachment: error-log-partialRepo.gz
Description: Binary data