Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f9ef5795a69786400f651dcdd63d61701a9c8a4e (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?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,2009 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="HelloWorldCPPAutotoolsProject" label="%HelloWorld.CCtemplate.label" description="%HelloWorld.CCtemplate.description"
		 help="help.html">

	<property-group id="basics" label="%HelloWorld.basics.label" description="%HelloWorld.basics.description" type="PAGES-ONLY" help="help.html">
		<property id="author"
			label="%HelloWorld.author.label"
			description="%HelloWorld.author.description"
			type="input"
			pattern=".*"
			default=""
			hidden="false"
			persist="true"/>
		<property id="copyright"
			label="%HelloWorld.copyright.label"
			description="%HelloWorld.copyright.description"
			type="input"
			pattern=".*"
			default="%HelloWorld.copyright.default"
			hidden="false"
			persist="true"/>
		<property id="message"
			label="%HelloWorld.message.label"
			description="%HelloWorld.message.description"
			type="input"
			pattern=".*"
			default="%HelloWorld.message.default"
			hidden="false"
			persist="true"/>
		<property id="sourceDir"
				label="%HelloWorld.sourceDir.label"
				description="%HelloWorld.sourceDir.description"
				type="input"
				default="%HelloWorld.sourceDir.default"
				pattern="[a-zA-Z0-9]+"
				mandatory="false"
				persist="true"/>
	</property-group>

	<process type="org.eclipse.cdt.autotools.core.NewAutotoolsProject">
		<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>
			<element>
				<simple name="source" value="src/configure.ac.top"/>
				<simple name="target" value="configure.ac"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/AUTHORS"/>
				<simple name="target" value="AUTHORS"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/NEWS"/>
				<simple name="target" value="NEWS"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/README"/>
				<simple name="target" value="README"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/ChangeLog"/>
				<simple name="target" value="ChangeLog"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/COPYING"/>
				<simple name="target" value="COPYING"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/Makefile.am.top"/>
				<simple name="target" value="Makefile.am"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/Makefile.am.src"/>
				<simple name="target" value="$(sourceDir)/Makefile.am"/>
				<simple name="replaceable" value="true"/>
			</element>
		</complex-array>
	</process>
	<process type="org.eclipse.cdt.ui.OpenFiles">
		<simple name="projectName" value="$(projectName)"/>
		<complex-array name="files">
			<element>
				<simple name="target" value="$(sourceDir)/$(projectName).cpp"/>
			</element>
		</complex-array>
	</process>
	

</template>

Back to the top