Thanks to Juergen Heidak for jdee plugin.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
52d8af9db1
commit
9dfa0664d4
12 files changed
+329
No files matched your search
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:ant="jelly:ant">
|
||||
|
||||
<goal name="jdee"
|
||||
description="Generate JDEE project file"
|
||||
prereqs="jdee:generate-project"/>
|
||||
|
||||
<!-- Generate project file in basedir -->
|
||||
<goal name="jdee:generate-project"
|
||||
description="Generate project file in basedir">
|
||||
|
||||
<j:set var="projectFile"
|
||||
value="${context.getVariable('maven.jdee.project.file')}" />
|
||||
<j:if test="${projectFile == null}">
|
||||
<j:set var="projectFile" value="prj.el"/>
|
||||
</j:if>
|
||||
|
||||
<ant:echo>Generating file ${projectFile} ...</ant:echo>
|
||||
|
||||
<j:file name="${basedir}/${projectFile}" prettyPrint="false"
|
||||
omitXmlDeclaration ="true" xmlns="dummy">
|
||||
(jde-project-file-version "1.0")
|
||||
(jde-set-variables
|
||||
(quote (jde-project-name "${pom.artifactId}"))
|
||||
(quote (jde-project-file-name "${maven.jdee.project.file}"))
|
||||
<j:if test="${sourcesPresent}">
|
||||
(quote (jde-sourcepath (quote ("./${pom.build.sourceDirectory}"))))
|
||||
<j:whitespace />
|
||||
</j:if>
|
||||
(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})"))
|
||||
|
||||
<j:set var="mainClass"
|
||||
value="${context.getVariable('maven.jdee.application.class')}" />
|
||||
<j:if test="${mainClass != null}">
|
||||
(quote (jde-run-application-class "${mainClass}"))
|
||||
<j:whitespace> </j:whitespace>
|
||||
</j:if>
|
||||
(quote (jde-global-classpath (quote ("./target/classes"
|
||||
<j:if test="${unitTestSourcesPresent}">
|
||||
"./${pom.build.unitTestSourceDirectory}" <j:whitespace />
|
||||
</j:if>
|
||||
<!-- now iterate through all dependencies -->
|
||||
<j:forEach var="lib" items="${pom.artifacts}">
|
||||
"${maven.repo.local}${lib.urlPath}" <j:whitespace />
|
||||
</j:forEach>
|
||||
)))))
|
||||
</j:file>
|
||||
|
||||
<ant:echo>Now reload the created project file (${projectFile}) in JDEE</ant:echo>
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
Reference in new issue
Block a user