Hi,

Short version:

Two questions:
A: After working-around lots of other errors, I see...
[ERROR] Unable to resolve resource bundle "text" for locale "en_US".
... in "l10n-swc-swf" and "todolist" but can't seem to solve!

B: What am I doing wrong that I've seen so many problems (see below)

Details:

Firstly, thanks for the great FlexMojos plugin!  Despite my having
problems, my project's highly likely to adopt once we can get past
these problems.  We look forward to use and, when we're better
acquainted, perhaps helping out.  So, niceties done and on to the
pleading for help ;-)

In preparation of switching our multi- Flex-Modules and SWCs and RSLs
AIR Flex4 project over to using FlexMojos, I thought I'd start with
the 'todolist' project.  I had some problems which I managed to
workaround (see below) then hit a resource-bundle one (see (8) below)
that I couldn't side-step.  Checking the forum, I found reference to
"l10n-swc-swf" so I tried that and saw many of the same problems.
I've spent several hours trying to solve so figure its time to ask my
two big questions:
 A: How to solve the resource bundle error
 B: What am I doing wrong that I've seen so many problems at all !?

For specificity, the projects I referred to above I checked-out with
SVN from:
 http://svn.sonatype.org/flexmojos/trunk/flexmojos-touchstone/todolist
 
http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/projects/concept/l10n-swc-swf
I've documented the 'l10n' problems since it's a simpler project.  The
differences between problems experienced are:

* 'todolist' has an extra "<scope>rsl</scope>" problem -- I had to
remove it to get 'todolist' to find ITodoService and TodoItem symbols.
* 'l10n' has the "flexmojos-flex-super-pom" complaint (see (5) below)
which I'm not sure what to do about.

Here are a reasonable list of my steps including things I've tried to
workaround problems:

   1. Installed Maven 3.0-beta-1 (the most recent, at FlexMojos
request for a 3 alpha something?)
   2. svn co 
http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/projects/concept/l10n-swc-swf
   3. I added what the readme advised adding to my $HOME/.m2/
settings.xml
   4. "mvn -X clean install" and get failures due to "%
{flexmojos.version}" appearing in the "lib" and "app" "pom.xml" as
follows:

          <parent>
              <groupId>org.sonatype.flexmojos</groupId>
              <artifactId>flexmojos-flex-super-pom</artifactId>
              <version>%{flexmojos.version}</version>
          </parent>

   5. I replaced these (both projects) with "4.0-pre-alpha-1" and now
I can build "lib", albeit with a warning:

      [WARNING] Some problems were encountered while building the
effective model for info.rvin.itest:l10n-lib:swc:1.0-SNAPSHOT
      [WARNING] 'parent.relativePath' of POM info.rvin.itest:l10n-lib:
1.0-SNAPSHOT (C:\Users\Arkade\Dev\FlexMojoTest\l10n-swc-swf\lib
\pom.xml) points at info.rvin.itest:l10n-swc-swf instead of
org.sonatype.flexmojos:flexmojos-flex-super-pom, please verify your
project structure @
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because
they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer
support building such malformed projects

   6. "app" fails with:

      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:[245,-1]
The style 'backgroundColor' is only supported by type
'mx.core.Application' with the theme(s) 'halo, spark'.
      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:[487,-1]
The style 'dropShadowVisible' is only supported by type
'mx.controls.List' with the theme(s) 'spark'.
      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:[504,-1]
The style 'cornerRadius' is only supported by type 'mx.core.Container'
with the theme(s) 'halo, spark'.
      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:
[1506,-1] The style 'borderColor' is only supported by type
'mx.controls.ToolTip' with the theme(s) 'halo, spark'.
      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:
[1504,-1] The style 'backgroundColor' is only supported by type
'mx.controls.ToolTip' with the theme(s) 'halo, spark'.
      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:
[1509,-1] The style 'cornerRadius' is only supported by type
'mx.controls.ToolTip' with the theme(s) 'halo, spark'.
      [WARNING] C:\Users\MyUser\.m2\repository\com\adobe\flex\framework
\framework\4.0.0.13875\framework-4.0.0.13875.swc$defaults.css:
[1506,-1] The style 'backgroundAlpha' is only supported by type
'mx.controls.ToolTip' with the theme(s) 'halo, spark'.
      [ERROR] Unable to resolve resource bundle "text" for locale
"en_US".

   7. Looking around in project directory, I notice the "spark.css" so
I explicitly add:

                <themes>
                  <theme>${project.build.directory}/classes/configs/
themes/Spark/spark.css</theme>
                </themes>

   8. This reduces the errors to the previous last line only:

      [ERROR] Unable to resolve resource bundle "text" for locale
"en_US".

   9. The difference between "lib" and "app" seems to be use of
"runtimeLocales" and "compiledLocales" respectively to contain the
locales.  "lib" has them in its folder whereas "app" has same folders
but with no contents.
  10. I copied the files from one to the other, the error remains.
  11. tried misc. fiddling with "locales", "runtimeLocales" and
"compiledLocales" to no avail :-(

All thoughts welcome!  Many thanks in advance!
Rupert.

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to