This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I try ant -f nbbuild/build.xml build-javadoc the build fails. I suspect this to be result of <insert-module-all-targets> intergration. Making P1 as it blocks other developer (e.g. me) progress. all-lexer: [echo] Building lexer... [nbmerge] Failed to build target: all-lexer BUILD FAILED /doma/jarda/netbeans-src/nbbuild/build.xml:263: The following error occurred while executing this line: /doma/jarda/netbeans-src/nbbuild/build.xml:563: You must specify value, location or refid with the name attribute Total time: 37 seconds after naive fix in nbbuild/build.xml: Index: build.xml =================================================================== RCS file: /cvs/nbbuild/build.xml,v retrieving revision 1.692 diff -u -r1.692 build.xml --- build.xml 12 Jul 2005 04:13:39 -0000 1.692 +++ build.xml 12 Jul 2005 09:53:59 -0000 @@ -153,6 +153,14 @@ <taskdef name="insert-module-all-targets" classname="org.netbeans.nbbuild.InsertModuleAllTargets" classpath="nbantext.jar"/> <insert-module-all-targets/> </target> + <target name="all-lexer" depends="init"> + <antcall target="build-one-cluster-dependencies" inheritall="false"> + <param name="one.cluster.dependencies" value="nb.cluster.platform,nb.cluster.ide.extra,nb.cluster.ide"/> + <param name="one.cluster.name" value="this-cluster"/> + </antcall> + <echo message="Building lexer library..."/> + <ant dir="../lexer" target="jar"/> + </target> <target name="all-java/storagebuilder" depends="init"> <antcall target="build-one-cluster-dependencies" inheritall="false"> I get another failure in all-jellytools. Looks like you should be able to invoke module dependencies insert for any set of modules, not just those that are in some cluster. But that is just a thought...
One thing that is not fully clear to me is why you just do not scan for all project.xml (as you do before any build of nb-like project) and create the all-* targets from that. The cluster list should be used just to find the target cluster and deps between clusters. If a module is not listed, then it means it belongs to the fallback cluster (e.g. extra).
I get a similar error while building the IDE: [repeat] all-openide: [echo] Building openide... [nbmerge] Failed to build target: all-openide BUILD FAILED /usr/local/dev/nb_all/nbbuild/build.xml:599: The following error occurred while executing this line: /usr/local/dev/nb_all/nbbuild/build.xml:594: The following error occurred while executing this line: /usr/local/dev/nb_all/nbbuild/build.xml:645: You must specify value, location or refid with the name attribute In my case it is because I have the db module checked out from a branch, and the branch still depends on openide instead of its components. I will merge the trunk to that branch. The error is caused by adding an <antcall> task with the property one.cluster.dependencies set to null (since the module openide isn't listed as belonging to nb.cluster.platform) to the generated all-openide target in InsertModuleAllTargets. Could this be fixed by not generating the <antcall> (and <ant target="netbeans">) when myCluster is null? Maybe this would also fix the bug reported by Jarda. Of course, my knowledge about the build system is quite scarce, so if I'm wrong I'd be grateful if explained why.
To abadea: all-openide is no more; fix db. To both: the system *does* insert all-* targets for every module, whether or not it is listed in some cluster. But it looks like all-* targets for "extra" modules were broken, as explained by abadea. Easy to fix.
committed Up-To-Date 1.2 nbbuild/antsrc/org/netbeans/nbbuild/InsertModuleAllTargets.java
Works now.