diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch) | |
tree | acaf47eb0fa12142d3896416a69e74cbf5a72242 /languages/java/app_templates/javahello | |
download | tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/java/app_templates/javahello')
-rw-r--r-- | languages/java/app_templates/javahello/.kdev_ignore | 0 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/Main.java | 7 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/Makefile.am | 16 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/build.xml | 37 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/javahello | 11 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/javahello.filelist | 2 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/javahello.kdevelop | 69 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/javahello.kdevtemplate | 124 | ||||
-rw-r--r-- | languages/java/app_templates/javahello/javahello.png | bin | 0 -> 483 bytes |
9 files changed, 266 insertions, 0 deletions
diff --git a/languages/java/app_templates/javahello/.kdev_ignore b/languages/java/app_templates/javahello/.kdev_ignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/languages/java/app_templates/javahello/.kdev_ignore diff --git a/languages/java/app_templates/javahello/Main.java b/languages/java/app_templates/javahello/Main.java new file mode 100644 index 00000000..dc757fe5 --- /dev/null +++ b/languages/java/app_templates/javahello/Main.java @@ -0,0 +1,7 @@ + +class Main{ + + public static void main( String[] args ){ + System.out.println( "Hello, world!" ); + } +} diff --git a/languages/java/app_templates/javahello/Makefile.am b/languages/java/app_templates/javahello/Makefile.am new file mode 100644 index 00000000..8551a6ac --- /dev/null +++ b/languages/java/app_templates/javahello/Makefile.am @@ -0,0 +1,16 @@ +dataFiles = Main.java build.xml javahello.filelist javahello.kdevelop +templateName= javahello + +### no need to change below: +template_DATA = $(templateName).kdevtemplate +templatedir = ${appwizarddatadir}/templates + +appwizarddatadir = ${kde_datadir}/kdevappwizard +$(templateName).tar.gz: ${dataFiles} + $(TAR) -cf $(templateName).tar -C $(srcdir) ${dataFiles} + $(GZIP_COMMAND) -f9 $(templateName).tar + +archivedir = ${appwizarddatadir} +archive_DATA = $(templateName).tar.gz ${templateName}.png + +CLEANFILES = *.tar.gz
\ No newline at end of file diff --git a/languages/java/app_templates/javahello/build.xml b/languages/java/app_templates/javahello/build.xml new file mode 100644 index 00000000..27b6046d --- /dev/null +++ b/languages/java/app_templates/javahello/build.xml @@ -0,0 +1,37 @@ +<project name="%{APPNAME}" default="dist" basedir="."> + <description> + hello application + </description> + <!-- set global properties for this build --> + <property name="src" location="." /> + <property name="build" location="build" /> + <property name="dist" location="dist" /> + + <target name="init"> + <!-- Create the time stamp --> + <tstamp/> + <!-- Create the build directory structure used by compile --> + <mkdir dir="${build}"/> + </target> + + <target name="compile" depends="init" + description="compile the source " > + <!-- Compile the java code from ${src} into ${build} --> + <javac srcdir="${src}" destdir="${build}"/> + </target> + + <target name="dist" depends="compile" + description="generate the distribution" > + <!-- Create the distribution directory --> + <mkdir dir="${dist}/lib"/> + + <jar jarfile="${dist}/lib/%{APPNAMELC}.jar" basedir="${build}"/> + </target> + + <target name="clean" + description="clean up" > + <!-- Delete the ${build} and ${dist} directory trees --> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/languages/java/app_templates/javahello/javahello b/languages/java/app_templates/javahello/javahello new file mode 100644 index 00000000..a2225ce5 --- /dev/null +++ b/languages/java/app_templates/javahello/javahello @@ -0,0 +1,11 @@ +# Java application +[General] +Name=Application +Name[fr]=Une application JAVA / Ant +Icon=qmakeapp.png +Category=Java/Ant project +Category[fr]=Java/Ant +Comment=Generate a Java application +Comment[fr]=Gnre une application dans le language JAVA en utilisant Ant +FileTemplates=java,JavaStyle +ShowFilesAfterGeneration=Main.java diff --git a/languages/java/app_templates/javahello/javahello.filelist b/languages/java/app_templates/javahello/javahello.filelist new file mode 100644 index 00000000..97da44be --- /dev/null +++ b/languages/java/app_templates/javahello/javahello.filelist @@ -0,0 +1,2 @@ +# KDevelop Custom Project File List +Main.java diff --git a/languages/java/app_templates/javahello/javahello.kdevelop b/languages/java/app_templates/javahello/javahello.kdevelop new file mode 100644 index 00000000..c3eb6898 --- /dev/null +++ b/languages/java/app_templates/javahello/javahello.kdevelop @@ -0,0 +1,69 @@ +<?xml version="1.0"?> +<kdevelop> + <general> + <author>%{AUTHOR}</author> + <email>%{EMAIL}</email> + <version>%{VERSION}</version> + <projectmanagement>KDevAntProject</projectmanagement> + <primarylanguage>Java</primarylanguage> + <ignoreparts> + <part>KDevDebugger</part> + </ignoreparts> + </general> + <kdevcustomproject> + <build> + <buildtool>ant</buildtool> + </build> + </kdevcustomproject> + <kdevdoctreeview> + <ignoretocs> + <toc>ada</toc> + <toc>ada_bugs_gcc</toc> + <toc>bash</toc> + <toc>bash_bugs</toc> + <toc>c++_bugs_gcc</toc> + <toc>clanlib</toc> + <toc>fortran_bugs_gcc</toc> + <toc>gnome1</toc> + <toc>gnustep</toc> + <toc>gtk</toc> + <toc>gtk_bugs</toc> + <toc>haskell</toc> + <toc>haskell_bugs_ghc</toc> + <toc>kde2book</toc> + <toc>libc</toc> + <toc>libstdc++</toc> + <toc>opengl</toc> + <toc>pascal_bugs_fp</toc> + <toc>php</toc> + <toc>php_bugs</toc> + <toc>perl</toc> + <toc>perl_bugs</toc> + <toc>python</toc> + <toc>python_bugs</toc> + <toc>qt-kdev3</toc> + <toc>ruby</toc> + <toc>ruby_bugs</toc> + <toc>sdl</toc> + <toc>stl</toc> + <toc>sw</toc> + <toc>wxwidgets_bugs</toc> + </ignoretocs> + <ignoreqt_xml> + <toc>Guide to the Qt Translation Tools</toc> + <toc>Qt Assistant Manual</toc> + <toc>Qt Designer Manual</toc> + <toc>Qt Reference Documentation</toc> + <toc>qmake User Guide</toc> + </ignoreqt_xml> + <ignoredoxygen> + <toc>KDE Libraries (Doxygen)</toc> + </ignoredoxygen> + </kdevdoctreeview> + <kdevfileview> + <tree> + <hidenonprojectfiles>false</hidenonprojectfiles> + <hidepatterns>*.o,*.lo,CVS</hidepatterns> + </tree> + </kdevfileview> +</kdevelop> diff --git a/languages/java/app_templates/javahello/javahello.kdevtemplate b/languages/java/app_templates/javahello/javahello.kdevtemplate new file mode 100644 index 00000000..a7427704 --- /dev/null +++ b/languages/java/app_templates/javahello/javahello.kdevtemplate @@ -0,0 +1,124 @@ +# KDE Config File +[General] +Name=Application +Name[br]=Arload +Name[ca]=Aplicació +Name[cy]=Cymhwysiad +Name[da]=Program +Name[de]=Anwendung +Name[el]=Εφαρμογή +Name[es]=Aplicación +Name[et]=Rakendus +Name[eu]=Aplikazioa +Name[fa]=کاربرد +Name[ga]=Feidhmchlár +Name[gl]=Aplicación +Name[hu]=Alkalmazások +Name[it]=Applicazione +Name[ja]=アプリケーション +Name[lt]=Programa +Name[ms]=Aplikasi +Name[nds]=Programm +Name[ne]=अनुप्रयोग +Name[nl]=Toepassing +Name[pl]=Program +Name[pt]=Aplicação +Name[pt_BR]=Aplicativo +Name[ru]=Приложение +Name[rw]=Porogaramu +Name[sk]=Aplikácia +Name[sl]=Program +Name[sr]=Програм +Name[sr@Latn]=Program +Name[sv]=Program +Name[tr]=Uygulama +Name[zh_CN]=应用程序 +Name[zh_TW]=應用程式 +Icon=qmakeapp.png +Category=Java/Ant project +Category[fr]=Java/Ant +Comment=Generate a Java application +Comment[ca]=Genera una aplicació Java +Comment[da]=Generér et Java-program +Comment[de]=Erstellt eine Java-Anwendung +Comment[el]=Δημιουργία μιας εφαρμογής Java +Comment[es]=Genera una aplicación en Java +Comment[et]=Java rakenduse loomine +Comment[eu]=Sortu Java aplikazio bat +Comment[fa]=یک کاربرد جاوا تولید میکند +Comment[fr]=Génère une application Java +Comment[ga]=Cruthaigh feidhmchlár Java +Comment[gl]=Xera unha aplicación Java +Comment[hu]=Létrehoz egy Java-alkalmazást +Comment[it]=Genera un'applicazione Java +Comment[ja]= Java アプリケーションを作成 +Comment[nds]=Stellt en Java-Programm op +Comment[ne]=जाभा अनुप्रयोग उत्पन्न गर्नुहोस् +Comment[nl]=Genereer een Java-toepassing +Comment[pl]=Generuj program w Javie +Comment[pt]=Gera uma aplicação em Java +Comment[pt_BR]=Gera uma aplicação em Java +Comment[ru]=Создание приложения Java +Comment[sk]=Vygeneruje Java aplikáciu +Comment[sr]=Прави Java програм +Comment[sr@Latn]=Pravi Java program +Comment[sv]=Skapa ett Java-program +Comment[tr]=Bir Java uygulaması yarat +Comment[zh_CN]=生成一个 Java 应用程序 +Comment[zh_TW]=產生 Java 應用程式 +FileTemplates=java,JavaStyle +ShowFilesAfterGeneration=%{dest}/Main.java +Archive=javahello.tar.gz + +[FILE1] +Type=install +EscapeXML=true +Source=%{src}/javahello.kdevelop +Dest=%{dest}/%{APPNAMELC}.kdevelop + +[FILE2] +Type=install +Source=%{src}/javahello.filelist +Dest=%{dest}/%{APPNAMELC}.filelist + +[FILE3] +Type=install +Source=%{src}/Main.java +Dest=%{dest}/Main.java + +[FILE4] +Type=install +Source=%{src}/build.xml +Dest=%{dest}/build.xml + +[msg] +Type=message +Comment=A JAVA application was created in %{dest} +Comment[ca]=Una aplicació JAVA ha estat creada en %{dest} +Comment[da]=Et JAVA-program blev oprettet i %{dest} +Comment[de]=Eine Java-Anwendung wurde in %{dest} erstellt. +Comment[el]=Μια εφαρμογή JAVA δημιουργήθηκε στο %{dest} +Comment[es]=Una aplicación en Java ha sido creada en %{dest} +Comment[et]=Java rakendus loodi asukohta %{dest} +Comment[eu]=JAVA aplikazio bat sortu da hemen: %{dest} +Comment[fa]=یک کاربرد جاوا در %{dest} ایجاد شد +Comment[fr]=Une application Java a été créée dans %{dest} +Comment[ga]=Cruthaíodh feidhmchlár JAVA i %{dest} +Comment[gl]=Creouse una aplicación JAVA en %{dest} +Comment[hu]=Létrejött egy Java-alkalmazás itt: %{dest} +Comment[it]=È stata creata un'applicazione Java in %{dest} +Comment[ja]=JAVA アプリケーションを %{dest} に作成しました +Comment[nds]=In %{dest} wöör en JAVA-Programm opstellt +Comment[ne]= जाभा अनुप्रयोग %{dest} मा सिर्जना गरियो +Comment[nl]=Een Java-toepassing is aangemaakt in %{dest} +Comment[pl]=Program w Javie został utworzony w %{dest} +Comment[pt]=Foi criada uma aplicação em Java em %{dest} +Comment[pt_BR]=Foi criada uma aplicação em Java em %{dest} +Comment[ru]=Приложение Java создано в %{dest} +Comment[sk]=Java aplikácia bola vytvorená v %{dest} +Comment[sr]=Java програм је направљен у %{dest} +Comment[sr@Latn]=Java program je napravljen u %{dest} +Comment[sv]=Ett Java-program skapades i %{dest} +Comment[tr]=Bir JAVA uygulaması %{dest} içinde yaratıldı. +Comment[zh_CN]=在 %{dest} 创建了一个 Java 应用程序 +Comment[zh_TW]=一個 Java 應用程式已建立於 %{dest} diff --git a/languages/java/app_templates/javahello/javahello.png b/languages/java/app_templates/javahello/javahello.png Binary files differnew file mode 100644 index 00000000..840a953c --- /dev/null +++ b/languages/java/app_templates/javahello/javahello.png |