Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3965/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry
Modified Files:
ComponentSpecificationPlugin.java PageSpecificationPlugin.java
Log Message:
Now .page and .jwc files are generated only for children of tapestry's IPage
and IComponents classes.
Index: ComponentSpecificationPlugin.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry/ComponentSpecificationPlugin.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ComponentSpecificationPlugin.java 22 Aug 2005 09:47:24 -0000 1.1
--- ComponentSpecificationPlugin.java 28 Sep 2005 17:23:58 -0000 1.2
***************
*** 47,51 ****
public boolean shouldGenerate(Object metadata) {
JavaClass clazz = (JavaClass) metadata;
! return clazz.getTagByName("tapestry.component-specification") != null;
}
}
\ No newline at end of file
--- 47,53 ----
public boolean shouldGenerate(Object metadata) {
JavaClass clazz = (JavaClass) metadata;
! boolean hasComponentTag =
clazz.getTagByName("tapestry.component-specification") != null;
! boolean isAComponent = clazz.isA("org.apache.tapestry.IComponent");
! return hasComponentTag && isAComponent;
}
}
\ No newline at end of file
Index: PageSpecificationPlugin.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/main/java/org/xdoclet/plugin/tapestry/PageSpecificationPlugin.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PageSpecificationPlugin.java 22 Aug 2005 09:47:24 -0000 1.1
--- PageSpecificationPlugin.java 28 Sep 2005 17:23:58 -0000 1.2
***************
*** 47,51 ****
public boolean shouldGenerate(Object metadata) {
JavaClass clazz = (JavaClass) metadata;
! return clazz.getTagByName("tapestry.page-specification") != null;
}
}
\ No newline at end of file
--- 47,53 ----
public boolean shouldGenerate(Object metadata) {
JavaClass clazz = (JavaClass) metadata;
! boolean hasPageTag =
clazz.getTagByName("tapestry.page-specification") != null;
! boolean isAPage = clazz.isA("org.apache.tapestry.IPage");
! return hasPageTag && isAPage;
}
}
\ No newline at end of file
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits