New Project Type/Template

  • From: "Delphi03" < >
  • To:
  • Subject: New Project Type/Template
  • Date: Sun, 26 Feb 2012 04:38:46 +0000

I've been trying to create a new C/C++ Project Template while following the 
directions here: 
http://platform.netbeans.org/tutorials/nbm-projectsamples.html

I currently use NetBeans for remote development and create a fair amount of 
projects on a daily basis, covering C and C++ as well as 32bit and 64bit, 
including other configuration changes from the 'default' depending on which.

What I'd like to be able to do is create new project templates that already 
have these already set, so it's just a matter of selecting the appropriate 
project type and start.

I would like to have them stored in the same folder as all of the other C/C++ 
templates, but trying to set the Category to "C/C++" I get the error that the 
"Category is Malformed".

Putting a placeholder value there and trying to modify it in the generated 
java file like this:


Code:
@TemplateRegistration(folder = "Project/C/C++", displayName = 
"#c_32bit_template_displayName", description = 
"c_32bit_templateDescription.html", iconBase = 
"c_32bit_module/c_32bit_template.png", content = 
"c_32bit_templateProject.zip")



Ends up treating the '/' as a path separator, generating a folder structure 
of:

Project > C > C++ > Project Template

While it is not absolutely necessary to put my custom project templates in 
this folder, I would prefer to do so and thought I'd check here before giving 
up and putting them in their own folder.

Any help would be appreciated.






New Project Type/Template

Delphi03 02/26/2012

Re: New Project Type/Template

Vladimir Voskresensky 02/26/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close