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.

Bug 45881 - build-platform tries to unscramble nonexisting binaries
Summary: build-platform tries to unscramble nonexisting binaries
Status: CLOSED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Michal Zlamal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-06 15:43 UTC by Jaroslav Tulach
Modified: 2006-03-24 09:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Using <subant> to unscramble binaries (2.11 KB, patch)
2004-07-06 15:45 UTC, Jaroslav Tulach
Details | Diff
Now it should be working even when nbbuild/build.xml is called from another script (2.47 KB, patch)
2004-07-21 13:51 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-07-06 15:43:45 UTC
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).
Comment 1 Jaroslav Tulach 2004-07-06 15:45:15 UTC
Created attachment 16142 [details]
Using <subant> to unscramble binaries
Comment 2 Jesse Glick 2004-07-06 18:32:11 UTC
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.
Comment 3 Jaroslav Tulach 2004-07-10 01:59:12 UTC
Thanks. Michal if you agree, please go on and integrate (modified) patch.
Comment 4 Jaroslav Tulach 2004-07-14 16:46:06 UTC
Ok. I'll do it.
Comment 5 Jaroslav Tulach 2004-07-14 17:09:26 UTC
nbbuild/build.xml,v  <--  build.xml
new revision: 1.527
Comment 6 Michal Zlamal 2004-07-15 15:23:27 UTC
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
Comment 7 Jaroslav Tulach 2004-07-18 14:19:41 UTC
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)?
Comment 8 Jaroslav Tulach 2004-07-21 13:51:32 UTC
Created attachment 16362 [details]
Now it should be working even when nbbuild/build.xml is called from another script
Comment 9 Jesse Glick 2004-07-21 18:49:27 UTC
Again you forgot to exclude nbbuild/external and xml/external which
have already been unscrambled by bootstrap.
Comment 10 Michal Zlamal 2004-07-22 13:18:23 UTC
Checking in build.xml;
/cvs/nbbuild/build.xml,v  <--  build.xml
new revision: 1.532; previous revision: 1.531
done
Comment 11 Jaroslav Tulach 2004-07-23 14:09:12 UTC
ant build-platform works.
Comment 12 Jesse Glick 2005-05-02 20:35:01 UTC
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.