From: Tarun R. E. <ta...@we...> - 2003-04-18 17:41:54
|
Hi Curt, Thank you for the instructions. I tried them on my box (Redhat 8) and unfortunately they failed. I was about to give up, when I realized that the old ant was still being used. Apparently one needs to unset ANT_HOME, otherwise it gets picked up again regardless of which ant.sh is running. So I did that and ant compilation proceeded smoothly. I build ant from cvs and used it to compile proposal/xdocs as you suggested. That went off without a hitch as well. However when I used the new ant to run "ant -Dant-src.dir=<my ant dir here> dist", as you suggested, I run into a _new_ error, pasted at the bottom. I am once again stuck here... PLUS: Sorry for asking for help again. Thanks, Tarun [antdoclet] The class "cpptasks." occurs more than once. That's illegal. [antdoclet] Apr 18, 2003 11:27:16 PM xdoclet.XDocletMain start [antdoclet] INFO: Running <taskdescriptor/> [antdoclet] java.lang.IllegalArgumentException: qualifiedName can't start with a dot! .cpptasks.m [antdoclet] at xjavadoc.AbstractClass.setQualifiedName(AbstractClass.java:672) [antdoclet] at xjavadoc.UnknownClass.<init>(UnknownClass.java:41) [antdoclet] at xjavadoc.XJavaDoc.getXClass(XJavaDoc.java:478) [antdoclet] at xjavadoc.XJavaDoc.getOuterSourceClasses(XJavaDoc.java:813) [antdoclet] at xjavadoc.XJavaDoc.getSourceClasses(XJavaDoc.java:379) [antdoclet] at xjavadoc.XJavaDoc.getSourceClasses(XJavaDoc.java:335) [antdoclet] at xjavadoc.XJavaDoc.getSourceClasses(XJavaDoc.java:354) [antdoclet] at xdoclet.modules.apache.ant.AntSubTask.startProcess(AntSubTask.java:106) [antdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:484) [antdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:46) [antdoclet] at xdoclet.DocletTask.start(DocletTask.java:457) [antdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:92) [antdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:231) [antdoclet] at org.apache.tools.ant.Task.perform(Task.java:399) [antdoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [antdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [antdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1404) [antdoclet] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:414) [antdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:231) [antdoclet] at org.apache.tools.ant.Task.perform(Task.java:399) [antdoclet] at org.apache.tools.ant.Target.execute(Target.java:309) [antdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:336) [antdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1404) [antdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1278) [antdoclet] at org.apache.tools.ant.Main.runBuild(Main.java:611) [antdoclet] at org.apache.tools.ant.Main.start(Main.java:198) [antdoclet] at org.apache.tools.ant.Main.main(Main.java:245) > > > The xdocs generation is definitely more fragile and complicated than I > would like due to xdocs "proposal" status within Ant. It took quite a > bit of time for it to work at all. The current Ant xdocs source > apparently requires an Ant built from the CVS to run. > > First, checkout the cpptasks again to get an updated build.xml file. > I've made 'jars' the default target, added an ant-src.dir property (you > can still set xdocs.dir) and changed the message when CCTasks cannot be > found on the classpath before xdocs generation. You could make the > previous build.xml to work, but the following discussion is based on the > current version. > > To do this, you need to build an Ant distribution from the Ant CVS > sources. The following is an approximate set of steps to build Ant from > the Ant CVS (assuming Windows) > > cd \ant-src\ant > bootstrap > copy lib\xercesImpl.jar bootstrap\lib > copy lib\xml-apis.jar bootstrap\lib > SET PATH=\ant-src\ant\bootstrap\bin;\jdk1.3\bin > ' > ' must rebuild Ant with the bootstrap'd Ant > ant dist > copy lib\xercesImpl.jar dist\lib > copy lib\xml-apis.jar dist\lib > SET PATH=\ant-src\ant\dist\bin;\jdk1.3\bin > > At this point, "ant" should invoke an Ant built from the CVS sources. > To check that everything is okay, you could attempt to build Ant's XDOC > documentation: > > cd proposal\xdocs > SET ANT_OPTS=-Xmx640m > ant > > Now that you have the preliminaries out of the way, you should be able > to build cpptasks' documentation. > > cd \ant-contrib\cpptasks > set CLASSPATH=\ant-contrib\cpptasks\build\lib\cpptasks.jar > ant -Dant-src.dir=\ant-src\ant dist > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Ant-contrib-developers mailing list > Ant...@li... > https://lists.sourceforge.net/lists/listinfo/ant-contrib-developers > |