Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » task for creating directory?
task for creating directory? [message #1709984] Fri, 02 October 2015 13:15 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1815
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

can the ResourceCreationTask be used for creating a directory after
projects are imported in the workspace? I need to create directories in
the imported projects...

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: task for creating directory? [message #1710065 is a reply to message #1709984] Sat, 03 October 2015 15:26 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
Hi,

is creating a dummy file (which is not under version control) an option? As a side effect the directory would be created.


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: task for creating directory? [message #1710105 is a reply to message #1710065] Sun, 04 October 2015 09:28 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1815
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 03/10/2015 17:26, Alexander Nittka wrote:
> Hi,
>
> is creating a dummy file (which is not under version control) an option?
> As a side effect the directory would be created.

mh... I'll try that :)

thank you
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: task for creating directory? [message #1710106 is a reply to message #1710105] Sun, 04 October 2015 09:46 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1815
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 04/10/2015 11:28, Lorenzo Bettini wrote:
> On 03/10/2015 17:26, Alexander Nittka wrote:
>> Hi,
>>
>> is creating a dummy file (which is not under version control) an option?
>> As a side effect the directory would be created.
>
> mh... I'll try that :)
>
> thank you
> Lorenzo
>

Indeed something like that

<setupTask
xsi:type="setup:ResourceCreationTask"
content="empty"
targetURL="/my.project/adirectory/afile.txt"/>

does the trick

since it was not clear to me: you need to refer to projects in the
workspace thus the / does NOT refer to root of the filesystem, but to
the workspace, as it is in a platform resource uri.

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: task for creating directory? [message #1710113 is a reply to message #1710106] Sun, 04 October 2015 13:46 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member
You could have used a file URL for an absolute location, but in general this is not what you would want to do in a setup file. Using variables, you have access e.g. to the installation location or the workspace location, so you can create resources outside a project as well.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Previous Topic:install fails if one update site unreachable, although requirements present in pool
Next Topic:Oomph Installation - Standalone Package
Goto Forum:
  


Current Time: Thu Dec 26 14:33:14 GMT 2024

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

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

Back to the top