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.
I've got reports from people using the platform that when checking out only sources needed for the platform they end up with failure during unscrambling. Right now I'm giving them advice to use netbeans.no.pre.unscramble, but that can hardly be the final solution for 4.0. I've tried to modify the build script a bit and after various approaches I ended up with subant task. Seems to me to be the cleanest and never can get out of date (as happened from time to time with previous approach).
Created attachment 16142 [details] Using <subant> to unscramble binaries
Looks much better to me, nice. One suggestion: <exclude name="nbbuild/external/build.xml"/> <exclude name="xml/external/build.xml"/> since bootstrap already ran these. Also you need not depend on the init-module-list target any longer; just depend on bootstrap.
Thanks. Michal if you agree, please go on and integrate (modified) patch.
Ok. I'll do it.
nbbuild/build.xml,v <-- build.xml new revision: 1.527
The patch is not working properly, because of bug in ANT 1.6.1. When you are using the <ant> task you have to specify the "dir" attribute, because it is taken as a basedir for the called ant script. However <subant> task isn;t doing it, so it causes the build to fail when it is called from different project :-(. I rolled back this patch. I'll work on better solution. Checking in build.xml; /cvs/nbbuild/build.xml,v <-- build.xml new revision: 1.528; previous revision: 1.527 done
I am sorry, everything I tried worked. And one possitive evalutation and silence from you has been interpreted as review. If you can look at the problem and fix it, I'll be glad. I need that to happen during promoD. Btw. Is not usage of netbeans.no.pre.unscramble=true solution for your problem (forte build)?
Created attachment 16362 [details] Now it should be working even when nbbuild/build.xml is called from another script
Again you forgot to exclude nbbuild/external and xml/external which have already been unscrambled by bootstrap.
Checking in build.xml; /cvs/nbbuild/build.xml,v <-- build.xml new revision: 1.532; previous revision: 1.531 done
ant build-platform works.
Michal please take a look at http://issues.apache.org/bugzilla/show_bug.cgi?id=30569 and see if that was the problem you were having re. <subant> and basedir.