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 109380 - Cannot build the l10n-kit for visualweb/xhtml when l10n.list contains the new "antcall generate"
Summary: Cannot build the l10n-kit for visualweb/xhtml when l10n.list contains the new...
Status: RESOLVED DUPLICATE of bug 94655
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 5.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Ch Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 15:22 UTC by Ch Nguyen
Modified: 2007-07-16 19:58 UTC (History)
0 users

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 Ch Nguyen 2007-07-11 15:22:56 UTC
I'm following the example that was done in this issue 94655 for visualweb/xhtml module:
- on Solaris Sparc
- using jdk 1.5.0_06
- ant 1.7.0
but cannot get it to compile.

Basically, this is what I did:
1. after cvs update my workspace, I updated the visualweb/xhtml/l10n.list to contain something like:
antcall generate
read global

2. cd nbbuild; ant -D"cluster.config=visualweb" clean; ant -D"cluster.config=visualweb"

3. ant -Dfixedmodules=visualweb/xhtml -Dmodules= l10n-kit

This is what I got:
Buildfile: build.xml

-jdk-pre-preinit:

-jdk-preinit:

-jdk-warn:

-jdk-presetdef-basic:

-jdk-default:

-jdk-init:

assure-ant:

bootstrap:
     [echo] Bootstrapping NetBeans-specific Ant extensions...

init-module-list:

set-buildnumber:

init-tasks:

l10n-kit:
   [delete] Deleting directory /export/home/installtest/ctnguyen/visualweb_config/nbbuild/l10ndist
    [mkdir] Created dir: /export/home/installtest/ctnguyen/visualweb_config/nbbuild/l10ndist
    [mkdir] Created dir: /export/home/installtest/ctnguyen/visualweb_config/nbbuild/tmp
     [l10n] topdirs: [/export/home/installtest/ctnguyen/visualweb_config]
     [l10n] modules: [visualweb/xhtml]
     [l10n] distDir: l10ndist
     [l10n] buildDir: tmp
     [l10n] localizableFile: l10n.list
     [l10n] generatedFile: l10n.list.translated
     [l10n] changedFile: l10n.list.changed
     [l10n] globalFile: l10n-global.list
     [l10n] buildNumber: 070711
     [l10n] Reading visualweb/xhtml's list file:
/export/home/installtest/ctnguyen/visualweb_config/visualweb/xhtml/l10n.list
     [l10n] Going to execute custom target 'generate' in directory
'/export/home/installtest/ctnguyen/visualweb_config/visualweb/xhtml'

generate:
     [java] Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/rave/jsfmeta/generators/Main

BUILD FAILED
/export/home/installtest/ctnguyen/visualweb_config/nbbuild/build.xml:971: The following error occurred while executing
this line:
/export/home/installtest/ctnguyen/visualweb_config/visualweb/xhtml/build.xml:38: Java returned: 1

Total time: 4 seconds
Comment 1 rbalada 2007-07-12 17:03:11 UTC
Hi Chau,

my understanding is that the "generate" target does not work standalone, or at least not for me and then I see no issue
with L10N kit build. Please make sure following simple procedure works on plain checkout or at least after whole product
has been built.

$ cd nb_all/visualweb/xhtml
$ ant generate


Once it works standalone for you, then you can refer it from l10n.list file.

At this very moment following procedure to build the module first, and then run the "generate" target does not work either.

$ cd nb_all/visualweb/xhtml
$ ant
[...]
BUILD SUCCESSFULL

$ ant generate
[...]
BUILD FAILED
$

This is actually curious, because the default target in visualweb/xhtml/build.xml apparently calls the "generate" target
with a success, so it looks like incorrectly set dependencies of the "generate" target. At least verbose log shows a lot
of dropped classpath elements. I see nothing I could fix at this moment, thus reassigning back to you.
Comment 2 Ch Nguyen 2007-07-16 19:58:14 UTC

*** This issue has been marked as a duplicate of 94655 ***