Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Git Clone Tasks not triggert when using own index
Git Clone Tasks not triggert when using own index [message #1707791] Wed, 09 September 2015 11:52 Go to next message
Stefan Nöbauer is currently offline Stefan NöbauerFriend
Messages: 3
Registered: September 2015
Junior Member
Hi,
First of all .... great tool to provide Installation of an Eclipse IDE.

So ... I would like to use Oomph to provide our inhouse development environment. I set up a project configurtation and several project-configurations.

As I tryed them using the default Oomph Installer they worked fine. But then I moved these configuration (,setup) files to our webserver and used these configurations within an own index.

After that none of the git clone tasks are triggered anymore.

What am I doing wrong? Any ideas?

Is it also possible to add a git clone task to the product.setup?

Here are my Configuration files:
org.eclipse.setup:
<?xml version="1.0" encoding="UTF-8"?>
<setup:Index
    xmi:version="2.0"
    xmlns:xmi="..."
    xmlns:setup="..."
    name="index"
    label="Index">
  <productCatalog
      href="catalog:/self-product-catalog.setup#/"/>
  <productCatalog
      href="kgu.products.setup#/"/>
  <projectCatalog
      href="kgu.tps.projects.setup#/"/>
</setup:Index>


kgu.products.setup:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ProductCatalog
    xmi:version="2.0"
    xmlns:xmi="..."
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    name="kgu.products"
    label="KGU">
  <product href="ide.setup#/"/>
</setup:ProductCatalog>


ide.setup:
<?xml version="1.0" encoding="UTF-8"?>
<setup:Product
    xmi:version="2.0"
    xmlns:xmi="..."
    xmlns:xsi="..."
    xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore"
    name="tps.ide"
    label="TPS IDE">
  <annotation
      source="http://www.eclipse.org/oomph/setup/BrandingInfo">
    <detail
        key="folderName">
      <value>eclipse</value>
    </detail>
    <detail
        key="folderName.macosx">
      <value>Eclipse</value>
    </detail>
  </annotation>
  <setupTask
      xsi:type="setup:InstallationTask"
      id="installation"/>
  <setupTask
      xsi:type="setup:VariableTask"
      name="workspace.location"
      label="Workspace location rule">
    <annotation
        source="ImpliedVariable">
      <reference
          href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']/'workspace'"/>
      <reference
          href="http://www.eclipse.org/oomph/setup/1.0#//WorkspaceTask/location"/>
    </annotation>
    <choice
        value="${installation.location/workspaces/workspace}"
        label="Located in a folder named 'ws' within the installation folder"/>
    <description>The rule for the absolute folder location where the workspace is located</description>
  </setupTask>
  <setupTask
      xsi:type="setup:VariableTask"
      id="global.repo.location"
      name="global.repo.location"
      value="${installation.location/GITRepo/}"/>
  <version name="latest.released"
      label="Latest Release (Mars)"
      requiredJavaVersion="1.7">
    <setupTask
        xsi:type="setup:EclipseIniTask"
        option="-Xmx"
        value="2024m"
        vm="true">
      <description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
    </setupTask>
    <setupTask
        xsi:type="setup:EclipseIniTask"
        option="-showLocation"
        value=""/>
    <setupTask
        xsi:type="git:GitCloneTask"
        id="git.clone.developTools"
        excludedTriggers="MANUAL"
        location="${installation.location/}${git.clone.developTools.remoteURI|gitRepository}"
        remoteURI="ssh://git:22000/DevelopmentTools"
        pushURI=""
        checkoutBranch="develop">
      <description></description>
    </setupTask>
    <setupTask
        xsi:type="setup.p2:P2Task"
        label="Eclipse for RCP and RAP Developers (Mars)">
      <requirement
          name="epp.package.rcp"
          versionRange="[4.5.0,4.6.0)"/>
      <requirement
          name="org.eclipse.platform.feature.group"
          versionRange="[4.5.0,4.6.0)"/>
      <requirement
          name="org.eclipse.rcp.feature.group"
          versionRange="[4.5.0,4.6.0)"/>
      <requirement
          name="org.eclipse.jdt.feature.group"
          versionRange="[3.11.0,3.12.0)"/>
      <requirement
          name="org.eclipse.pde.feature.group"
          versionRange="[3.11.0,3.12.0)"/>
      <requirement
          name="com.essiembre.eclipse.rbe.feature.group"
          versionRange="[1.0.4,2.0.0)"/>
      <requirement
          name="org.eclipse.wst.web_ui.feature.feature.group"/>
      <requirement
          name="org.jboss.ide.eclipse.as.feature.feature.group"/>
      <requirement
          name="org.jboss.ide.eclipse.freemarker.feature.feature.group"/>
      <requirement
          name="de.kgucms.ddmtooling.resources.feature.feature.group"/>
      <requirement
          name="edu.umd.cs.findbugs.plugin.eclipse.feature.group"/>
      <requirement
          name="net.sf.eclipsecs.feature.group"/>
      <requirement
          name="org.eclipse.regexp.feature.feature.group"/>
      <requirement
          name="org.eclipse.wst.jsdt.feature.feature.group"/>
      <repository
          url="http://download.eclipse.org/technology/epp/packages/mars/R"/>
      <repository
          url="http://download.eclipse.org/releases/mars/201506241002"/>
    </setupTask>
  </version>
  <description>A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client Applications or Remote Application Platform (RCP+RAP), plus Mylyn, the m2e Maven integration, and an XML editor. It contains the EGit tooling for accessing Git version control systems.</description>
</setup:Product>



Greetings
Stefan

Re: Git Clone Tasks not triggert when using own index [message #1707834 is a reply to message #1707791] Wed, 09 September 2015 15:00 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 09.09.2015 um 15:15 schrieb Stefan Nöbauer:
> Hi,
> First of all .... great tool to provide Installation of an Eclipse IDE.
>
> So ... I would like to use Oomph to provide our inhouse development environment. I set up a project configurtation and
> several project-configurations.
>
> As I tryed them using the default Oomph Installer they worked fine. But then I moved these configuration (,setup)
> files to our webserver and used these configurations within an own index.
> After that none of the git clone tasks are triggered anymore.
Are you sure they're not triggered and not just unneeded? You can check that with the "Show all triggered tasks" button.

Are you sure they don't rely on any VariableTaks that are defined in the project catalog where they lived formerly?

Are there any errors in the setup.log or in Eclipse's error log? Can you attach the setup.log file? (Navigate -> Open
Setup Log)

To me your remoteURI "ssh://git:22000/DevelopmentTools" looks weird, but I assume that used to work when the task was
still in the project catalog?

>
> What am I doing wrong? Any ideas?
>
> Is it also possible to add a git clone task to the product.setup?
Generally there are no limitations regarding the scope a sepcific task can live in. Task type and scope type are orthogonal.

Cheers
/Eike

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


>
> Here are my Configuration files:
> org.eclipse.setup:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:Index
> xmi:version="2.0"
> xmlns:xmi="..."
> xmlns:setup="..."
> name="index"
> label="Index">
> <productCatalog
> href="catalog:/self-product-catalog.setup#/"/>
> <productCatalog
> href="kgu.products.setup#/"/>
> <projectCatalog
> href="kgu.tps.projects.setup#/"/>
> </setup:Index>
>
>
> kgu.products.setup:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:ProductCatalog
> xmi:version="2.0"
> xmlns:xmi="..."
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> name="kgu.products"
> label="KGU">
> <product href="ide.setup#/"/>
> </setup:ProductCatalog>
>
>
> ide.setup:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <setup:Product
> xmi:version="2.0"
> xmlns:xmi="..."
> xmlns:xsi="..."
> xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
> xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
> xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0
> http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore"
> name="tps.ide"
> label="TPS IDE">
> <annotation
> source="http://www.eclipse.org/oomph/setup/BrandingInfo">
> <detail
> key="folderName">
> <value>eclipse</value>
> </detail>
> <detail
> key="folderName.macosx">
> <value>Eclipse</value>
> </detail>
> </annotation>
> <setupTask
> xsi:type="setup:InstallationTask"
> id="installation"/>
> <setupTask
> xsi:type="setup:VariableTask"
> name="workspace.location"
> label="Workspace location rule">
> <annotation
> source="ImpliedVariable">
> <reference
> href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']/'workspace'"/>
> <reference
> href="http://www.eclipse.org/oomph/setup/1.0#//WorkspaceTask/location"/>
> </annotation>
> <choice
> value="${installation.location/workspaces/workspace}"
> label="Located in a folder named 'ws' within the installation folder"/>
> <description>The rule for the absolute folder location where the workspace is located</description>
> </setupTask>
> <setupTask
> xsi:type="setup:VariableTask"
> id="global.repo.location"
> name="global.repo.location"
> value="${installation.location/GITRepo/}"/>
> <version name="latest.released"
> label="Latest Release (Mars)"
> requiredJavaVersion="1.7">
> <setupTask
> xsi:type="setup:EclipseIniTask"
> option="-Xmx"
> value="2024m"
> vm="true">
> <description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
> </setupTask>
> <setupTask
> xsi:type="setup:EclipseIniTask"
> option="-showLocation"
> value=""/>
> <setupTask
> xsi:type="git:GitCloneTask"
> id="git.clone.developTools"
> excludedTriggers="MANUAL"
> location="${installation.location/}${git.clone.developTools.remoteURI|gitRepository}"
> remoteURI="ssh://git:22000/DevelopmentTools"
> pushURI=""
> checkoutBranch="develop">
> <description></description>
> </setupTask>
> <setupTask
> xsi:type="setup.p2:P2Task"
> label="Eclipse for RCP and RAP Developers (Mars)">
> <requirement
> name="epp.package.rcp"
> versionRange="[4.5.0,4.6.0)"/>
> <requirement
> name="org.eclipse.platform.feature.group"
> versionRange="[4.5.0,4.6.0)"/>
> <requirement
> name="org.eclipse.rcp.feature.group"
> versionRange="[4.5.0,4.6.0)"/>
> <requirement
> name="org.eclipse.jdt.feature.group"
> versionRange="[3.11.0,3.12.0)"/>
> <requirement
> name="org.eclipse.pde.feature.group"
> versionRange="[3.11.0,3.12.0)"/>
> <requirement
> name="com.essiembre.eclipse.rbe.feature.group"
> versionRange="[1.0.4,2.0.0)"/>
> <requirement
> name="org.eclipse.wst.web_ui.feature.feature.group"/>
> <requirement
> name="org.jboss.ide.eclipse.as.feature.feature.group"/>
> <requirement
> name="org.jboss.ide.eclipse.freemarker.feature.feature.group"/>
> <requirement
> name="de.kgucms.ddmtooling.resources.feature.feature.group"/>
> <requirement
> name="edu.umd.cs.findbugs.plugin.eclipse.feature.group"/>
> <requirement
> name="net.sf.eclipsecs.feature.group"/>
> <requirement
> name="org.eclipse.regexp.feature.feature.group"/>
> <requirement
> name="org.eclipse.wst.jsdt.feature.feature.group"/>
> <repository
> url="http://download.eclipse.org/technology/epp/packages/mars/R"/>
> <repository
> url="http://download.eclipse.org/releases/mars/201506241002"/>
> </setupTask>
> </version>
> <description>A complete set of tools for developers who want to create Eclipse plug-ins, Rich Client Applications or
> Remote Application Platform (RCP+RAP), plus Mylyn, the m2e Maven integration, and an XML editor. It contains the EGit
> tooling for accessing Git version control systems.</description>
> </setup:Product>
>
>
>
> Greetings
> Stefan
>


Re: Git Clone Tasks not triggert when using own index [message #1707838 is a reply to message #1707834] Wed, 09 September 2015 15:35 Go to previous messageGo to next message
Stefan Nöbauer is currently offline Stefan NöbauerFriend
Messages: 3
Registered: September 2015
Junior Member
Hi Eike,

Quote:
Are you sure they're not triggered and not just unneeded? You can check that with the "Show all triggered tasks" button.

I do not see the git task even if i check the button.

Quote:
Are you sure they don't rely on any VariableTaks that are defined in the project catalog where they lived formerly?

No ... I just use the ${installation.location} Variable in the product configuration

I added the setup.log file
The remoteURI is working fine ... we use an alias for our git server.

I do not select any projects just to test the installation of the product itselfs.

/Stefan
  • Attachment: setup.log
    (Size: 77.86KB, Downloaded 161 times)

[Updated on: Wed, 09 September 2015 15:35]

Report message to a moderator

Re: Git Clone Tasks not triggert when using own index [message #1707842 is a reply to message #1707838] Wed, 09 September 2015 16:05 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 09.09.2015 um 17:35 schrieb Stefan Nöbauer:
> Hi Eike,
>
> Quote:
>> Are you sure they're not triggered and not just unneeded? You can check that with the "Show all triggered tasks" button.
> I do not see the git task even if i check the button.
Just to be clear, the GitCloneTask cannot run in the installer (i.e., on boostrap trigger). Have you used that button on
the manual trigger (Help -> Perform Setup Tasks) *in* the installed IDE?


>
> Quote:
>> Are you sure they don't rely on any VariableTaks that are defined in the project catalog where they lived formerly?
> No ... I just use the ${installation.location} Variable in the product configuration
Ok.

> I added the setup.log file
Hm, it ends where the interesting part starts: "Executing startup tasks...". Does that mean there are none? Or did you
truncate the log?

> The remoteURI is working fine ... we use an alias for our git server.
>
> I do not select any projects just to test the installation of the product itselfs.
It's unclear to me why you want the GitCloneTask in the product setup and not in a project setup, but AFAICT it should work.

Cheers
/Eike

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


Re: Git Clone Tasks not triggert when using own index [message #1707844 is a reply to message #1707842] Wed, 09 September 2015 16:26 Go to previous messageGo to next message
Stefan Nöbauer is currently offline Stefan NöbauerFriend
Messages: 3
Registered: September 2015
Junior Member
Hi Eike,

I think I found the problem .... i missed this part:

Quote:
You must also copy all of the model files in http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/ to your redirection <path>/models/


I downloaded the files and the git task appeard in the startup trigger!! Sorry for wasting your time!

I use this git Clone Task as aworkaround to be able to install a wildfly server for the IDE. Since Oomph does not support FolderCopy nor unzip nor execute tasks I use Git do download the server.

Thanks very much for your time
/Stefan
Re: Git Clone Tasks not triggert when using own index [message #1707848 is a reply to message #1707844] Wed, 09 September 2015 16:57 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6693
Registered: July 2009
Senior Member
Am 09.09.2015 um 18:26 schrieb Stefan Nöbauer:
> Hi Eike,
>
> I think I found the problem .... i missed this part:
>
> Quote:
>> You must also copy all of the model files in
>> http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/ to your redirection <path>/models/
>
>
> I downloaded the files and the git task appeard in the startup trigger!! Sorry for wasting your time!
>
> I use this git Clone Task as aworkaround to be able to install a wildfly server for the IDE. Since Oomph does not
> support FolderCopy nor unzip nor execute tasks I use Git do download the server.
> Thanks very much for your time
I'm glad that it works ;-)

Cheers
/Eike

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


Previous Topic:Using Oomph to snapshot and clone/restore a complete, customized/personalized Eclipse installation?
Next Topic:Start Installer in Advanced Mode
Goto Forum:
  


Current Time: Sat Dec 14 10:29:27 GMT 2024

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

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

Back to the top