Skip to main content



      Home
Home » Newcomers » Newcomers » Disable "Build Automatically"
Disable "Build Automatically" [message #72774] Thu, 02 June 2005 15:07 Go to next message
Eclipse UserFriend
Originally posted by: lshah.vitria.com

How can I disable the "Build Automatically" in code?
I have create a new project type and have a custom nature associated
with it. Now how can I disable "Build Automatically"?

Thanks,
Lokesh
Re: Disable "Build Automatically" [message #72785 is a reply to message #72774] Thu, 02 June 2005 15:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lshah.vitria.com

I found one way:

IWorkspace workspace = project.getWorkspace();
IWorkspaceDescription wdesc = workspace.getDescription();
wdesc.setAutoBuilding(false);
workspace.setDescription(wdesc);

Is this the right way? Can I disable it on per project basis?

~Lokesh

Lokesh Shah wrote:
> How can I disable the "Build Automatically" in code?
> I have create a new project type and have a custom nature associated
> with it. Now how can I disable "Build Automatically"?
>
> Thanks,
> Lokesh
Re: Disable "Build Automatically" [message #73306 is a reply to message #72785] Fri, 03 June 2005 16:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

IProjectDescription description = project.getDescription();
ICommand[] buildSpec = description.getBuildSpec();
for (int i = 0; i < buildSpec.length; i++)
//if this build spec is your builder...
buildSpec[i].setBuilding(IncrementalProjectBuilder.AUTO_BUIL D, false);
description.setBuildSpec(buildSpec);
project.setDescription(description);
--

Lokesh Shah wrote:
> I found one way:
>
> IWorkspace workspace = project.getWorkspace();
> IWorkspaceDescription wdesc = workspace.getDescription();
> wdesc.setAutoBuilding(false);
> workspace.setDescription(wdesc);
>
> Is this the right way? Can I disable it on per project basis?
>
> ~Lokesh
>
> Lokesh Shah wrote:
>
>> How can I disable the "Build Automatically" in code?
>> I have create a new project type and have a custom nature associated
>> with it. Now how can I disable "Build Automatically"?
>>
>> Thanks,
>> Lokesh
Re: Disable "Build Automatically" [message #74668 is a reply to message #73306] Mon, 06 June 2005 16:26 Go to previous message
Eclipse UserFriend
Originally posted by: lshah.vitria.com

Thanks John. This is a better way.

~Lokesh

John Arthorne wrote:
> IProjectDescription description = project.getDescription();
> ICommand[] buildSpec = description.getBuildSpec();
> for (int i = 0; i < buildSpec.length; i++)
> //if this build spec is your builder...
> buildSpec[i].setBuilding(IncrementalProjectBuilder.AUTO_BUIL D, false);
> description.setBuildSpec(buildSpec);
> project.setDescription(description);
> --
>
> Lokesh Shah wrote:
>
>> I found one way:
>>
>> IWorkspace workspace = project.getWorkspace();
>> IWorkspaceDescription wdesc = workspace.getDescription();
>> wdesc.setAutoBuilding(false);
>> workspace.setDescription(wdesc);
>>
>> Is this the right way? Can I disable it on per project basis?
>>
>> ~Lokesh
>>
>> Lokesh Shah wrote:
>>
>>> How can I disable the "Build Automatically" in code?
>>> I have create a new project type and have a custom nature associated
>>> with it. Now how can I disable "Build Automatically"?
>>>
>>> Thanks,
>>> Lokesh
Previous Topic:External ant classpath
Next Topic:Importing project imports too many files
Goto Forum:
  


Current Time: Wed Jul 23 17:27:57 EDT 2025

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

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

Back to the top