Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to import .epf file for SVN checkout(Import an .epf file during an Oomph! eclipse installation, to check out an svn repository)
How to import .epf file for SVN checkout [message #1740620] Tue, 16 August 2016 11:44 Go to next message
David Israel is currently offline David IsraelFriend
Messages: 3
Registered: August 2016
Junior Member
Hello,

I'm very new in the eclipse/java context, and I want to configure an eclipse installation by Oomph! setup files (product and project setup files).

My goal is to install an eclipse IDE with an base product.setup installation, and an optional project specific installation. After the installation, the developer should be able to start working, without configuring his IDE, checking out code from SVN manually - and so on.

The base installation works very fine, all required plugins are installed.

The second step is to install project specific preferences, including SVN checkout, but I have no idea how I could solve this issue. If I export my preferences from my own eclipse into a .epf file, I have seen, that there is a lot of information in it - in addition to this, I have read that an SVN checkout is possible, if the .epf file is imported during the eclipse installation.

The first try was to define a 'Project Set Import' task within my product.setup file - maybe I configured this item not correctly?

project.setup setupTask:
<setupTask
        xsi:type="projectset:ProjectSetImportTask"
        predecessor="//@setupTasks.5 //@setupTasks.4 //@setupTasks.6"
        successor="//@setupTasks.8"
        filter=""
        uRL="D:\blabla\bla\setup\myPrefsWithSVNRepo.epf">
      <description>File location of the *.epf preferences file</description>
    </setupTask>


repo from .epf file snippet: (I have removed ids and repository-folders)
/instance/org.eclipse.team.svn.core/repositories/bla-id=bla-id;http\://repo/repo/trunk;http\://repo/repo/trunk;branches;tags;trunk;true;some-guid;http\://repo/repo/trunk;;false;;;0


Maybe I am on the wrong track?


FYI:

    - On the operating system, there is TortoiseSVN installed, the eclipse installation includes the SVN Plugin svnKit18
    - I use the free oomph plugins in eclipse to configure the setup files in the eclipse IDE


It will be great, if I could import these preferences!
One of the open points is the CheckStyle configuration - maybe it will be done by the .epf import?
The last open point is to set the target .tpd file for the project. Smile (maybe also done by the .epf import?)


Thank you in advance for your help!
Re: How to import .epf file for SVN checkout [message #1742047 is a reply to message #1740620] Tue, 16 August 2016 13:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
David,

Comments below.


On 16.08.2016 14:50, David Israel wrote:
> Hello,
>
> I'm very new in the eclipse/java context, and I want to configure an
> eclipse installation by Oomph! setup files (product and project setup
> files).
>
> My goal is to install an eclipse IDE with an base product.setup
> installation, and an optional project specific installation. After the
> installation, the developer should be able to start working, without
> configuring his IDE, checking out code from SVN manually - and so on.
>
> The base installation works very fine, all required plugins are
> installed.
>
> The second step is to install project specific preferences, including
> SVN checkout, but I have no idea how I could solve this issue. If I
> export my preferences from my own eclipse into a .epf file, I have
> seen, that there is a lot of information in it - in addition to this,
> I have read that an SVN checkout is possible, if the .epf file is
> imported during the eclipse installation.
It is better, in my opinion, to use Preference Tasks, not to import a
*.epf. The setup editor has two convenient tool bar buttons to help
with the authoring. A Capture Preferences button where you can look at
the current preferences of your IDE and selectively convert them to
preference tasks. There's also an Import Preference button where you
can import a *.epf and selectively convert them to preference tasks.
This would give you far better and more fine grained control. Note that
there is also a Record Preference button so you can record changes you
make into the setup file you have open.
>
> The first try was to define a 'Project Set Import' task within my
> product.setup file - maybe I configured this item not correctly?
>
> project.setup setupTask:
>
> <setupTask
> xsi:type="projectset:ProjectSetImportTask"
> predecessor="//@setupTasks.5 //@setupTasks.4 //@setupTasks.6"
> successor="//@setupTasks.8"
> filter=""
> uRL="D:\blabla\bla\setup\myPrefsWithSVNRepo.epf">
This is not a URL, it's a file system path. It should be
file:/D:/blabla/bla/setup/myPrefsWithSVNRepo.epf. But how do you plan
to ensure that this resource is available at this fixed location for all
developers?
> <description>File location of the *.epf preferences file</description>
It looks like you're trying to point to a preferences file when you
should be pointing at a project set file. Importing the project set
file will probably set the SVN repository preference as a side effect...
> </setupTask>
>
>
> repo from .epf file snippet: (I have removed ids and repository-folders)
> /instance/org.eclipse.team.svn.core/repositories/bla-id=bla-id;http\://repo/repo/trunk;http\://repo/repo/trunk;branches;tags;trunk;true;some-guid;http\://repo/repo/trunk;;false;;;0
>
>
> Maybe I am on the wrong track?
Kind of.
>
>
> FYI:
> - On the operating system, there is TortoiseSVN installed, the eclipse
> installation includes the SVN Plugin svnKit18
> - I use the free oomph plugins in eclipse to configure the setup files
> in the eclipse IDE
>
>
> It will be great, if I could import these preferences!
No, it's better to use preference tasks.
> One of the open points is the CheckStyle configuration - maybe it will
> be done by the .epf import?
You can look at how other people do this. E.g.,

<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCreationTask
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
content="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?>&#xA;&#xA;&lt;checkstyle-configurations
file-format-version=&quot;5.0.0&quot;
default-check-configuration=&quot;Code Recommenders Checkstyle
Configuration&quot;>&#xA; &lt;check-configuration name=&quot;Code
Recommenders Checkstyle Configuration&quot;
location=&quot;/coding-conventions/resources/checkstyle/config.xml&quot;
type=&quot;project&quot; description=&quot;&quot;>&#xA;
&lt;additional-data name=&quot;protect-config-file&quot;
value=&quot;false&quot;/>&#xA;
&lt;/check-configuration>&#xA;&lt;/checkstyle-configurations>&#xA;"
targetURL="${workspace.location|uri}/.metadata/.plugins/net.sf.eclipsecs.core/checkstyle-config.xml"/>

I.e., other projects appear to copy what they want in the
checkstyle-config.xml to the right place in the workspace metadata.
> The last open point is to set the target .tpd file for the project. :)
> (maybe also done by the .epf import?)
A Target Platform task can be used to set the active target platform
(based on the its name). Far better would be to use a Targlet Task,
because it reuses the bundle pool. But you might not want to duplicate
the information you have in your *.tpd. Do you use the .target file for
your build? Even if you do, Oomph can generate a .target file while
resolving the targlet... That's what we use for Oomph's own setup to
produce the .target file that's needed for our Maven/Tycho build.

>
>
> Thank you in advance for your help!


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to import .epf file for SVN checkout [message #1742110 is a reply to message #1742047] Wed, 31 August 2016 14:00 Go to previous messageGo to next message
David Israel is currently offline David IsraelFriend
Messages: 3
Registered: August 2016
Junior Member
Thanks for your answer, Ed.


Quote:
It is better, in my opinion, to use Preference Tasks, not to import a
*.epf. The setup editor has two convenient tool bar buttons to help
with the authoring. A Capture Preferences button where you can look at
the current preferences of your IDE and selectively convert them to
preference tasks. There's also an Import Preference button where you
can import a *.epf and selectively convert them to preference tasks.
This would give you far better and more fine grained control. Note that
there is also a Record Preference button so you can record changes you
make into the setup file you have open.



Did not found this buttons Confused
Which plugins should be installed?

Quote:
> <setupTask
> xsi:type="projectset:ProjectSetImportTask"
> predecessor="//@setupTasks.5 //@setupTasks.4 //@setupTasks.6"
> successor="//@setupTasks.8"
> filter=""
> uRL="D:\blabla\bla\setup\myPrefsWithSVNRepo.epf">
This is not a URL, it's a file system path. It should be
file:/D:/blabla/bla/setup/myPrefsWithSVNRepo.epf. But how do you plan
to ensure that this resource is available at this fixed location for all
developers?


You are right - I have tried this setup task with a local file. Indeed a real url makes more sense, but this also doesn't work (with an .epf file) - it was only an example. But you have explained, that this doesn't work, because it is the false file type. Smile

Re: How to import .epf file for SVN checkout [message #1742235 is a reply to message #1742110] Thu, 01 September 2016 04:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
When you open the Setup Editor, the main toolbar will have the editor's toolbar contributions like this:

index.php/fa/26947/0/

Let's see if this forum composer let's me actually show the image inline above...



Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to import .epf file for SVN checkout [message #1742246 is a reply to message #1742235] Thu, 01 September 2016 06:13 Go to previous message
David Israel is currently offline David IsraelFriend
Messages: 3
Registered: August 2016
Junior Member
Ah! Very nice Smile

Thank you very much! You have helped me a lot!
I see, Oomph is very cool.

Sorry that I have asked so much 'noob' questions Smile

Kind Regards,
David
Previous Topic:TargetDefinitionGenerator output missing features and extra locations
Next Topic:How to avoid prompt on exit
Goto Forum:
  


Current Time: Tue Apr 16 14:58:27 GMT 2024

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

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

Back to the top