Here is your bug , source is always null at the begining so the
warning is issued , after that everything is good.

       if ( source == null )
        {
            getLog().warn( "Source file was not defined, flex-mojos
will guess one." );
            source = resolveSourceFile( project, sourceFile );
        }

        if ( source == null )
        {
            throw new MojoExecutionException( "Source file not
expecified and no default found!" );
        }
        if ( !source.exists() )
        {
            throw new MojoFailureException( "Unable to find " +
sourceFile );
        }

On Jan 29, 3:07 pm, Marvin Froeder <[email protected]> wrote:
> So it is right.  Should be working.  Weird... I need to check that if it is
> not.
>
> VELO
>
> On Thu, Jan 29, 2009 at 11:05 AM, [email protected] <
>
>
>
> [email protected]> wrote:
>
> > mainapp.mxml
>
> > On Jan 29, 11:41 am, Marvin Froeder <[email protected]> wrote:
> > > Is your file name Mainapp.mxml or mainapp.mxml?
>
> > > VELO
>
> > > On Thu, Jan 29, 2009 at 3:54 AM, [email protected] <
>
> > > [email protected]> wrote:
>
> > > > well i know and this was the first i tested but somehow it does not
> > > > catch my mainapp.mxml maybe first letter must be in caps ?
> > > > here is the debug
>
> > > > [DEBUG]   (f) quick = false
> > > > [DEBUG]   (f) remoteRepositories = [[central] ->
> > > >http://repo1.maven.org/maven2]
> > > > [DEBUG]   (f) resourceBundlePath = D:\Dev\ccmTrunk\sourcetree\assets
> > > > \app\client\mainapp/src/main/locales/{locale}
> > > > [DEBUG]   (f) scriptMaxExecutionTime = 60
> > > > [DEBUG]   (f) scriptMaxRecursionDepth = 1000
> > > > [DEBUG]   (f) services = D:\Dev\ccmTrunk\sourcetree\assets\app\client
> > > > \resources\webapp\WEB-INF\flex\services-config.xml
> > > > [DEBUG]   (f) showWarnings = true
> > > > [DEBUG]   (f) sourceFile = mainapp.mxml
> > > > [DEBUG]   (f) strict = true
> > > > [DEBUG]   (f) targetPlayer = 9.0.0
> > > > [DEBUG]   (f) updateSecuritySandbox = true
> > > > [DEBUG]   (f) useNetwork = true
> > > > [DEBUG]   (f) useResourceBundleMetadata = true
> > > > [DEBUG]   (f) verboseStacktraces = false
> > > > [DEBUG]   (f) verifyDigests = true
> > > > [DEBUG] -- end configuration --
> > > > [INFO] [flex-compiler-mojo:compile-swf]
> > > > [INFO] Flex-mojos 2.0.3 - GNU GPL License (NO WARRANTY) - See
> > > > COPYRIGHT file
> > > > [WARNING] Source file was not defined, flex-mojos will guess one.
> > > > [INFO] Using configuration file D:\Dev\runtimes\FlexCompiler\default
> > > > \flex3.1\frameworks\flex-config.xml
>
> > > > On Jan 29, 1:59 am, Marvin Froeder <[email protected]> wrote:
> > > > > Hi, source file must be relativa to source folder.
>
> > > > > sourceFile = mainapp.mxml
>
> > > > > VELO
>
> > > > > On Wed, Jan 28, 2009 at 7:55 PM, [email protected] <
>
> > > > > [email protected]> wrote:
>
> > > > > > i specified the source file and it exist but this exception is
> > thrown,
> > > > > > the funny thing is that when i don't specify it the mojo guess it
> > > > > > correctly (although issue a warning) but when i do specify it , if
> > > > > > issue an exception :-)
>
> > > > > > [DEBUG]   (f) scriptMaxRecursionDepth = 1000
> > > > > > [DEBUG]   (f) services =
> > D:\Dev\ccmTrunk\sourcetree\assets\app\client
> > > > > > \resources\webapp\WEB-INF\flex\services-config.xml
> > > > > > [DEBUG]   (f) showWarnings = true
> > > > > > [DEBUG]   (f) sourceFile =
> > D:\Dev\ccmTrunk\sourcetree\assets\app\client
> > > > > > \mainapp\src\main\flex\mainapp.mxml
> > > > > > [DEBUG]   (f) strict = true
> > > > > > [DEBUG]   (f) targetPlayer = 9.0.0
> > > > > > [DEBUG]   (f) updateSecuritySandbox = true
> > > > > > [DEBUG]   (f) useNetwork = true
> > > > > > [DEBUG]   (f) useResourceBundleMetadata = true
> > > > > > [DEBUG]   (f) verboseStacktraces = false
> > > > > > [DEBUG]   (f) verifyDigests = true
> > > > > > [DEBUG] -- end configuration --
> > > > > > [INFO] [flex-compiler-mojo:compile-swf]
> > > > > > [INFO] Flex-mojos 2.0.3 - GNU GPL License (NO WARRANTY) - See
> > > > > > COPYRIGHT file
> > > > > > [WARNING] Source file was not defined, flex-mojos will guess one.
> > > > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > > > [ERROR] BUILD ERROR
> > > > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > > > [INFO] Source file not expecified and no default found!
> > > > > > [INFO]
>
> > ------------------------------------------------------------------------
> > > > > > [DEBUG] Trace
> > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Source file
> > > > > > not expecified and no default found!
> > > > > >        at
> > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
> > > > > > (DefaultLifecycleExecutor.java:583)
> > > > > >        at
>
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl­­­e
> > > > > > (DefaultLifecycleExecutor.java:49
> > > > > > 9)- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to