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 58397 - Cannot have copies of sources in nb_all
Summary: Cannot have copies of sources in nb_all
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-04-28 09:26 UTC by Jaroslav Tulach
Modified: 2005-09-05 10:06 UTC (History)
1 user (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 2005-04-28 09:26:20 UTC
Until today I had openide, openide.lazy, openide.old, etc. each checked out 
with a sources of openide on a different branch in nb_all and everything 
worked fine, with recent nbbuild scanning this gets broken as all openides are 
found and parsed. 
 
Certainly buggy behaviour is that it is possible to replace the module 
definition in ModuleParseList, at least throw build error, that would save me 
at least two hours. 
 
More pleasant would be to put into CP all modules that export org.openide 
module or let me choose which one I want.
Comment 1 Jesse Glick 2005-04-28 16:34:31 UTC
I will throw a build error if there is a duplicate definition. Do not plan to do
anything fancier. If you want to keep multiple versions of a module in one tree,
and you are using Unix, I would suggest you use a symlink farm. Just do:

mkdir ../variant
cd ../variant
cvs co -rbranch openide
ln -sv ../normal/* .

There is no equivalent for Windows.

If there is a persistent need for this kind of functionality, I think it
wouldn't be hard to permit an optional Ant property that would just give a list
of dirs to exclude from scanning, so you could temporarily add to .antrc e.g.

-Dnetbeans.excluded.modules=openide.lazy
Comment 2 Jaroslav Tulach 2005-04-28 16:46:33 UTC
Exception is fine. 
Comment 3 Jesse Glick 2005-04-29 03:27:55 UTC
committed   * Up-To-Date  1.20       
apisupport/project/src/org/netbeans/modules/apisupport/project/ModuleList.java
committed   * Up-To-Date  1.4        
nbbuild/antsrc/org/netbeans/nbbuild/ModuleListParser.java
Comment 4 Jaroslav Tulach 2005-04-29 17:25:19 UTC
The fix seems to be too "correct". I am getting following failure: 
 
build-init: 
Scanning for modules in /home/jarda/src/nb_all 
  [nbmerge] Failed to build target: all-openide/util 
 
BUILD FAILED 
/home/jarda/src/nb_all/nbbuild/build.xml:3010: The following error occurred 
while executing this line: 
/home/jarda/src/nb_all/nbbuild/build.xml:3005: The following error occurred 
while executing this line: 
/home/jarda/src/nb_all/nbbuild/build.xml:253: The following error occurred 
while executing this line: 
/home/jarda/src/nb_all/nbbuild/templates/projectized.xml:23: 
java.io.IOException: Duplicated module org.netbeans.modules.java.j2seplatform: 
found 
in /home/jarda/src/nb_all/nbbuild/netbeans/ide5/modules/org-netbeans-modules-java-j2seplatform.jar 
and /home/jarda/src/nb_all/nbbuild/netbeans/extra/modules/org-netbeans-modules-java-j2seplatform.jar 
 
 
while my repository is: 
ant/ 
antlr/ 
apisupport/ 
apisupportx/ 
applet/ 
archivesupport/ 
autoupdate/ 
a11y/ 
beans/ 
classclosure/ 
classfile/ 
clazz/ 
contrib/ 
corba/ 
core/ 
cpp/ 
cpplite/ 
CVS/ 
db/ 
debuggercore/ 
debuggerjpda/ 
debuggertools/ 
diff/ 
editor/ 
emacs/ 
extbrowser/ 
externaleditor/ 
filecopy/ 
form/ 
freestylebrowser/ 
html/ 
httpserver/ 
icebrowser/ 
ide/ 
image/ 
innertesters/ 
installer/ 
itutor/ 
i18n/ 
jarpackager/ 
jasm/ 
java/ 
javacvs/ 
javadoc/ 
javaembeddedserver/ 
jellytools/ 
jemmy/ 
jemmysupport/ 
jini/ 
jndi/ 
jpython/ 
junit/ 
j2ee/ 
j2eeserver/ 
lexer/ 
libs/ 
logger/ 
makefile/ 
mdr/ 
metrics/ 
monitor/ 
multicompile/ 
nbbuild/ 
netbrowser/ 
objectbrowser/ 
openide/ 
openidex/ 
performance/ 
projects/ 
properties/ 
refactoring/ 
remotefs/ 
rmi/ 
scripting/ 
serialversion/ 
schema2beans/ 
sim/ 
spellchecker/ 
sysprops/ 
tasklist/ 
testtools/ 
text/ 
tomcatint/ 
treefs/ 
usersguide/ 
utilities/ 
vcscore/ 
vcscvs/ 
vcsgeneric/ 
web/ 
webl/ 
websvc/ 
workspaceswitcher/ 
xml/ 
xmlbeans/ 
xtest/ 
 
 
According to mkleint the suspects are rmi and registry modules. 
 
Comment 5 Jesse Glick 2005-04-29 17:33:25 UTC
The error is correct; the rmi module was broken, which I already fixed. I will
also improve the error message to be more helpful.