Re: programmatically create a Project

Vitezslav Stejskal <[email protected]> Tue, 07 Oct 2003 15:02:32 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
--Boundary_(ID_nT8gCXaRESkL9oSVK3cIsg)
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT



Cliff Draper wrote:

>From: Vitezslav Stejskal <[email protected]>
>Date: Mon, 29 Sep 2003 16:19:41 +0200
>  
>
>>there is a brief description of how to test projects in projects 
>>cookbook - 
>>http://projects.netbeans.org/architecture/howto-dev-projects.html. Is it 
>>what you are looking for?
>>    
>>
>
>It's a little lower level than I was hoping for.  I was hoping that
>all of the data that the wizard gets from the user would be passed
>into some method, and that I could call that method directly without
>the wizard and without trying to create all of the little parts of a
>project myself.  Anything like that planned in the future?
>  
>
Probably not in this extent. This is limited by ways how templates and 
wizards framework work in Netbeans. I think we could have method in the 
projects infra API which will take the list of natures, compute 
transitive closure of natures required to create the project and then 
will create the project with given name and in given folder. You can 
then (independently on the set of templates) create whatever 'type of 
project' you need. Once you open such project you can use APIs (e.g. 
java project api or web project api) to customize it.

Does it sound reasonable?

-vita


--Boundary_(ID_nT8gCXaRESkL9oSVK3cIsg)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
<br>
<br>
Cliff Draper wrote:<br>
<blockquote type="cite"
 cite="[email protected]">
  <pre wrap="">From: Vitezslav Stejskal <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a>
Date: Mon, 29 Sep 2003 16:19:41 +0200
  </pre>
  <blockquote type="cite">
    <pre wrap="">there is a brief description of how to test projects in projects 
cookbook - 
<a class="moz-txt-link-freetext" href="http://projects.netbeans.org/architecture/howto-dev-projects.html">http://projects.netbeans.org/architecture/howto-dev-projects.html</a>. Is it 
what you are looking for?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
It's a little lower level than I was hoping for.  I was hoping that
all of the data that the wizard gets from the user would be passed
into some method, and that I could call that method directly without
the wizard and without trying to create all of the little parts of a
project myself.  Anything like that planned in the future?
  </pre>
</blockquote>
Probably not in this extent. This is limited by ways how templates and wizards
framework work in Netbeans. I think we could have method in the projects
infra API which will take the list of natures, compute transitive closure
of natures required to create the project and then will create the project
with given name and in given folder. You can then (independently on the set
of templates) create whatever 'type of project' you need. Once you open such
project you can use APIs (e.g. java project api or web project api) to customize
it.<br>
<br>
Does it sound reasonable?<br>
<br>
-vita<br>
<br>
</body>
</html>

--Boundary_(ID_nT8gCXaRESkL9oSVK3cIsg)--