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 166505 - Platform sources cannot be build
Summary: Platform sources cannot be build
Status: VERIFIED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 17:10 UTC by Jaroslav Tulach
Modified: 2009-06-11 11:21 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2009-06-03 17:10:30 UTC
I am given a platform course to MFF UK guys these days and I wanted to show them how to modify and build our platform. 
As Hg repository is quite large, I wanted them to download just platform sources and use them. To my surprise the 
sources are not compilable (at least I am not sure how to compile them). Try:

curl http://bits.netbeans.org/download/6.7/community/rc1/zip/netbeans-6.7rc1-200905312038-platform-src.zip > src.zip; 
unzip src.zip; ant -f nbbuild/build.xml -Dnbjdk.home=/usr/lib/jvm/java-1.5.0/ build-platform

As the ZIP file is an official download, I consider this as a really serious problem. I am CCing Jesse to tell us how 
the platform sources are supposed to be compiled. I am CCing Michal to set a continuous job that will consume ZIP file 
from the production build and verify that it can be build.

The failure message is:

build-init:
Trying to override old definition of task downloadbinaries
    [mkdir] Created dir: /home/jarda/tmp/nbb/nbbuild/build/public-package-jars
Scanning for modules in /home/jarda/tmp/nbb among standard clusters
  [nbmerge] Failed to build target: all-api.annotations.common

BUILD FAILED
/home/jarda/tmp/nbb/nbbuild/build.xml:660: The following error occurred while executing this line:
/home/jarda/tmp/nbb/nbbuild/build.xml:655: The following error occurred while executing this line:
/home/jarda/tmp/nbb/nbbuild/build.xml:672: The following error occurred while executing this line:
/home/jarda/tmp/nbb/nbbuild/build.xml:719: The following error occurred while executing this line:
/home/jarda/tmp/nbb/nbbuild/templates/projectized.xml:168: /home/jarda/tmp/nbb/libs.javacapi/external not found.

Probably libs.javac* needs to be included in the source distribution.
Comment 1 Jesse Glick 2009-06-03 21:22:14 UTC
Introduced in db7e8e910073. Suggest converting e.g.

<fileset dir="${nb_all}/libs.javacapi/external">
  <include name="*javac*.jar"/>
</fileset>

to

<fileset dir="${nb_all}">
  <include name="libs.javacapi/external/*javac*.jar"/>
</fileset>

which should result in ${retouche.javac} being blank when Platform sources are built, but not cause the build to abort.
Comment 2 Max Sauer 2009-06-04 10:47:34 UTC
Should be fixed in trunk now.

I've tried
ant -Dcluster.name=nb.cluster.platform build-source
unzipped and
ant -f nbbuild/build.xml build-platform
passed OK.

---
http://hg.netbeans.org/jet-main/rev/dcd3720c583e
Comment 3 Marian Mirilovic 2009-06-04 11:42:52 UTC
Maxi, coul you please port this fix into release67 clone as well ? Thanks in advance.
Comment 4 Max Sauer 2009-06-04 12:54:19 UTC
Done.
---
http://hg.netbeans.org/release67/rev/f19c29a308a6
Comment 5 Quality Engineering 2009-06-08 18:45:18 UTC
Integrated into 'main-golden', will be available in build *200906081401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dcd3720c583e
User: Max Sauer <msauer@netbeans.org>
Log: #166505: Platform sources cannot be build
Comment 6 Jindrich Sedek 2009-06-11 11:21:52 UTC
verified - RC2 platform is correctly compilable