build: add built .plugin files to CLEANFILES
[anjuta.git] / plugins / project-wizard / templates / java.wiz.in
blobb6e81ef444311dac53be6cf82afacc784110ee62
1 <project-template>
2         <project-wizard>
3                 <_name>Generic java (automake)</_name>
4                 <_description>A generic java project using automake project management</_description>
5                 <icon>java-logo.png</icon>
6                 <category>Java</category>
7                 <order>1000</order>
8                 <required-program>automake</required-program>
9                 <required-program>autoconf</required-program>
10                 <required-program>make</required-program>
11                 <required-program>java</required-program>
12         </project-wizard>
13         
14         <page name="basic" _label="Basic information" _description="General Project Information">
15                 <property type="string" name="Name" _label="Project Name:" _description="project name" default="java-foobar" summary="yes" restriction="filename" mandatory="yes"/>
16                 <property type="string" name="MainClass" _label="Main Class:" _description="Main class" default="MainApp" mandatory="yes"/>
17                 <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
18                 <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
19                 <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
20         </page>
21         
22         <page name="options" _label="Project options" _description="Options for project build system">
23                 <property type="directory" name="Destination" _label="Destination:" _description="" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' mandatory="yes" exist="no" summary="yes"/>
24                 [+INCLUDE "licenses.tpl"+]
25                 <property type="hidden" name="NameUpper" default='[+(string-upcase (get "Name"))+]'/>
26                 <property type="hidden" name="NameLower" default='[+(string-downcase (get "Name"))+]'/>
27                 <property type="hidden" name="NameCUpper" default='[+(string-append (if (~~* (get "Name") "[0-9]") "_" "") (string->c-name! (string-substitute (string-upcase (get "Name")) " " "_")))+]'/>
28                 <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
29                 <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
30                 <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds support for building shared libraries in your project" default="1"/>
31                 <property type="hidden" name="HaveGtkDoc" _label="Add gtk-doc system:" _description="gtk-doc is used to compile API documentations for GObject based classes" default="0"/>
32                 <property type="hidden" name="HaveI18n" _label="Add internationalization:" _description="Adds support for internationalization so that your project can have translations in different languages" default="0"/>
33                 <property type="hidden" name="HavePackageExtra" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
34         </page>
36 [+IF (=(get "HavePackageExtra") "1")+]
37         <page name="packages" _label="Configure external packages" _description="Configure external packages">
38                 <property type="package" name="PackageModule2" _label="Required Packages:" _description="Check the packages that your project requires" mandatory="yes"/>
39         </page>
40 [+ENDIF+]       
42         <content>
43                 <directory source="terminal" destination="[+Destination+]">
44                         <file source="AUTHORS"/>
45                         <file source="ChangeLog"/>
46                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
47                         <file source="NEWS"/>
48                         <file source="README"/>
49                         <file source="autogen.sh" executable="yes"/>
50                         [+IF (=(get "HaveI18n") "1") +]
51                         <directory source="po">
52                                 <file source="ChangeLog"/>
53                                 <file source="LINGUAS" />
54                         </directory>
55                         [+ENDIF+]
56                 </directory>
57                 <directory source="java" destination="[+Destination+]">
58                         [+IF (=(get "HaveI18n") "1") +]
59                         <directory source="po">
60                                 <file source="POTFILES.in"/>
61                         </directory>
62                         [+ENDIF+]
63                         <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
64                         <file source="configure.ac.tpl" destination="configure.ac"/>
65                         <directory source="src">
66                                 <file source="main.java" destination="[+MainClass+].java"/>
67                                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
68                         </directory>
69                 </directory>
70                 <directory source="licenses" destination="[+Destination+]">
71                         <file source="[+License+].txt" destination="COPYING"/>  
72                 </directory>
73         </content>
74         
75         <action>
76                 <open file="[+Destination+]/[+NameHLower+].anjuta"/>
77         </action>
78 </project-template>