Raible's Wiki
Raible Designs AppFuseHomepage- Korean - Chinese - Italian - Japanese QuickStart Guide User Guide Tutorials Other ApplicationsStruts ResumeSecurity Example Struts Menu
Set your name in
UserPreferences
Referenced by
JSPWiki v2.2.33
Hide Menu |
This is version 1.
It is not the current version, and thus it cannot be edited. This post is meant to simply document the struggles I went through trying to get XDoclet's 1. Even after creating this 2. If using Ant 1.5.x, and you're using Struts, you will get the following error when you run "ant compile" with 1.5. compile-web:
xdoclet (XDocletMain.start 47 ) Running
3. If I define the "xdoclet" task inside the "compile-web" target, it will work, but only when I call that target explicitly. When I make another target depend on it, I get the following error with Ant 1.5.x. file:c:/Source/appfuse/build.xml:779: Class xdoclet.modules.apache.struts.Action FormSubTask doesn't support the nested "packageSubstitution" element. NOTE: The original reference e-mail for the above issues is on the XDoclet Developers mailing list at: http://article.gmane.org/gmane.comp.java.xdoclet.devel/15319 4. If I put the xdoclet 5. My final solution: Move the xdoclet/actionform task into it's own target and prevent it from executing if it doesn't need to. Below is a list I created while comping up with a solution. Ant version: 1.5.4 1.6.2 Task outside of all targets compile compile destDir error destDir error compile succeeds succeeds test-cactus succeeds succeeds Task in "init" target compile compile NPE w/ StringTokenizer destDir error compile " succeeds test-cactus " succeeds Task in "compile-web" target compile compile succeeds destDir error compile " succeeds test-cactus packageSubstitution error succeeds AppFuse 1.5 Source compile compile NPE w/ StringTokenizer succeeds compile " succeeds test-cactus " succeeds Move actionform task to gen-forms target compile compile succeeds succeeds compile " " test-cactus " "
|