Issue Details (XML | Word | Printable)

Key: MPJDEPEND-2
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Norbert Pabis
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1.x JDepend Plugin

more elements in jdepend classpath

Created: 29/Jul/03 07:19 AM   Updated: 30/Jan/06 06:33 PM   Resolved: 30/Jan/06 06:33 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6

Time Tracking:
Not Specified

File Attachments: 1. GZip Archive maven_jdepend_plugin_jelly_patch.gz (0.3 kB)



 Description  « Hide

jdepend search for its jdepend.properties through classloader,
so it is good idea to add ${maven.build.dest} to classpath,
to enable setting properties per project.

You can then add
<preGoal name="maven-jdepend-plugin:report">
<copy failonerror="false" file="jdepend.properties" tofile="${maven.build.dest}/jdepend.properties"/>
</preGoal>

and you no longer have to have jdepend.properties in your home directory.

Patch:
— src/plugins-build/jdepend/plugin.jelly.orig Tue Jul 29 14:08:49 2003
+++ src/plugins-build/jdepend/plugin.jelly Tue Jul 29 14:09:10 2003
@@ -42,6 +42,7 @@
<ant:path refid="maven-classpath"/>
<ant:path refid="maven.dependency.classpath"/>
<ant:pathelement path="${plugin.getDependencyPath('jdepend')}"/>
+ <ant:pathelement path="${maven.build.dest}"/>
</ant:classpath>
</ant:java>



Norbert Pabis added a comment - 29/Jul/03 07:21 AM

Sorry for patch in comment.
During adding the issue you cannot add patch, therefore I thought
it is impossible.


dion gillard added a comment - 04/Aug/03 08:48 AM

Wouldn't it be better if the jdepend.properties was specified as a project property, rather than requiring a pre-goal?


Norbert Pabis added a comment - 04/Aug/03 09:04 AM

> Wouldn't it be better if the jdepend.properties was specified
> as a project property, rather than requiring a pre-goal?
Sounds cool for me. But it has to be in classpath anyway, because
jdepend works like this.


Lukas Theussl added a comment - 30/Jan/06 06:33 PM

Introduced maven.jdepend.properties property to specify a custom properties file.