Currently there's no ability to build NetBeans
prepackaged with some certain language.
For e.g., there're 4 languages in translatedfiles
module, but there's no way to have only one of
them included into the NetBeans build.
There definitely needs to be a solution.

Maxym,
it seem there already is a solution in nbbuild/mlbuild/build.xml.
We should probably merge it from release35 branch to trunk. Maybe some
more language oriented granularity inside the
nbbuild/mlbuild/build.xml file would be fine, but we certainly have
already working solution.
Let me know your opinion.
Administrative note: please set Target Milestone for further evaluation.

Actually I'd like to:
- be able to build Russian NetBeans 3.5 myself
- let it other developers
- let it buildmasters, because:
I'd like to have NetBeans 3.5 Russian FCS
So the target Milestone is "3.5"

I'm not sure why the <target name="all-a11y" ... is needed, to me,
nbbuild/build.xml shouldn't be patched at all, or patched under
separate issue.
nbbuild/mlbuild/buil.xml is too complex, could there be a possibly
eaisier solution?
Like <property locales="ru,fr,ja">
And a special task to copy these locale files?

Maxym,
I have had to solve better modularity/granularity for language
packaged NetBeans for "default" MultiLingual build. To make it happen
I used your issue which was just a part of the whole solution and
escalated it to more complex solution. There was no reason bother
myself with another issue directly related. The target all-a11y was
necessary to successfully build Update Centre NBMs independently on
locale (for Russian NBMs too, even it must not be localized). The
build process has to build all the NBMs for any language, even the
localization is not present for that language. This solution allows us
to create language separated Update Centres and don't bother with
completing Language-separated NBM packages with EN-only NBMs.
To build NetBeans with:
- English and Russian locale, invoke ant -f
nb_all/nbbuild/mlbuild/build.xml -Dnetbeans.russian=true buildide.
- English and French locale, invoke ant -f
nb_all/nbbuild/mlbuild/build.xml -Dnetbeans.french=true buildide.
- English and Japanese locale, invoke ant -f
nb_all/nbbuild/mlbuild/build.xml -Dnetbeans.japanese=true buildide.
- English and Chinese locale, invoke ant -f
nb_all/nbbuild/mlbuild/build.xml -Dnetbeans.chinese=true buildide.
To build NBMs, run target "buildnbms" instead of "buildide".
I don't recommend trying to build IDE and NBMs in one command as it
may fail with java.lang.OutOfMemory error (may be introduced
indirectly by strange NoClassDefFound). Running the targets separately
is safe with ANT_OPTS="-Xmx400m". Maybe lower memory settings could
work too.
After build, the package files can be found:
IDE:nbbuild/mlbuild/NetBeansIDE-release35-${buildnumber}-ML*.zip
NBMs:nbbuild/mlbuild/NetBeansIDE-release35-${buildnumber}-ML-*nbms.zip