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>
8 <required-program>automake</required-program>
9 <required-program>autoconf</required-program>
10 <required-program>make</required-program>
11 <required-program>java</required-program>
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"/>
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"/>
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"/>
43 <directory source="terminal" destination="[+Destination+]">
44 <file source="AUTHORS"/>
45 <file source="ChangeLog"/>
46 <file source="Makefile.am.tpl" destination="Makefile.am"/>
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" />
57 <directory source="java" destination="[+Destination+]">
58 [+IF (=(get "HaveI18n") "1") +]
59 <directory source="po">
60 <file source="POTFILES.in"/>
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"/>
70 <directory source="licenses" destination="[+Destination+]">
71 <file source="[+License+].txt" destination="COPYING"/>
76 <open file="[+Destination+]/[+NameHLower+].anjuta"/>