* plugins/project-wizard/druid.c,
[anjuta-git-plugin.git] / plugins / project-wizard / templates / java.wiz
blob34732b327222ed18d65b09de25a6c5e9a35aeb60
1 <project-wizard>
2         <name>Generic java (automake)</name>
3         <description>A generic java project using automake project management</description>
4         <icon>java-logo.png</icon>
5         <category>Java</category>
6 </project-wizard>
8 <page name="basic" _label="Basic information" _description="General Project Information">
9         <property type="string" name="Name" _label="Project Name:" _description="project name" default="java-foobar" summary="yes" mandatory="yes"/>
10         <property type="string" name="MainClass" _label="Main Class:" _description="Main class" default="MainApp" mandatory="yes"/>
11         <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
12         <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
13         <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
14 </page>
16 <page name="options" _label="Project options" _description="Options for project build system">
17         <property type="directory" name="Destination" _label="Destination:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
18         <property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
19                 <item name="GPL" _label="General Public License (GPL)"/>
20                 <item name="LGPL" _label="Lesser General Public License (LGPL)"/>
21                 <item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
22                 <item name="None" _label="No license"/>
23         </property>
24         <property type="hidden" name="NameUpper" default="[+(string-upcase (get "Name"))+]"/>
25         <property type="hidden" name="NameLower" default="[+(string-downcase (get "Name"))+]"/>
26         <property type="hidden" name="NameCUpper" default="[+(string->c-name! (string-upcase (get "Name")))+]"/>
27         <property type="hidden" name="NameCLower" default="[+(string->c-name! (string-downcase (get "Name")))+]"/>
28         <property type="hidden" name="HavePackage" default="0"/>
29         <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds supports for building shared libraries in your project" default="1"/>
30         <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"/>
31         <property type="hidden" name="HaveI18n" _label="Add internationalization:" _description="Adds supports for internationalization so that your project can have translations in different languages" default="0"/>
32         <property type="hidden" name="HavePackageExtra" _label="Configure external packages:" _description="Use pkg-config to add library supports from other packages" default="0"/>
33 </page>
35 [+IF (=(get "HavePackageExtra") "1")+]
36 <page name="packages" _label="Configure external packages" _description="Configure external packages">
37         <property type="string" name="PackageModule2" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'" mandatory="yes"/>
38         <property type="string" name="PackageModule3" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
39         <property type="string" name="PackageModule4" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
40         <property type="string" name="PackageModule5" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'"/>
41 </page>
42 [+ENDIF+]
44 <content>
45         <directory source="terminal" destination="[+Destination+]">
46                 <file source="AUTHORS"/>
47                 <file source="ChangeLog"/>
48                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
49                 <file source="NEWS"/>
50                 <file source="README"/>
51                 <file source="autogen.sh" executable="yes"/>
52                 <file source="cvsignore" destination=".cvsignore"/>
53                 <directory source="src">
54                         <file source="cvsignore" destination=".cvsignore"/>
55                 </directory>
56                 [+IF (=(get "HaveI18n") "1") +]
57                 <directory source="po">
58                         <file source="ChangeLog"/>
59                         <file source="LINGUAS" />
60                         <file source="cvsignore" destination=".cvsignore"/>
61                 </directory>
62                 [+ENDIF+]
63         </directory>
64         <directory source="java" destination="[+Destination+]">
65                 [+IF (=(get "HaveI18n") "1") +]
66                 <directory source="po">
67                         <file source="POTFILES.in"/>
68                 </directory>
69                 [+ENDIF+]
70                 <file destination="[+NameLower+].anjuta" source="project.anjuta"/>
71                 <file source="configure.ac.tpl" destination="configure.ac"/>
72                 <directory source="src">
73                         <file source="main.java" destination="[+MainClass+].java"/>
74                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
75                 </directory>
76         </directory>
77 </content>
79 <action>
80         <run command="sh -c 'cd [+Destination+] &amp;&amp; ./autogen.sh'"/>
81         <open file="[+Destination+]/[+NameLower+].anjuta"/>
82 </action>