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 182532 - Source downloads are not complete
Summary: Source downloads are not complete
Status: VERIFIED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-22 22:12 UTC by David Strupl
Modified: 2010-04-02 13:01 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 David Strupl 2010-03-22 22:12:04 UTC
As reported e.g. here
http://forums.netbeans.org/topic23610.html&highlight=
or separately by Oracle developers the src downloads do not contain the main build.xml file and thus the sources are not buildable. This is a blocker for the newcomers --> P1.

Jarda suggested to create some sanity check for the source downloads whether just typing ant in the main dir after unzipping succeeds for each download.
Comment 1 Jaroslav Tulach 2010-03-23 13:51:57 UTC
First attempt:
http://deadlock.netbeans.org/hudson/job/src-zip-platform/
Comment 2 Jaroslav Tulach 2010-03-23 22:12:13 UTC
The platform build fails on nbi. I guess Dmitry shall advice how to fix that (e.g. what else shall be included in the platform src zip):

build-nbi-ant-tasks:
  [nbmerge] Failed to build target: all-libs.nbi.ant

BUILD FAILED
/space/workspace/src-zip-platform/nbbuild/build.xml:370: The following error occurred while executing this line:
/space/workspace/src-zip-platform/nbbuild/build.xml:365: The following error occurred while executing this line:
/space/workspace/src-zip-platform/nbbuild/build.xml:382: The following error occurred while executing this line:
/space/workspace/src-zip-platform/nbbuild/build.xml:429: The following error occurred while executing this line:
/space/workspace/src-zip-platform/libs.nbi.ant/build.xml:10: Basedir /space/workspace/src-zip-platform/nbi/engine does not exist
Comment 3 Jaroslav Tulach 2010-03-23 22:24:46 UTC
The IDE source build is here:
http://deadlock.netbeans.org/hudson/job/src-zip-ide/
fails on missing build.xml in root directory:

init:
[insert-module-all-targets] This module is missing from checkout:  - at least can't find: /space/workspace/src-zip-ide/build.xml

BUILD FAILED
/space/workspace/src-zip-ide/nbbuild/build.xml:175: Some modules according your cluster config 'full' are missing from checkout, see messages above.
Comment 4 dlipin 2010-03-24 09:12:34 UTC
> what else shall be included in the platform src zip)
libs.nbi.ant and libs.nbi.engine also require nbi/** (excluding nbi/engine/lib/**, nbi/infra/build/jvm/**, nbi/infra/sandbox/**, nbi/infra/server/**, nbi/infra/utils/**) to be present.

What is the right way to include those files/dirs in the sources zip?
Comment 5 Jaroslav Tulach 2010-03-24 13:01:51 UTC
OK Dmitry, the includes/excludes seem to help: core-main#97a4d349a716 (under the assumption that I changed the right place that really affects the content of published src files).
Comment 6 Jaroslav Tulach 2010-03-25 07:32:29 UTC
I fixed the platform zip, but not the IDE one:
http://deadlock.netbeans.org/hudson/view/Sources/

The IDE src.zip is still missing root build.xml, Robert, please investigate why.
Comment 7 dlipin 2010-03-29 20:37:44 UTC
should be fixed in core-main #dbb696b3f89f
(anyway we should find a better way to do that: i.e. specify somehow that module X also require external Y/** which are not essentially NB module to avoid master build.xml modification).
Comment 8 Jaroslav Tulach 2010-03-31 08:12:09 UTC
The standard way would be to turn nbi bits into a NetBeans module (with no dependencies, just packing the libraries into NBM) and have compile time (not runtime) dependency on it from apisupport.

I don't think there is much else to do about this. Even Maven would require you to have a project and depend on it...
Comment 9 Quality Engineering 2010-04-02 04:59:39 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/dbb696b3f89f
User: Dmitry Lipin <dlipin@netbeans.org>
Log: Issue #182532 Source downloads are not complete
Comment 10 Jaroslav Tulach 2010-04-02 13:01:44 UTC
I can see that
http://deadlock.netbeans.org/hudson/job/src-zip-ide/
succeeded. I will send mails about failed builds to broken_builds@netbeans.org