Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Importing project set from SVN fails
Importing project set from SVN fails [message #1700132] Tue, 30 June 2015 10:52 Go to next message
Tim Geisler is currently offline Tim GeislerFriend
Messages: 47
Registered: July 2009
Member
First of all, I am new to Oomph (listened to your talk at XtextCon and now want to try it out).

I'd like to implement a setup task which creates a set of projects defined with a team project set:

<setupTask
xsi:type="projectset:ProjectSetImportTask"
uRL="https://subversion.assembla.com/svn/MYPROJECT/user.psf">
<description>User projects</description>
</setupTask>

This setup task is located inside a stream which is located inside a project.

Unfortunately, this setup task does not get executed. Silently.

The file user.psf looks as follows:

<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
<provider id="org.tigris.subversion.subclipse.core.svnnature">
<project reference="0.9.3,https://subversion.assembla.com/svn/MYPROJECT/xyz,xyz"/>
</provider>
</psf>

In the same setup file, I install the subclipse plugins via a P2Task.

Is there any way to find out what is going wrong? (Yes, I know I can use Oomph to install Oomph from source and use a debugger ...). The setup file validates fine.

I have some guesses what might go wrong:
- Subclipse is not yet installed at the time it should be used to execute the ProjectSet setup task.
- Obviously, the SVN server is password protected. Authentication might fail.

The big problem for a newbee to Oomph like me is that there is no error message at all.
Re: Importing project set from SVN fails [message #1700141 is a reply to message #1700132] Tue, 30 June 2015 11:28 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 30.06.2015 um 12:52 schrieb Tim Geisler:
> First of all, I am new to Oomph (listened to your talk at XtextCon and now want to try it out).
>
> I'd like to implement a setup task which creates a set of projects defined with a team project set:
>
> <setupTask
> xsi:type="projectset:ProjectSetImportTask"
> uRL="https://subversion.assembla.com/svn/MYPROJECT/user.psf">
> <description>User projects</description>
> </setupTask>
>
> This setup task is located inside a stream which is located inside a project.
>
> Unfortunately, this setup task does not get executed. Silently.
Can you check the "Show all triggered tasks" button on the confirmation page and confirm, that the ProjectSetImportTask
is listed. Is it also checked there?

>
> The file user.psf looks as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <psf version="2.0">
> <provider id="org.tigris.subversion.subclipse.core.svnnature">
> <project reference="0.9.3,https://subversion.assembla.com/svn/MYPROJECT/xyz,xyz"/>
> </provider>
> </psf>
>
> In the same setup file, I install the subclipse plugins via a P2Task.
In the resulting IDE, can you manually import this PSF file?

>
> Is there any way to find out what is going wrong? (Yes, I know I can use Oomph to install Oomph from source and use a
> debugger ...). The setup file validates fine.
Remote debugging is certainly a very good way ;-)

>
> I have some guesses what might go wrong:
> - Subclipse is not yet installed at the time it should be used to execute the ProjectSet setup task. - Obviously, the
> SVN server is password protected. Authentication might fail.
A manual import (see above) should help answer these questions.

>
> The big problem for a newbee to Oomph like me is that there is no error message at all.
Not even in the error log view?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Importing project set from SVN fails [message #1700165 is a reply to message #1700141] Tue, 30 June 2015 13:15 Go to previous messageGo to next message
Tim Geisler is currently offline Tim GeislerFriend
Messages: 47
Registered: July 2009
Member
Hi Eike,

thanks for your quick answer.

The ProjectSetImportTask is not listed, when I check "Show all triggered tasks". Why that?

The psf file imports all projects correctly when I import it from the IDE. Of course I checked this before.

I use the Eclipse Installer. There is no "Error Log" view in the installer. Is there a way to run a setup file from within Eclipse?

Best regards,

Tim


Re: Importing project set from SVN fails [message #1700172 is a reply to message #1700165] Tue, 30 June 2015 13:23 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 30.06.2015 um 15:15 schrieb Tim Geisler:
> Hi Eike,
>
> thanks for your quick answer.
>
> The ProjectSetImportTask is not listed, when I check "Show all triggered tasks". Why that?
>
> The psf file imports all projects correctly when I import it from the IDE. Of course I checked this before.
>
> I use the Eclipse Installer. There is no "Error Log" view in the installer. Is there a way to run a setup file from
> within Eclipse?
Okay, that explains it: the ProjectSetImportTask cannot run in the installer (i.e. during the Bootstrap trigger). Once
the new IDE is running, the ProjectSetImportTask should run during the Startup trigger. Are you saying that that doesn't
work? Are there errors in the log? Or did you not wait long enough?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Importing project set from SVN fails [message #1700222 is a reply to message #1700172] Tue, 30 June 2015 22:34 Go to previous messageGo to next message
Tim Geisler is currently offline Tim GeislerFriend
Messages: 47
Registered: July 2009
Member
I see only the Bootstrap trigger in the installer. When the installed Eclipse is started, I do not see anything. I waited some hours - that should be sufficient ... Is there anything I should click on?

I only have one .setup file with a setup:Project element.

Do I need another file with a setup:Workspace element? How do I link that?

My use case is to install an Eclipse-based application (set of plugins) and check-out some projects from SVN (defined as a .psf file) in the new workspace. Are there any example .setup files around which achieve this?
Re: Importing project set from SVN fails [message #1700223 is a reply to message #1700222] Tue, 30 June 2015 22:36 Go to previous messageGo to next message
Tim Geisler is currently offline Tim GeislerFriend
Messages: 47
Registered: July 2009
Member
Regarding your question with the errors in the log: no, there are no errors in the log. There is just one warning from egit.ui about missing HOME environment variable - but this should be irrelevant.
Re: Importing project set from SVN fails [message #1700224 is a reply to message #1700223] Tue, 30 June 2015 22:49 Go to previous messageGo to next message
Tim Geisler is currently offline Tim GeislerFriend
Messages: 47
Registered: July 2009
Member
WIth the help of https://github.com/joergreichert/oomph-catalogue, I learned that I can run manually in the installed IDE the missing setup tasks.

And now the ProjectSetImportTask is executed. And fails, because there are permission problems with the .psf file. I guess I should better use a ResourceCreation task to create the .psf file instead of loading the .psf file from a password-protected repository.

I think I can now proceed.
Re: Importing project set from SVN fails [message #1700262 is a reply to message #1700224] Wed, 01 July 2015 10:01 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 01.07.2015 um 00:49 schrieb Tim Geisler:
> WIth the help of https://github.com/joergreichert/oomph-catalogue, I learned that I can run manually in the installed
> IDE the missing setup tasks.
>
> And now the ProjectSetImportTask is executed. And fails, because there are permission problems with the .psf file. I
> guess I should better use a ResourceCreation task to create the .psf file instead of loading the .psf file from a
> password-protected repository.
>
> I think I can now proceed.
Very good. I've reworked our wiki section http://wiki.eclipse.org/Eclipse_Installer#Tutorials accordingly.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:[Oomph] Can we limit the JRE versions to choose in the Installer?
Next Topic:Installer fails to download Mars final release?
Goto Forum:
  


Current Time: Fri Mar 29 02:07:58 GMT 2024

Powered by FUDForum. Page generated in 0.03546 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top