Index: jxr/plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven-plugins/jxr/plugin.jelly,v
retrieving revision 1.22
diff -u -b -r1.22 plugin.jelly
--- jxr/plugin.jelly 23 Aug 2004 13:12:44 -0000 1.22
+++ jxr/plugin.jelly 19 Apr 2005 20:59:24 -0000
@@ -68,6 +68,50 @@
name="maven-jxr-plugin:report"
description="Generate HTML cross reference sources">
+
+
+
+
+
+ sourceDir=${pom.build.sourceDirectory}
+ sourceSet=${context.getAntProject().getReferences().get('maven.compile.src.set')}
+
+
+
+ sourceModifications used.
+ ${context.getAntProject().getReferences().get('maven.compile.src.set')}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sourceModifications not used.
+
+
+
+
+
@@ -75,7 +119,7 @@
- ${maven.sourcesPresent}
+ sourcesPresent=${maven.sourcesPresent}
@@ -93,8 +137,12 @@
+
+
+ sourceDir=${internal_jxr_prop}
+
+
+
+
Index: jxr/src/main/org/apache/maven/jxr/CodeTransform.java
===================================================================
RCS file: /home/cvspublic/maven-plugins/jxr/src/main/org/apache/maven/jxr/CodeTransform.java,v
retrieving revision 1.11
diff -u -b -r1.11 CodeTransform.java
--- jxr/src/main/org/apache/maven/jxr/CodeTransform.java 23 Aug 2004 13:12:44 -0000 1.11
+++ jxr/src/main/org/apache/maven/jxr/CodeTransform.java 19 Apr 2005 20:59:27 -0000
@@ -445,7 +445,7 @@
{
temp.setLength(0);
ch = line.charAt(i);
- while (i < line.length() && ((ch >= 65 && ch <= 90) || (ch >= 97 && ch <= 122)))
+ while (i < line.length() && ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')))
{
temp.append(ch);
i++;
@@ -1100,13 +1100,20 @@
- that it WILL be on the disk since this is based on the current
- file.
*/
- boolean isPackage = line.indexOf("package") != -1;
+ boolean isPackage = false, isImport = false;
- if (line.indexOf("import") != -1 || isPackage)
- {
-
- start = line.trim().indexOf(" ");
+ int i = line.indexOf("package ");
+ if (i != -1) {
+ if (i > 0) isPackage = !Character.isJavaIdentifierPart(line.charAt(i-1));
+ else isPackage = true;
+ }
+ if (isPackage) start = i+7;
+ int j = line.indexOf("import ");
+ if (j != -1) {
+ if (j > 0) isImport = !Character.isJavaIdentifierPart(line.charAt(j-1));
+ else isImport = true;
}
+ if (isImport) start = j+6;
if (start != -1)
{