Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 86ab82bd6111f3c15eb20be22ba3d3431063987b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="ISO-8859-1"?>
<template type="ProjTempl" version="1.0" supplier="Eclipse.org" revision="1.0" author="Bala Torati (Symbian)"
		copyright="Copyright (c) 2007 Symbian Software Limited and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available athttp://www.eclipse.org/legal/epl-v10.html"
		id="HelloWorldCCProject" label="Hello World C++ Example" description="A skeletal Managed C++ Hello World project. Creates a folder for sources and another for include."
		 help="help.html">
	<property-group id="basics" label="Basic Settings" description="Basic properties of a project" type="PAGES-ONLY" help="help.html">
		<property id="author"
			label="Author"
			description="Name of the author"
			type="input"
			pattern=".*"
			default=""
			hidden="false"
			persist="true"/>
		<property id="copyright"
			label="Copyright notice"
			description="Your copyright notice"
			type="input"
			pattern=".*"
			default="Your copyright notice"
			hidden="false"
			persist="true"/>
		<property id="message"
			label="Hello world greeting"
			description="Your hello world greeting message"
			type="input"
			pattern=".*"
			default="Hello World!!!"
			hidden="false"
			persist="true"/>
		<property id="sourceDir"
				label="Source"
				description="Directory for hello world project source files"
				type="input"
				default="src"
				pattern="[a-zA-Z0-9]+"
				mandatory="true"
				persist="true"/>
	</property-group>
	
	<process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
		<simple name="name" value="$(projectName)" /> 
		<simple name="artifactExtension" value="exe" /> 
		<simple name="isCProject" value="false" /> 
	</process>

	<process type="org.eclipse.cdt.core.CreateSourceFolder">
		<simple name="projectName" value="$(projectName)"/>
		<simple name="path" value="$(sourceDir)"/>
	</process>

	<process type="org.eclipse.cdt.core.AddFiles">
		<simple name="projectName" value="$(projectName)"/>
		<complex-array name="files">
			<element>
				<simple name="source" value="src/Basename.cpp"/>
				<simple name="target" value="$(sourceDir)/$(projectName).cpp"/>
				<simple name="replaceable" value="true"/>
			</element>
		</complex-array>
	</process>

</template>

Back to the top