Fix relative path not being found
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -70,7 +70,7 @@ import java.util.StringTokenizer;
|
||||
* Maven documentation, with links pointing to the JXR sources.
|
||||
*
|
||||
* @author Aslak Hellesoy
|
||||
* @version $Revision: 1.2 $
|
||||
* @version $Revision: 1.3 $
|
||||
*/
|
||||
public class SimianLog {
|
||||
private File logFile;
|
||||
@@ -96,12 +96,12 @@ public class SimianLog {
|
||||
this.jellyContext = jellyContext;
|
||||
}
|
||||
|
||||
public void setSourceDirectory(String sourceDirectory) {
|
||||
this.sourceDirectory = new File(sourceDirectory).getAbsolutePath();
|
||||
public void setSourceDirectory(String sourceDirectory) throws IOException {
|
||||
this.sourceDirectory = new File(sourceDirectory).getCanonicalPath();
|
||||
}
|
||||
|
||||
public void setUnitTestSourceDirectory(String unitTestSourceDirectory) {
|
||||
this.unitTestSourceDirectory = new File(unitTestSourceDirectory).getAbsolutePath();
|
||||
public void setUnitTestSourceDirectory(String unitTestSourceDirectory) throws IOException {
|
||||
this.unitTestSourceDirectory = new File(unitTestSourceDirectory).getCanonicalPath();
|
||||
}
|
||||
|
||||
public Duplication[] getDuplications() {
|
||||
|
||||
@@ -9,6 +9,12 @@
|
||||
<body>
|
||||
|
||||
<release version="1.2" date="in CVS">
|
||||
<action dev="dion" type="fix">
|
||||
Fix <code>Couldn't find relative path ...</code> message on windows
|
||||
under multiproject build. Paths with <code>..</code> in them
|
||||
were absolute, but it meant that the 'startsWith' logic was flawed.
|
||||
Changed to using the canonical path.
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Add sourceModification include/excludes
|
||||
</action>
|
||||
|
||||
Reference in New Issue
Block a user