Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to mark the generated output folder run by XtextBuilder as derived
How to mark the generated output folder run by XtextBuilder as derived [message #896134] Tue, 17 July 2012 11:38 Go to next message
Latha Shankara is currently offline Latha ShankaraFriend
Messages: 33
Registered: June 2012
Member
Hi,

I am using Xtext and have an application which runs the Xtext builder to generate output files. I am able to mark the files within the output directory as derived, however I want the output directory itself to be marked as derived.

Is there a way to achieve this?

Thanks for any help,
Latha
Re: How to mark the generated output folder run by XtextBuilder as derived [message #896434 is a reply to message #896134] Wed, 18 July 2012 11:45 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3108
Registered: July 2009
Senior Member
Hi Latha,

did you try to use the Properties dialog for that folder? Does it
support to mark the folder as derived?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 17.07.12 13:38, schrieb Latha Shankara:
> Hi,
>
> I am using Xtext and have an application which runs the Xtext builder to
> generate output files. I am able to mark the files within the output
> directory as derived, however I want the output directory itself to be
> marked as derived.
>
> Is there a way to achieve this?
>
> Thanks for any help,
> Latha
Re: How to mark the generated output folder run by XtextBuilder as derived [message #896457 is a reply to message #896434] Wed, 18 July 2012 12:38 Go to previous message
Latha Shankara is currently offline Latha ShankaraFriend
Messages: 33
Registered: June 2012
Member
Hi Sebastian,

Yes, the folder has attributes Derived, Archive, Read only.

As of now, I have subclassed BuilderParticipant class and overridden build() method as below,

@Override
public void build(IBuildContext context, IProgressMonitor monitor) throws CoreException {
final IProject builtProject = context.getBuiltProject();
IFolder outputFolder = builtProject.getFolder("output-folder");
if (!outputFolder.exists()) {
outputFolder.create(true, true, monitor);
}
outputFolder.setDerived(true, monitor);
super.build(context, monitor);
}
Is this right?

However, I also want to make all the folders within output-folder also to be marked derived.

Thanks,
Latha
Previous Topic:Building Xtext 2.3 projects with Maven
Next Topic:Delivery default data together with DSL ?
Goto Forum:
  


Current Time: Mon Sep 21 16:46:10 GMT 2020

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

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

Back to the top