Hi Logan,

Having checked the raw output - I think the &qout;s are formatted by
Continuum's web interface, the raw command line ouptut in the logs has
plain quotation marks.

Looking at the source for FlexUnitLauncher.java, it has changed the
way it is launching the process between M9 and M10, now using the
plexus cli utils, which I'm not familiar with, instead of plain
Runtime.exec():

M9:

System.err.println( "runtests: " + Arrays.asList( launcherCommand ) );
if ( launcherCommand != null )
{
    launcherCommand = StringUtils.concat( launcherCommand, new String
[] { swf.getAbsolutePath() } );
    System.err.println( "exec: " + Arrays.asList( launcherCommand ) );
    Runtime.getRuntime().exec( launcherCommand );
}


M10:
if ( launcherCommand != null )
{
    launcherCommand = StringUtils.concat( launcherCommand, new String
[] { swf.getAbsolutePath() } );
    log.debug( "exec: " + Arrays.asList( launcherCommand ) );
    Commandline cl = new Commandline();
    cl.setExecutable( launcherCommand[0] );
    for ( int i = 1; i < launcherCommand.length; i++ )
    {
        cl.createArg().setValue( launcherCommand[i] );
    }
    StreamConsumer stdout = new StreamConsumer()
    {
        public void consumeLine( String line )
        {
            log.debug( "[SYSOUT]: "+line );
        }
    };

    StreamConsumer stderr = new StreamConsumer()
    {
        public void consumeLine( String line )
        {
            log.debug( "[SYSERR]: "+line );
        }
    };
    log.debug("commandline: "+cl);
    int result = CommandLineUtils.executeCommandLine( cl, stdout,
stderr );
    log.debug("result: "+result);
}

This is on Windows XP by the way. Let me know if I can test further,

Best regards,

Bob

On Dec 15, 7:14 pm, "RedBugz Software" <[email protected]> wrote:
> On Mon, Dec 15, 2008 at 9:32 AM, Bob <[email protected]> wrote:
> > Aha that sheds some light - is it a PATH issue? I use the same user to
> > run Continuum as I do to run it from the command line, so it should be
> > using the same path:
>
> It's possible, however, it is my understanding that rundll32 is on the
> default system path for Windows, and so should be always available to
> everyone. However, I'm quite ignorant of Windows, so I could easily be
> mistaken. I do know that Runtime.exec() in Java uses a very minimal
> environment, not the users environment, and likely won't have custom
> changes to the PATH for that user.
>
> > [DEBUG] exec: [rundll32, url.dll,FileProtocolHandler, E:\JavaBuilds
> > \Continuum\working-directory\6\XXXXXXXX\target\test-classes
> > \TestRunner.swf]
> > [DEBUG] commandline: cmd.exe /X /C &quot;rundll32
> > url.dll,FileProtocolHandler E:\JavaBuilds\Continuum\working-directory
> > \6\XXXXXXXX\target\test-classes\TestRunner.swf&quot;
> > [DEBUG] opened server socket
> > [DEBUG] [SYSERR]: 'rundll32' is not recognized as an internal or
> > external command,
>
> Here's the crux of the problem. It can't find rundll32. I don't know
> if the &quot; could be causing the problems or not. Try running it
> exactly as it appears after the commandline: , if it fails, try
> running it with the &quot; replaced by quotations marks (").
>
> > When I ran it from the command line with the same arguments Continuum
> > uses: "-X --batch-mode -Dsnapshot=true", it still works. I wondered if
> > "batch-mode" was significant,it doesn't seem to be.
>
> When you run it from the command line, if it works, then you shouldn't
> get the 'rundll32' is not recognized error like you do in maven. Does
> the commandline: look different as well? The text after the
> commandline: statement is what gets passed into Java's Runtime.exec().
> I've only ever tested myself on Windows XP, and rundll32 seems to work
> fine. I was under the impression that someone had run it in Vista
> without problems, but that may not be the case. Is this running on
> Vista or Windows Server?
>
> Logan
--~--~---------~--~----~------------~-------~--~----~
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