-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
site deploy on branch gh-pages automated site plugin updated
- Loading branch information
1 parent
c674eaa
commit 05e9e0e
Showing
39 changed files
with
4,492 additions
and
1,208 deletions.
There are no files selected for viewing
1,594 changes: 798 additions & 796 deletions
1,594
src/main/java/org/bsc/maven/plugin/processor/AbstractAnnotationProcessorMojo.java
Large diffs are not rendered by default.
Oops, something went wrong.
182 changes: 91 additions & 91 deletions
182
src/main/java/org/bsc/maven/plugin/processor/Debug.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,91 @@ | ||
/* | ||
* Copyright (C) 2009 2010 2011 Bartolomeo Sorrentino <bartolomeo.sorrentino@gmail.com> | ||
* | ||
* This file is part of maven-annotation-plugin. | ||
* | ||
* maven-annotation-plugin is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* maven-annotation-plugin is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with maven-annotation-plugin. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package org.bsc.maven.plugin.processor; | ||
|
||
import java.io.File; | ||
import java.util.Collection; | ||
|
||
import org.apache.maven.artifact.Artifact; | ||
import org.apache.maven.artifact.ArtifactUtils; | ||
import org.apache.maven.project.MavenProject; | ||
|
||
/** | ||
* Debug helpers | ||
*/ | ||
class Debug | ||
{ | ||
private final MavenProject project; | ||
|
||
public Debug(MavenProject project) | ||
{ | ||
if (project == null) | ||
{ | ||
throw new IllegalArgumentException("Argument 'project' cannot be null"); | ||
} | ||
this.project = project; | ||
} | ||
|
||
public <T> void println(String name, Collection<T> e) | ||
{ | ||
System.out.println(name); | ||
if (null == e) | ||
{ | ||
return; | ||
} | ||
|
||
for (T a : e) | ||
{ | ||
System.out.printf("\t[%s] %s\n", a.getClass().getName(), a.toString()); | ||
} | ||
|
||
} | ||
|
||
public void printDeps(String name, Collection<org.apache.maven.model.Dependency> dependencies) | ||
{ | ||
System.out.println(name); | ||
for (org.apache.maven.model.Dependency d : dependencies) | ||
{ | ||
|
||
System.out.printf("dependency [%s]\n", d.toString()); | ||
|
||
String versionlessKey = ArtifactUtils.versionlessKey(d.getGroupId(), d.getArtifactId()); | ||
|
||
Artifact artifact = (Artifact)project.getArtifactMap().get(versionlessKey); | ||
|
||
if (null != artifact) | ||
{ | ||
File file = artifact.getFile(); | ||
System.out.printf("artifact [%s]\n", file.getPath()); | ||
} | ||
} | ||
} | ||
|
||
public void printDebugInfo() throws Exception //DependencyResolutionRequiredException | ||
{ | ||
//println("project.getCompileClasspathElements", project.getCompileClasspathElements()); | ||
println("project.getCompileArtifacts", project.getCompileArtifacts()); | ||
println("project.getCompileDependencies", project.getCompileDependencies()); | ||
println("project.getDependencyArtifacts", project.getDependencyArtifacts()); | ||
println("project.getArtifactMap", project.getArtifactMap().keySet()); | ||
println("project.getArtifacts", project.getArtifacts()); | ||
printDeps("project.getRuntimeDependencies", project.getRuntimeDependencies()); | ||
printDeps("project.getDependencies", project.getDependencies()); | ||
} | ||
|
||
} | ||
/* | ||
* Copyright (C) 2009 2010 2011 Bartolomeo Sorrentino <bartolomeo.sorrentino@gmail.com> | ||
* | ||
* This file is part of maven-annotation-plugin. | ||
* | ||
* maven-annotation-plugin is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* maven-annotation-plugin is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with maven-annotation-plugin. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package org.bsc.maven.plugin.processor; | ||
|
||
import java.io.File; | ||
import java.util.Collection; | ||
|
||
import org.apache.maven.artifact.Artifact; | ||
import org.apache.maven.artifact.ArtifactUtils; | ||
import org.apache.maven.project.MavenProject; | ||
|
||
/** | ||
* Debug helpers | ||
*/ | ||
class Debug | ||
{ | ||
private final MavenProject project; | ||
|
||
public Debug(MavenProject project) | ||
{ | ||
if (project == null) | ||
{ | ||
throw new IllegalArgumentException("Argument 'project' cannot be null"); | ||
} | ||
this.project = project; | ||
} | ||
|
||
public <T> void println(String name, Collection<T> e) | ||
{ | ||
System.out.println(name); | ||
if (null == e) | ||
{ | ||
return; | ||
} | ||
|
||
for (T a : e) | ||
{ | ||
System.out.printf("\t[%s] %s\n", a.getClass().getName(), a.toString()); | ||
} | ||
|
||
} | ||
|
||
public void printDeps(String name, Collection<org.apache.maven.model.Dependency> dependencies) | ||
{ | ||
System.out.println(name); | ||
for (org.apache.maven.model.Dependency d : dependencies) | ||
{ | ||
|
||
System.out.printf("dependency [%s]\n", d.toString()); | ||
|
||
String versionlessKey = ArtifactUtils.versionlessKey(d.getGroupId(), d.getArtifactId()); | ||
|
||
Artifact artifact = (Artifact)project.getArtifactMap().get(versionlessKey); | ||
|
||
if (null != artifact) | ||
{ | ||
File file = artifact.getFile(); | ||
System.out.printf("artifact [%s]\n", file.getPath()); | ||
} | ||
} | ||
} | ||
|
||
public void printDebugInfo() throws Exception //DependencyResolutionRequiredException | ||
{ | ||
//println("project.getCompileClasspathElements", project.getCompileClasspathElements()); | ||
println("project.getCompileArtifacts", project.getCompileArtifacts()); | ||
println("project.getCompileDependencies", project.getCompileDependencies()); | ||
println("project.getDependencyArtifacts", project.getDependencyArtifacts()); | ||
println("project.getArtifactMap", project.getArtifactMap().keySet()); | ||
println("project.getArtifacts", project.getArtifacts()); | ||
printDeps("project.getRuntimeDependencies", project.getRuntimeDependencies()); | ||
printDeps("project.getDependencies", project.getDependencies()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
body { | ||
margin: 0px; | ||
padding: 0px; | ||
} | ||
img { | ||
border:none; | ||
} | ||
table { | ||
padding:0px; | ||
width: 100%; | ||
margin-left: -2px; | ||
margin-right: -2px; | ||
} | ||
acronym { | ||
cursor: help; | ||
border-bottom: 1px dotted #feb; | ||
} | ||
table.bodyTable th, table.bodyTable td { | ||
padding: 2px 4px 2px 4px; | ||
vertical-align: top; | ||
} | ||
div.clear{ | ||
clear:both; | ||
visibility: hidden; | ||
} | ||
div.clear hr{ | ||
display: none; | ||
} | ||
#bannerLeft, #bannerRight { | ||
font-size: xx-large; | ||
font-weight: bold; | ||
} | ||
#bannerLeft img, #bannerRight img { | ||
margin: 0px; | ||
} | ||
.xleft, #bannerLeft img { | ||
float:left; | ||
} | ||
.xright, #bannerRight { | ||
float:right; | ||
} | ||
#banner { | ||
padding: 0px; | ||
} | ||
#banner img { | ||
border: none; | ||
} | ||
#breadcrumbs { | ||
padding: 3px 10px 3px 10px; | ||
} | ||
#leftColumn { | ||
width: 170px; | ||
float:left; | ||
overflow: auto; | ||
} | ||
#bodyColumn { | ||
margin-right: 1.5em; | ||
margin-left: 197px; | ||
} | ||
#legend { | ||
padding: 8px 0 8px 0; | ||
} | ||
#navcolumn { | ||
padding: 8px 4px 0 8px; | ||
} | ||
#navcolumn h5 { | ||
margin: 0; | ||
padding: 0; | ||
font-size: small; | ||
} | ||
#navcolumn ul { | ||
margin: 0; | ||
padding: 0; | ||
font-size: small; | ||
} | ||
#navcolumn li { | ||
list-style-type: none; | ||
background-image: none; | ||
background-repeat: no-repeat; | ||
background-position: 0 0.4em; | ||
padding-left: 16px; | ||
list-style-position: outside; | ||
line-height: 1.2em; | ||
font-size: smaller; | ||
} | ||
#navcolumn li.expanded { | ||
background-image: url(../images/expanded.gif); | ||
} | ||
#navcolumn li.collapsed { | ||
background-image: url(../images/collapsed.gif); | ||
} | ||
#poweredBy { | ||
text-align: center; | ||
} | ||
#navcolumn img { | ||
margin-top: 10px; | ||
margin-bottom: 3px; | ||
} | ||
#poweredBy img { | ||
display:block; | ||
margin: 20px 0 20px 17px; | ||
} | ||
#search img { | ||
margin: 0px; | ||
display: block; | ||
} | ||
#search #q, #search #btnG { | ||
border: 1px solid #999; | ||
margin-bottom:10px; | ||
} | ||
#search form { | ||
margin: 0px; | ||
} | ||
#lastPublished { | ||
font-size: x-small; | ||
} | ||
.navSection { | ||
margin-bottom: 2px; | ||
padding: 8px; | ||
} | ||
.navSectionHead { | ||
font-weight: bold; | ||
font-size: x-small; | ||
} | ||
.section { | ||
padding: 4px; | ||
} | ||
#footer { | ||
padding: 3px 10px 3px 10px; | ||
font-size: x-small; | ||
} | ||
#breadcrumbs { | ||
font-size: x-small; | ||
margin: 0pt; | ||
} | ||
.source { | ||
padding: 12px; | ||
margin: 1em 7px 1em 7px; | ||
} | ||
.source pre { | ||
margin: 0px; | ||
padding: 0px; | ||
} | ||
#navcolumn img.imageLink, .imageLink { | ||
padding-left: 0px; | ||
padding-bottom: 0px; | ||
padding-top: 0px; | ||
padding-right: 2px; | ||
border: 0px; | ||
margin: 0px; | ||
} |
Oops, something went wrong.