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 124082 - most localized visualweb1/modules/ext /locale files not being built
Summary: most localized visualweb1/modules/ext /locale files not being built
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: rbalada
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-15 17:49 UTC by Ken Frank
Modified: 2008-01-11 17:53 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to update several visualweb modules to build localized versions of their included J2SE libraries (14.99 KB, patch)
2008-01-07 16:33 UTC, rbalada
Details | Diff
Fix' commit log (1.76 KB, text/plain)
2008-01-07 16:37 UTC, rbalada
Details
Patch for webui, editors and jsfcl libraries (9.88 KB, patch)
2008-01-08 12:57 UTC, rbalada
Details | Diff
Commit log for second part (1.33 KB, text/plain)
2008-01-08 13:33 UTC, rbalada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-12-15 17:49:39 UTC
in ml builds, most of the visualweb/modules/ext localized files for all of
the 3 sun supported locales are not being built.

webui-jsf-dt_<locale>.jar
webui-jsf-suntheme_<locale>.jar
dataprovider_<locale>.jar
defaulttheme_<locale>.jar
defaulttheme-gray_<locale>.jar
defaulttheme-green_<locale>.jar
designtime_<locale>.jar
designtime-base_<locale>.jar
errorhandler_<locale>.jar
sqlx_<locale>.jar

The messages for these are in l10n kit, and a brief check of translatedfiles/src/visualweb
showed that the translated messages had been put back.

in visualweb1/modules/locale, the files are being built.

the only localized in ml build now for visualweb1/modules/ext/locale are
webui-jsf-dt_<locale>.jar
webui-jsf-suntheme_<locale>.jar

which I think are the ones delivered seprately from woodstock.

this is p1 since translation teams need all the localized jars to check their own work.
Comment 1 rbalada 2007-12-18 15:03:00 UTC
I can try to take a look at it, but I've already left for Christmas break and will be back in work on Jan 2nd. 
Comment 2 Ken Frank 2008-01-01 04:38:10 UTC
Thanks for looking at it. 

the translations for 6.0.1 ml nb for these areas are complete to my knowledge and translation teams need to
check their translations for these modules now since the final builds are happening
at second week of January.

ken.frank@sun.com
Comment 3 rbalada 2008-01-04 13:58:26 UTC
Assigning to me
Comment 4 rbalada 2008-01-04 14:02:57 UTC
Starting
Comment 5 rbalada 2008-01-04 17:46:35 UTC
I'll continue next week. I've identified those missing jarfiles are mostly results of j2se library project builds, which
are not running at NB IDE build time. The jarfiles are sort of "external libraries" made of locally available sources
and rebuilt&committed only on demand. This approach made it impossible to include them in regular NB Build. I'll update
build system of NB module projects, which include these jarfiles, that they have build also localized jarfiles for these
"external libraries".
Comment 6 Ken Frank 2008-01-04 18:49:25 UTC
can you see if there are localized jars in other packs/dirs  modules/ext dirs, that are not being built 
also, besides those in visualweb1 ?

ken.frank@sun.com
Comment 7 rbalada 2008-01-06 19:45:47 UTC
Ken, I have no procedure how to match L10N kit content with ML build content. I have no idea if there are any other
missing jarfiles.
Comment 8 Ken Frank 2008-01-06 20:14:34 UTC
Rudolf,

I should have been more clear; what was really trying to say was are there any other
localized jar files not being built because of the reasons you mention about the
visualweb ones, ie
"I've identified those missing jarfiles are mostly results of j2se library project builds, which
are not running at NB IDE build time. The jarfiles are sort of "external libraries" made of locally available sources
and rebuilt&committed only on demand"

ken.frank@sun.com
Comment 9 rbalada 2008-01-07 09:20:48 UTC
Ken,

I don't really know, nothing on my mind. With NB 6 consolidation we merged sources from several teams with similar, but
still different approach to source code and dependency organization. This allows for many curious/unique/exceptional
states in almost every module. AFAICT there's no easy automated way how to find missing jarfiles. The only way on my
mind is to try identify L10N kit content files within full English IDE zipfile and try to determine these files in
translatedfiles module and localized jarfile within full ML IDE zipfile. I can imagine technical solution, that it can
be done. However it's pretty difficult one-time-not-to-be-used-again task and I would say it could be easier to go
through it manually this time.
Comment 10 rbalada 2008-01-07 16:33:22 UTC
Created attachment 54759 [details]
Patch to update several visualweb modules to build localized versions of their included J2SE libraries
Comment 11 rbalada 2008-01-07 16:37:07 UTC
Created attachment 54760 [details]
Fix' commit log
Comment 12 rbalada 2008-01-07 16:37:37 UTC
Fixed
Comment 13 Ken Frank 2008-01-08 05:09:02 UTC
I don't see the following localized jars of these en ones in new build for visualweb1/modules/ext/locale
yet the paths in the en jars do look like path of rave cvs and the bundle files in
tnem are in the kit.
(using first 0108 visualweb.zip file)

I realize these were not listed in this issue originally, but it seems they too are from
nb cvs.

editor.jar
jsfcl.jar
webui.jar

webui-jsf.jar also, but not sure if the files are in the kit.

---> can you add these to the ml build also ? 

ken.frank@sun.com
Comment 14 Ken Frank 2008-01-08 05:16:06 UTC
of the localized jars that are now there in modules/ext/locale from nb,  I don't see 
any pt_BR ones - I have asked translation people if they have put them back but am mentioning
here in case its that they are not being built as part of this fix.

ken.frank@sun.com
Comment 15 rbalada 2008-01-08 10:58:57 UTC
Ken,

re pt_BR: I found no xlated files in translatedfiles module.

re webui-jsf.jar: localized jarfiles should be provided from Woodstock team, if required. Authoritative data source is
https://woodstock.dev.java.net/files/documents/6231/78991/Woodstock.4.1.1-l10n-200712030852.jar . If we should include
webui-jsf_${locale}.jar file, I don't know where exactly to put them within NB IDE files layout. It could be modules/ext
as well as modules/ext/locale. It depends how this 3rd party binary and it's 3rd party localizations all work.

re editors.jar, jsfcl.jar and webui.jar: I've prepared a patch and now doing full build test before checkin.

-R
Comment 16 rbalada 2008-01-08 12:57:49 UTC
Created attachment 54808 [details]
Patch for webui, editors and jsfcl libraries
Comment 17 rbalada 2008-01-08 13:33:28 UTC
Created attachment 54809 [details]
Commit log for second part
Comment 18 rbalada 2008-01-08 13:39:45 UTC
Ken,

Re: editors.jar, jsfcl.jar and webui.jar test build has been successful, change has been integrated.

Re: webui-jsf_${locale}.jar file - I'll discuss with Woodstock team how to proceed, resp. where to put the files.
Comment 19 Ken Frank 2008-01-08 16:25:51 UTC
webui-jsf.jar localized versions - I asked vwp manager for info if the localized versions
of it were delivered to us for nb6.  But I see that those localized files are in the jar
you mentioned so I think they also would go into modules/ext/locale, but its good to confirm
with woodstock in case they need to be elsewhere.

ken.frank@sun.com
Comment 20 Ken Frank 2008-01-10 06:56:02 UTC
will the woodstock delivered webui-jsf_<locale>.jars be put into ml build now,
based on info gotten from ws team ?

ken.frank@sun.com
Comment 22 rbalada 2008-01-10 20:23:27 UTC
From this point it looks like it has been fixed. Please verify the same.
Comment 23 Ken Frank 2008-01-11 05:57:44 UTC
reopening since the webui-jsf_<locale>.jar is not in latest/first
0111 build (not in visualweb-ml.zip
netbeans-6.0.1-200801110000-ml-visualweb.zip

please advise if that build is too soon for the fix to have happened.

ken.frank@sun.com
Comment 24 rbalada 2008-01-11 08:57:02 UTC
I confirm it's missing in that build. I'll check what happened.

BTW: I don't think webui-jsf_${locale}.jar files should go to modules/ext/locale directory. These localization jarfiles
are not handled by NetBeans' bundle localization/branding system. These are runtime localizations and are handled by
NB-independent localization resource loaders from webui-jsf.jar runtime library. These localizations are in use when Web
Application is running within J2EE web container, not in GUI of NB IDE. The runtime library webui-jsf.jar AFAICT expects
these localization jarfiles in the same directory as is the webui-jsf.jar library itself. Correct me if I'm wrong.
Comment 25 rbalada 2008-01-11 09:10:08 UTC
I've identified the root cause, which actually related to the 'locale' subdirectory. I've got potential fix for
visualweb/woodstock/components/nbproject/project.properties. I need a test case where I can check the localization is in
the right place. 


Petr or Marian, please assign me QE engineer familiar with woodstock components, especially with functionality in
webui-jsf.jar library (user/developer level). Thanks.
Comment 26 rbalada 2008-01-11 16:39:04 UTC
I've integrated a fix, which makes those jarfiles available for use in the IDE. There stays another question how
developer can use and deploy these localizations with her/his application. 

There are at least two options how to resolve:

#1 modify visualweb/project/jsf/libraries/woodstock-components.xml and explicitly refer those webui-jsf_${locale}.jar
localization jarfiles as resources for Visual Web JSF projects.

#2 document a process steps (workaround) where user/developer has to go to library management and use "Add a Jar"
function to add necessary visualweb1/modules/ext/locale/webui-jsf_${locale}.jar localization jarfiles to "Web UI
Components" library.

Note: the same may (to certain extent) apply to suntheme localization(s).
Comment 27 Ken Frank 2008-01-11 16:48:17 UTC
as to the fix, does it mean those loclaized jars will now be in visualweb1/modules/ext/locale
in the next build ?

as regards how to use these kind of jars or their location, were these delivered jars
in vwp in the past that was localized also, like for 551 ?

or if so, is the problem that layout and process of things in nb6 now is different so that
things that worked in 551 might not in 6.0 ?  

ken.frank@sun.com

Comment 28 rbalada 2008-01-11 17:44:34 UTC
> as to the fix, does it mean those loclaized jars will now be in visualweb1/modules/ext/locale
> in the next build ?

Yes. I'm sorry I was wrong regarding jarfiles location. They really belong to locales subdirectory, JSF project type is
trying to look for them in locale subdirectory.

> as regards how to use these kind of jars or their location, were these delivered jars
> in vwp in the past that was localized also, like for 551 ?

I don't really know. I've absolutely no knowledge about visualweb and woodstock components prior NB 6.0.

> or if so, is the problem that layout and process of things in nb6 now is different so that
> things that worked in 551 might not in 6.0 ?

This could be part of the problem. Consolidation of visualweb into netbeans 6 was (afaik) pretty difficult, so there is
great potential that "things that worked in 551 might not in 6.0". I repeat myself, I've got no knowledge about
visualweb 551 so I cannot compare it with 60.

Comment 29 Ken Frank 2008-01-11 17:53:44 UTC
when using localized nb, and I have webui-jsf_<locale>.jar there in modules/ext/locale,
it is added to the libraries section of the vwp libraries tab of a vwp project, along with localized versions
of jsfcl, dataprovider, sqlx, webui-jsf-suntheme. (which also live in modules/ext/locale

ken.frank@sun.com