Skip to main content



      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 07:38 Go to next message
Eclipse UserFriend
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 07:45 Go to previous messageGo to next message
Eclipse UserFriend
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 08:38 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 01:48:26 EDT 2025

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

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

Back to the top