Home » Eclipse Projects » Oomph » How to import a non eclipse project?(Import non eclipse projects with oomph)
| | | | | | | | |
Re: How to import a non eclipse project? [message #1696244 is a reply to message #1696240] |
Sun, 24 May 2015 11:55 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Aleksandar,
Comments below.
On 24/05/2015 12:57 PM, Aleksandar Toshovski wrote:
> What I achieved so far works with the custom catalogs/projects. The
> only problem I have is creating of files in the downloaded repository
> before importing them into eclipse. Can you give me some hints how to
> make this work? 1. Download repository
> 2. Add files into the repository (.project and .cproject)
I see you have this:
<setupTask
xsi:type="setup:ResourceCreationTask"
id="project"
excludedTriggers="STARTUP MANUAL"
content="<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>project</name>
	<comment></comment>
	<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
			<triggers>clean,full,incremental,</triggers>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
			<triggers>full,incremental,</triggers>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.cdt.core.cnature</nature>
		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
	</natures>
</projectDescription>"
targetURL="${git.clone.gitcentral.erp}/.project"
encoding="UTF-8">
<description>Create .project file</description>
So of course targetURL expands to the
So of course the targetURL expands to the web-hosted location of the
repository. Here's an example from the Platform.setup (in which one
needs to copy one of the many .classpath_* files to be the one
.classpath file that matches the current windowing system:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCopyTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
excludedTriggers="BOOTSTRAP"
sourceURL="${git.clone.platform.swt.location|uri}/bundles/org.eclipse.swt/.classpath_${osgi.ws}"
targetURL="${git.clone.platform.swt.location|uri}/bundles/org.eclipse.swt/.classpath"/>
I.e., so in your case, you would use
${git.clone.gitcentral.erp.location|uri} to specify the file URI for the
clone's local disk location.
> 3. Import repository projects
>
> Here is my view about support:
> I don't like the approach with adding of projects in the projects
> catalog for every user.
No, that's why we maintain a catalog. You can ask for your projects to
be included in the Eclipse catalog if it's an Eclipse project or in the
Github catalog if it's a Github project that is no also an Eclipse project.
> If I have a C-Project and the developer choose Eclipse Classic
> Package, the project configuration won't work at all.
That should not be the case. Your project description should include
the high level features that it needs. So it should specify it needs
CDT and then no matter what product is chosen CDT will be added to it.
(Note how the product catalog even has a bare bones Eclipse Platform
product, which does not include Egit, JDT, PDE, or really anything
useful for much of anything at all. You should design your project
description so that it ensures the necessary features are installed,
rather than assuming a certain product (with the dependencies implied by
the product) will be chosen first.
> So I need a way map project to eclipse package
No, it's best to avoid that.
> and also I need to be sure, that the configuration works with this
> package. That's way i chose to use a own product catalog with custom
> project catalog. So I can control remotely the possible combinations
> between eclipse package and a project.
I think this is the wrong approach. Better would be to author your
project so it works with the Eclipse Platform product as a starting
point, and when you get that right, it should be possible for the end
user to choose any product and still end up with a result that contains
what your project needs and that contains what that end-user also
wants. E.g., someone might want to work with Java projects and C
projects, and of course that's possible with Eclipse, so best if you
enable that rather than try to constrain what's possible...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: How to import a non eclipse project? [message #1696248 is a reply to message #1696244] |
Sun, 24 May 2015 13:18 |
Aleksandar Toshovski Messages: 78 Registered: December 2011 |
Member |
|
|
Ed Merks wrote on Sun, 24 May 2015 07:55
On 24/05/2015 12:57 PM, Aleksandar Toshovski wrote:
> What I achieved so far works with the custom catalogs/projects. The
> only problem I have is creating of files in the downloaded repository
> before importing them into eclipse. Can you give me some hints how to
> make this work? 1. Download repository
> 2. Add files into the repository (.project and .cproject)
I see you have this:
<setupTask
xsi:type="setup:ResourceCreationTask"
id="project"
excludedTriggers="STARTUP MANUAL"
content="......"
targetURL="${git.clone.gitcentral.erp}/.project"
encoding="UTF-8">
<description>Create .project file</description>
So of course the targetURL expands to the web-hosted location of the
repository. Here's an example from the Platform.setup (in which one
needs to copy one of the many .classpath_* files to be the one
.classpath file that matches the current windowing system:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCopyTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
excludedTriggers="BOOTSTRAP"
sourceURL="${git.clone.platform.swt.location|uri}/bundles/org.eclipse.swt/.classpath_${osgi.ws}"
targetURL="${git.clone.platform.swt.location|uri}/bundles/org.eclipse.swt/.classpath"/>
I.e., so in your case, you would use
${git.clone.gitcentral.erp.location|uri} to specify the file URI for the
clone's local disk location.
I see know how to fix it. One more question. What are the excluded Triggers? They doesn't appear on the Property Page?
Ed Merks wrote on Sun, 24 May 2015 07:55
> 3. Import repository projects
>
> Here is my view about support:
> I don't like the approach with adding of projects in the projects
> catalog for every user.
No, that's why we maintain a catalog. You can ask for your projects to
be included in the Eclipse catalog if it's an Eclipse project or in the
Github catalog if it's a Github project that is no also an Eclipse project.
Unfortunately It's not an open source project and the settings are very specific with the development environment.
Ed Merks wrote on Sun, 24 May 2015 07:55
> If I have a C-Project and the developer choose Eclipse Classic
> Package, the project configuration won't work at all.
That should not be the case. Your project description should include
the high level features that it needs. So it should specify it needs
CDT and then no matter what product is chosen CDT will be added to it.
(Note how the product catalog even has a bare bones Eclipse Platform
product, which does not include Egit, JDT, PDE, or really anything
useful for much of anything at all. You should design your project
description so that it ensures the necessary features are installed,
rather than assuming a certain product (with the dependencies implied by
the product) will be chosen first.
Now I understand the idea. Is it possible to pass only the project catalog in oomph.ini as parameter?
Ed Merks wrote on Sun, 24 May 2015 07:55
> So I need a way map project to eclipse package
No, it's best to avoid that.
> and also I need to be sure, that the configuration works with this
> package. That's way i chose to use a own product catalog with custom
> project catalog. So I can control remotely the possible combinations
> between eclipse package and a project.
I think this is the wrong approach. Better would be to author your
project so it works with the Eclipse Platform product as a starting
point, and when you get that right, it should be possible for the end
user to choose any product and still end up with a result that contains
what your project needs and that contains what that end-user also
wants. E.g., someone might want to work with Java projects and C
projects, and of course that's possible with Eclipse, so best if you
enable that rather than try to constrain what's possible...
Yes, this is a better approach. By the way woudn't be better to choose the project, without the eclipse package, when I have to define all dependencies on project level?
|
|
|
Re: How to import a non eclipse project? [message #1696253 is a reply to message #1696248] |
Sun, 24 May 2015 14:25 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Aleksandar,
Comments below
On 24/05/2015 3:18 PM, Aleksandar Toshovski wrote:
>
>
> Ed Merks wrote on Sun, 24 May 2015 07:55
>> On 24/05/2015 12:57 PM, Aleksandar Toshovski wrote:
>> > What I achieved so far works with the custom catalogs/projects. The
>> > only problem I have is creating of files in the downloaded
>> repository > before importing them into eclipse. Can you give me some
>> hints how to > make this work? 1. Download repository
>> > 2. Add files into the repository (.project and .cproject)
>> I see you have this:
>>
>> <setupTask
>> xsi:type="setup:ResourceCreationTask"
>> id="project"
>> excludedTriggers="STARTUP MANUAL"
>> content="......"
>> targetURL="${git.clone.gitcentral.erp}/.project"
>> encoding="UTF-8">
>> <description>Create .project file</description>
>>
>> So of course the targetURL expands to the web-hosted location of the
>> repository. Here's an example from the Platform.setup (in which one
>> needs to copy one of the many .classpath_* files to be the one
>> .classpath file that matches the current windowing system:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <setup:ResourceCopyTask
>> xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
>> excludedTriggers="BOOTSTRAP"
>> sourceURL="${git.clone.platform.swt.location|uri}/bundles/org.eclipse.swt/.classpath_${osgi.ws}"
>>
>> targetURL="${git.clone.platform.swt.location|uri}/bundles/org.eclipse.swt/.classpath"/>
>>
>>
>> I.e., so in your case, you would use
>> ${git.clone.gitcentral.erp.location|uri} to specify the file URI for
>> the clone's local disk location.
>
>
> I see know how to fix it. One more question. What are the excluded
> Triggers? They doesn't appear on the Property Page?
You have to unfilter to show advanced properties. There you'll see a
"Triggers" property, which makes it look like you're specifying the
triggers, but you can only specify combinations of the valid triggers
which are determined by annotations on the EClass for the task. E.g., a
git clone task must run in the IDE, it cannot be performed at bootstrap
time. It's actually saved in the excludedTriggers feature, which
excludes things from the set of valid triggers...
So you'll want this creation task to run after the clone task has
completed so you probably won't want it to be triggered at bootstrap
time because the clone will not yet exist...
>
>
> Ed Merks wrote on Sun, 24 May 2015 07:55
>> > 3. Import repository projects
>> >
>> > Here is my view about support:
>> > I don't like the approach with adding of projects in the projects >
>> catalog for every user. No, that's why we maintain a catalog. You
>> can ask for your projects to be included in the Eclipse catalog if
>> it's an Eclipse project or in the Github catalog if it's a Github
>> project that is no also an Eclipse project.
>
>
> Unfortunately It's not an open source project and the settings are
> very specific with the development environment.
I see. (But don't want to spend much time given free help for things
that won't be freely available.)
>
>
>
> Ed Merks wrote on Sun, 24 May 2015 07:55
>> > If I have a C-Project and the developer choose Eclipse Classic >
>> Package, the project configuration won't work at all. That should not
>> be the case. Your project description should include the high level
>> features that it needs. So it should specify it needs CDT and then
>> no matter what product is chosen CDT will be added to it. (Note how
>> the product catalog even has a bare bones Eclipse Platform product,
>> which does not include Egit, JDT, PDE, or really anything useful for
>> much of anything at all. You should design your project description
>> so that it ensures the necessary features are installed, rather than
>> assuming a certain product (with the dependencies implied by the
>> product) will be chosen first.
>
>
> Now I understand the idea. Is it possible to pass only the project
> catalog in oomph.ini as parameter?
No. But lots of things are possible with -Doomph.redirection.* VM
options for redirection one URI location to another. Also keep in mind
that ~/.eclipse/org.eclipse.oomph.setup/setups/com.github.projects.setup
contains the things you've added manually to the "user" product of the
Github product catalog so a user only needs to add it once and it will
stay there...
> Ed Merks wrote on Sun, 24 May 2015 07:55
>> > So I need a way map project to eclipse package
>> No, it's best to avoid that.
>> > and also I need to be sure, that the configuration works with this
>> > package. That's way i chose to use a own product catalog with
>> custom > project catalog. So I can control remotely the possible
>> combinations > between eclipse package and a project.
>> I think this is the wrong approach. Better would be to author your
>> project so it works with the Eclipse Platform product as a starting
>> point, and when you get that right, it should be possible for the end
>> user to choose any product and still end up with a result that
>> contains what your project needs and that contains what that end-user
>> also wants. E.g., someone might want to work with Java projects and
>> C projects, and of course that's possible with Eclipse, so best if
>> you enable that rather than try to constrain what's possible...
>
>
> Yes, this is a better approach. By the way woudn't be better to choose
> the project, without the eclipse package, when I have to define all
> dependencies on project level?
It's not so clear whom that would be better for... The Eclipse packages
(mapped to products in the catalog) provide convenient groups of
features for users, and project selection is an optional activity.
Oomph's simple installer works just to create installations, without
anything special in the workspace. But yes, other alternative designs
are possible...
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: How to import a non eclipse project? [message #1696336 is a reply to message #1696253] |
Mon, 25 May 2015 20:05 |
Aleksandar Toshovski Messages: 78 Registered: December 2011 |
Member |
|
|
Thank you for your help.
It works now. I changed the path and I added the git clone as Predecessor.
<setupTask
xsi:type="setup:ResourceCreationTask"
id="project"
excludedTriggers="BOOTSTRAP"
predecessor="git.clone.gitcentral.erp"
content="......"
targetURL="${git.clone.gitcentral.erp.location|uri}/.project"
encoding="UTF-8">
<description>Create .project file</description>
</setupTask>
[Updated on: Mon, 25 May 2015 21:49] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Dec 26 14:46:11 GMT 2024
Powered by FUDForum. Page generated in 0.04365 seconds
|