Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-plugin/src/main/java/org/xdoclet/plugin/plugin
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29314/plugin-plugin/src/main/java/org/xdoclet/plugin/plugin
Modified Files:
PluginPlugin.java
Log Message:
GRA-7 / XDP-151 : Provide a simple way for plugins to check paths validity :
added an isIn method in the base Plugin class
Index: PluginPlugin.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-plugin/src/main/java/org/xdoclet/plugin/plugin/PluginPlugin.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** PluginPlugin.java 6 Dec 2005 11:23:39 -0000 1.16
--- PluginPlugin.java 18 Jan 2006 23:11:29 -0000 1.17
***************
*** 165,170 ****
//exclude generama sources
! if (generamaSourcesDir != null &&
!
javaClass.getParentSource().getFile().getAbsolutePath().startsWith(generamaSourcesDir))
{
return false;
}
--- 165,170 ----
//exclude generama sources
! final String sourcePath =
javaClass.getParentSource().getURL().getFile();
! if (generamaSourcesDir != null && isIn(sourcePath,
generamaSourcesDir)) {
return false;
}
***************
*** 183,187 ****
}
! if (!location.startsWith(basedir)) {
throw new IllegalArgumentException("Basedir must be on top of all
scanner dirs(basedir=" + basedir +
", location=" + location + ").");
--- 183,187 ----
}
! if (!isIn(location, basedir)) {
throw new IllegalArgumentException("Basedir must be on top of all
scanner dirs(basedir=" + basedir +
", location=" + location + ").");
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits