diff --git a/jdee/.cvsignore b/jdee/.cvsignore new file mode 100644 index 00000000..e5e33942 --- /dev/null +++ b/jdee/.cvsignore @@ -0,0 +1,3 @@ +target +velocity.log +maven.log diff --git a/jdee/plugin.jelly b/jdee/plugin.jelly new file mode 100644 index 00000000..76b67331 --- /dev/null +++ b/jdee/plugin.jelly @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + Generating file ${projectFile} ... + + +(jde-project-file-version "1.0") +(jde-set-variables + (quote (jde-project-name "${pom.artifactId}")) + (quote (jde-project-file-name "${maven.jdee.project.file}")) + + (quote (jde-sourcepath (quote ("./${pom.build.sourceDirectory}")))) + + + (quote (jde-compile-option-directory "./target/classes")) + (quote (jde-javadoc-gen-destination-directory "./target/docs/apidocs")) + (quote (jde-project-file-name "${projectFile}")) + (quote (jde-javadoc-gen-window-title "${pom.name} - ${pom.organization} (${pom.inceptionYear})")) + + + + (quote (jde-run-application-class "${mainClass}")) + + +(quote (jde-global-classpath (quote ("./target/classes" + +"./${pom.build.unitTestSourceDirectory}" + + + +"${maven.repo.local}${lib.urlPath}" + +))))) + + + Now reload the created project file (${projectFile}) in JDEE + + + diff --git a/jdee/plugin.properties b/jdee/plugin.properties new file mode 100644 index 00000000..fd158b5c --- /dev/null +++ b/jdee/plugin.properties @@ -0,0 +1,11 @@ +# ------------------------------------------------------------------- +# P L U G I N P R O P E R I E S +# ------------------------------------------------------------------- +# JDEE plugin. +# ------------------------------------------------------------------- + +# +#maven.jdee.application.class = de.mydomain.mypackage.Main + +# the name of the generated project file +#maven.jdee.project.file = prj.el diff --git a/jdee/project.properties b/jdee/project.properties new file mode 100644 index 00000000..df6f93f4 --- /dev/null +++ b/jdee/project.properties @@ -0,0 +1,7 @@ +# ------------------------------------------------------------------- +# P R O J E C T P R O P E R T I E S +# ------------------------------------------------------------------- +maven.xdoc.date=left +maven.xdoc.version=${pom.currentVersion} +maven.license.licenseFile=${basedir}/../../../LICENSE.txt + diff --git a/jdee/project.xml b/jdee/project.xml new file mode 100644 index 00000000..a72e6d70 --- /dev/null +++ b/jdee/project.xml @@ -0,0 +1,43 @@ + + + + ${basedir}/../project.xml + 3 + maven-jdee-plugin + Maven JDEE Plug-in + 1.0-beta-1 + + A plugin to create a project file to be used within the + Java Developement Enviroment for Emacw + + JDEE Plugin for Maven + http://maven.apache.org/reference/plugins/jdee/ + + /www/maven.apache.org/reference/plugins/jdee/ + + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/jdee/ + http://cvs.apache.org/viewcvs/maven/src/plugins-build/jdee/ + + + + + Juergen Heidak + jh + Juergen@Heidak.de + CURSOR Software AG + + Java Developer + + + + + + maven-changes-plugin + maven-changelog-plugin + maven-developer-activity-plugin + maven-file-activity-plugin + maven-license-plugin + + + diff --git a/jdee/xdocs/.cvsignore b/jdee/xdocs/.cvsignore new file mode 100644 index 00000000..cb6131bb --- /dev/null +++ b/jdee/xdocs/.cvsignore @@ -0,0 +1 @@ +stylesheets diff --git a/jdee/xdocs/changes.xml b/jdee/xdocs/changes.xml new file mode 100644 index 00000000..7202140a --- /dev/null +++ b/jdee/xdocs/changes.xml @@ -0,0 +1,16 @@ + + + + Changes + Juergen Heidak + + + + + + Initial version. + + + + + diff --git a/jdee/xdocs/goals.xml b/jdee/xdocs/goals.xml new file mode 100644 index 00000000..59632721 --- /dev/null +++ b/jdee/xdocs/goals.xml @@ -0,0 +1,28 @@ + + + + + JDEE Plugin Goals + Emmanuel Venisse + + + + + + jdee + + The default goal. This goal simply executes the + jdee:generate-project goal + + + + + jdee:generate-project + + Generate project file. + + + + + + diff --git a/jdee/xdocs/index.xml b/jdee/xdocs/index.xml new file mode 100644 index 00000000..c9a0738f --- /dev/null +++ b/jdee/xdocs/index.xml @@ -0,0 +1,74 @@ + + + + + Maven JDEE Plugin + Juergen Heidak + + + +
+

+ A plugin to create a project file to be used by + JDEE (Java Development + Enviroment for Emacs) to make it a little easier for + Emacs users to switch to maven. +

+

+ The most important part is the initialization of + jde-global-classpath variable. The generated project file + has this variable set to contain all dependencies (normally jarfiles) + as listed in the project descriptor. +

+

+ The following table can give you an overview about the mapping between + Maven properties and JDEE variables: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Maven property/ constant valueJDEE variable
pom.artifactIdjde-project-name
+ maven.jdee.project.file (see + Properties for details) + jde-project-file-name
pom.build.sourceDirectoryjde-sourcepath
./target/classesjde-compile-option-directory
./target/docs/apidocsjde-javadoc-gen-destination-directory
+ + ${pom.name} - ${pom.organization} (${pom.inceptionYear}) + + jde-javadoc-gen-window-title
+

+

+ For more information on the functionality provided by this plugin, + please see the Goals document. +

+

+ This plugin is flexible by providing configurable properties see the + properties for details. +

+
+ +
diff --git a/jdee/xdocs/navigation.xml b/jdee/xdocs/navigation.xml new file mode 100644 index 00000000..8818ad71 --- /dev/null +++ b/jdee/xdocs/navigation.xml @@ -0,0 +1,17 @@ + + + + Maven JDEE Plugin + + + + + + + + + + + + + diff --git a/jdee/xdocs/properties.xml b/jdee/xdocs/properties.xml new file mode 100644 index 00000000..ab7ab941 --- /dev/null +++ b/jdee/xdocs/properties.xml @@ -0,0 +1,39 @@ + + + + + JDEE Properties + Juergen Heidak + + + +
+ + + + + + + + + + + + +
PropertyOptional?Description
maven.jdee.project.fileYes + The name of the generated file default is to prj.el. +

+ The value of this property is used to determine the filename to + write the project information to. Furthermore the variable + jde-project-name is set (in the project file) to the + value of this property. +

+
maven.jdee.application.classYes + The name of the class that starts the application. If this property + is defined the variable (in the project file) + jde-run-application-class is set to its value if + undefined the variable is left undefined too. +
+
+ +
diff --git a/jdee/xdocs/tasks.xml b/jdee/xdocs/tasks.xml new file mode 100644 index 00000000..54f18ad9 --- /dev/null +++ b/jdee/xdocs/tasks.xml @@ -0,0 +1,32 @@ + + + + + Maven JDEE Plugin + Juergen Heidak + + + +
+

+ There are already plugins holding a lot of information we need when + writing the project file. Especially the + javadoc + and the + java + plugin contain several properties that we should reuse. +

+

+ Some examples: +

+ At the moment we're using the target directory to direct + the compilation and javadoc output produced by JDEE to. +

+
+ +