[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [p2-dev] RE: Installing eclipse from the command line
|
This was pretty close to what I was already using.
Nevertheless I translated the relevant bits into macrodefs and ran them (see
attached):
* Platform: WinXP
* JDK: Sun 1.6.0_06
* Ant: 1.7.1
The result was the same: the install location contains a p2
directory and nothing else:
C:\TMP\ECLIPSEIDE\3.4\WIN
└───p2
├───org.eclipse.equinox.p2.core
│
└───cache
├───org.eclipse.equinox.p2.director
│
└───rollback
├───org.eclipse.equinox.p2.engine
│
└───profileRegistry
│
└───SDKProfile.profile
└───org.eclipse.equinox.p2.metadata.repository
└───cache
Script output was as follows:
> ant test-install-eclipse-win
Buildfile:
build.xml
test-install-eclipse-win:
[echo] Installing Eclipse in
C:/tmp/eclipseide/3.4/win
[delete] Deleting directory
C:\tmp\eclipseide\3.4\win
[mkdir] Created dir:
C:\tmp\eclipseide\3.4\win
[exec] DEBUG OUTPUT:
false
[exec] Installing org.eclipse.sdk.ide
3.4.0.I20080617-2000.
[exec] Installing
org.eclipse.sdk.ide 3.4.0.I20080617-2000.
[exec]
Operation completed in 97469 ms.
[echo] Install Eclipse
complete!
BUILD SUCCESSFUL
Total time: 2 minutes 27
seconds
Do you have any idea what could be going
wrong?
Thanks,
Miles
Miles Daffin
Morgan Stanley |
Technology
20
Cabot Square | Canary Wharf | Floor 06
London, E14 4QW
Phone: +44 20
7677-5119
Fax: +44 20 7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
Just look in the history, the branch
point for R3_4_maintenance would be the last 3.4.0 version. http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.eclipsebuilder/equinox/buildConfigs/equinox.prov/run.xml?revision=1.86&view=markup
"Daffin, Miles \(IT\)"
<Miles.Daffin@xxxxxxxxxxxxxxxxx> Sent by: p2-dev-bounces@xxxxxxxxxxx
08/07/2008 01:08 PM
Please respond
to P2 developer discussions
<p2-dev@xxxxxxxxxxx> |
|
To
| "P2 developer discussions"
<p2-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| RE: [p2-dev] RE: Installing eclipse
from the command line |
|
This file is for creating 3.5.0 installs. Please excuse my
almost limitless ignorance, but should I be looking at the one for 3.4.0?
Thanks a
lot, Miles Miles Daffin
Morgan Stanley |
Technology
20 Cabot Square | Canary Wharf | Floor 06
London, E14
4QW
Phone: +44 20 7677-5119
Fax: +44 20 7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
From: p2-dev-bounces@xxxxxxxxxxx
[mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Andrew
Niefer
Sent: 07 August 2008 16:38
To: P2 developer
discussions
Subject: RE: [p2-dev] RE: Installing eclipse from the
command line
The script used to create the eclipse downloads is in CVS, you can
see it here:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.eclipsebuilder/equinox/buildConfigs/equinox.prov/run.xml?view=markup
-Andrew
"Daffin, Miles \(IT\)"
<Miles.Daffin@xxxxxxxxxxxxxxxxx> Sent by:
p2-dev-bounces@xxxxxxxxxxx
08/07/2008 06:12 AM
Please respond
to P2 developer discussions
<p2-dev@xxxxxxxxxxx> |
|
To
| "P2 developer
discussions" <p2-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| RE: [p2-dev] RE: Installing eclipse
from the command line |
|
John,
Would the
simplest approach would be to post the script(s) used to create the eclipse
downloads? I am sure others would find this really helpful. Could they be
attached to the directory wiki page?
http://wiki.eclipse.org/Equinox_p2_director_application
Cheers,
Miles
Miles Daffin
Morgan
Stanley | Technology
20 Cabot Square | Canary Wharf | Floor 06
London,
E14 4QW
Phone: +44 20 7677-5119
Fax: +44 20 7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
From: p2-dev-bounces@xxxxxxxxxxx
[mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Daffin, Miles
(IT)
Sent: 06 August 2008 18:45
To: P2 developer
discussions
Subject: RE: [p2-dev] RE: Installing eclipse from the
command line
Hi John,
Thanks for responding. Here is my full command line. Can
you spot any problems?
Thanks,
Miles
---
eclipse.exe
-application
org.eclipse.equinox.p2.director.app.application
-nosplash
--launcher.suppressErrors
-consoleLog
-verbose
-debug
-flavor
tooling
-installIU org.eclipse.sdk.ide
-version
3.4.0.I20080617-2000
-p2.os win32
-p2.ws win32
-p2.arch x86
-roaming
-profile SDKProfile
-profileProperties
org.eclipse.update.install.features=true
-metadataRepository
file:C:/dev/workshop/eclipseide/3.4/mirrors/eclipse
-artifactRepository
file:C:/dev/workshop/eclipseide/3.4/mirrors/eclipse
-metadataRepositoryName
metaName
-artifactRepositoryName artifactName
-destination
C:/tmp/eclipseide/3.4/win
-bundlepool C:/tmp/eclipseide/3.4/win
-vmargs
-Declipse.p2.data.area=C:/tmp/eclipseide/3.4/win/p2
Miles Daffin
Morgan Stanley | Technology
20 Cabot Square | Canary Wharf
| Floor 06
London, E14 4QW
Phone: +44 20 7677-5119
Fax: +44 20
7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
From: p2-dev-bounces@xxxxxxxxxxx
[mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of John
Arthorne
Sent: 06 August 2008 15:23
To: P2 developer
discussions
Subject: Re: [p2-dev] RE: Installing eclipse from the
command line
I've been on holiday for a couple of weeks and just catching up
on this. I can confirm you should get the same behaviour with the director
application as the installer, since they both under the covers call the same p2
API to perform the install. I know this works because we use the director
application ourselves during the eclipse project build to produce the zip files
you see on the download page. Perhaps your command line for calling the director
is missing something. Can you send along the exact command line you are using?
I think you already know this, but you should be using the
"org.eclipse.sdk.ide" product IU as the root when performing the
install.
John
"Daffin, Miles \(IT\)"
<Miles.Daffin@xxxxxxxxxxxxxxxxx> Sent by:
p2-dev-bounces@xxxxxxxxxxx
08/05/2008 06:03 AM
Please respond
to P2 developer discussions
<p2-dev@xxxxxxxxxxx> |
|
To
| "P2 developer
discussions" <p2-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| [p2-dev] RE: Installing eclipse
from the command line |
|
Folks,
Sorry to keep banging on about this - but does anyone have
any idea why eclipse installation fails using the director
application?
Thanks,
Miles
Miles Daffin
Morgan Stanley |
Technology
20 Cabot Square | Canary Wharf | Floor 06
London, E14
4QW
Phone: +44 20 7677-5119
Fax: +44 20 7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
From: p2-dev-bounces@xxxxxxxxxxx
[mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Daffin, Miles
(IT)
Sent: 28 July 2008 12:26
To: P2 developer
discussions
Subject: [p2-dev] RE: Installing eclipse from the command
line
I should add that I have
tried using the P2 director app as described here:
http://wiki.eclipse.org/Equinox_p2_director_application#Installing_a_complete_product
All I end up with is
a p2 folder with 4 subdirectories containing various bit of metadata:
org.eclipse.equinox.p2.core
org.eclipse.equinox.p2.director
org.eclipse.equinox.p2.engine
org.eclipse.equinox.p2.metadata.repository
I was expecting a
complete, runnable eclipse install. What am I doing wrong?
Thanks,
Miles
Miles Daffin
Morgan Stanley | Technology
20 Cabot Square | Canary Wharf
| Floor 06
London, E14 4QW
Phone: +44 20 7677-5119
Fax: +44 20
7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
From: p2-dev-bounces@xxxxxxxxxxx
[mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Daffin, Miles
(IT)
Sent: 28 July 2008 11:58
To: P2 developer
discussions
Subject: [p2-dev] Installing eclipse from the command
line
Hi All,
I have tried the P2 installer to
install eclipse from a local Ganymede mirror. Is it possible to do the same but
non-interactively, without a UI, from a script?
Thanks,
Miles
Miles Daffin
Morgan Stanley | Technology
20 Cabot Square | Canary Wharf
| Floor 06
London, E14 4QW
Phone: +44 20 7677-5119
Fax: +44 20
7056-4572
Miles.Daffin@xxxxxxxxxxxxxxxxx
NOTICE: If received in error, please
destroy and notify sender. Sender does not intend to waive confidentiality or
privilege. Use of this email is prohibited when received in error.
NOTICE: If received in error, please
destroy and notify sender. Sender does not intend to waive confidentiality or
privilege. Use of this email is prohibited when received in error.
NOTICE: If received in error, please
destroy and notify sender. Sender does not intend to waive confidentiality or
privilege. Use of this email is prohibited when received in
error._______________________________________________
p2-dev mailing
list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
NOTICE: If received in error, please
destroy and notify sender. Sender does not intend to waive confidentiality or
privilege. Use of this email is prohibited when received in error.
NOTICE: If received in error, please
destroy and notify sender. Sender does not intend to waive confidentiality or
privilege. Use of this email is prohibited when received in
error._______________________________________________
p2-dev mailing
list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
NOTICE: If received in error, please
destroy and notify sender. Sender does not intend to waive confidentiality or
privilege. Use of this email is prohibited when received in
error._______________________________________________
p2-dev mailing
list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<project name="p2-director" basedir=".">
<!--===============================================================================================================-->
<!-- PROPERTIES -->
<!--===============================================================================================================-->
<property name="ecliipseide.iu.version" value="3.4.0.I20080617-2000"/>
<property name="java15.home" value="C:/jdk_1.5.0_15"/>
<property name="equinox.p2.director.home" value="C:/eclipse-SDK-3.4-win32/eclipse"/>
<property name="eclipse.mirror.dir" value="C:/mirror-eclipse" description="Contains mirror of eclipse p2 repo"/>
<!--===============================================================================================================-->
<!-- MACRODEFS -->
<!--===============================================================================================================-->
<macrodef name="install-eclipse-win">
<attribute name="repository"/>
<attribute name="todir"/>
<sequential>
<echo message="Installing Eclipse in @{todir}"/>
<delete dir="@{todir}"/>
<mkdir dir="@{todir}"/>
<run-p2-director
install.iu.id="org.eclipse.sdk.ide"
install.iu.version="3.4.0.I20080617-2000"
profile="SDKProfile"
install.path="@{todir}"
extra.args="-profileProperties org.eclipse.update.install.features=true"
os="win32"
ws="win32"
arch="x86"
repo.path="@{repository}"
/>
<echo message="Install Eclipse complete!"/>
</sequential>
</macrodef>
<macrodef name="install-eclipse-linux-32">
<attribute name="repository"/>
<attribute name="todir"/>
<sequential>
<echo message="Installing Eclipse in @{todir}"/>
<delete dir="@{todir}"/>
<mkdir dir="@{todir}"/>
<run-p2-director
install.iu.id="org.eclipse.sdk.ide"
install.iu.version="${ecliipseide.iu.version}"
profile="SDKProfile"
install.path="@{todir}"
extra.args="-profileProperties org.eclipse.update.install.features=true"
os="linux"
ws="gtk"
arch="x86"
repo.path="@{repository}"
/>
<echo message="Install Eclipse complete!"/>
</sequential>
</macrodef>
<macrodef name="run-p2-director">
<attribute name="flavor" default="tooling"/>
<attribute name="install.iu.id"/>
<attribute name="install.iu.version"/>
<attribute name="profile"/>
<attribute name="install.path"/>
<attribute name="extra.args" default=""/>
<attribute name="os"/>
<attribute name="ws"/>
<attribute name="arch"/>
<attribute name="repo.path"/>
<attribute name="repo.name" default=""/>
<sequential>
<exec executable="${equinox.p2.director.home}/eclipse" failonerror="false" dir="${equinox.p2.director.home}" timeout="900000">
<arg line="-vm ${java15.home}/bin/java"/>
<arg line="-application org.eclipse.equinox.p2.director.app.application"/>
<arg line="-nosplash"/>
<arg line="--launcher.suppressErrors"/>
<arg line="-consoleLog"/>
<arg line="-flavor @{flavor}"/>
<arg line="-installIU @{install.iu.id}"/>
<arg line="-version @{install.iu.version}"/>
<arg line="-p2.os @{os}"/>
<arg line="-p2.ws @{ws}"/>
<arg line="-p2.arch @{arch}"/>
<arg line="-roaming"/>
<arg line="-profile @{profile}"/>
<arg line="@{extra.args}"/>
<arg line="-metadataRepository file:@{repo.path}"/>
<arg line="-artifactRepository file:@{repo.path}"/>
<arg line="-metadataRepositoryName @{repo.name}"/>
<arg line="-artifactRepositoryName @{repo.name}"/>
<arg line="-destination @{install.path}"/>
<arg line="-bundlepool @{install.path}"/>
<arg line="-vmargs"/>
<arg line="-Declipse.p2.data.area=@{install.path}/p2"/>
<arg line="-Xmx512m"/>
</exec>
</sequential>
</macrodef>
<!--===============================================================================================================-->
<!-- TARGETS -->
<!--===============================================================================================================-->
<target name="test-install-eclipse-win">
<install-eclipse-win repository="${eclipse.mirror.dir}" todir="C:/tmp/eclipseide/3.4/win"/>
</target>
<target name="test-install-eclipse-linux">
<install-eclipse-linux-32 repository="${eclipse.mirror.dir}" todir="C:/tmp/eclipseide/3.4/linux32"/>
</target>
</project>