|
|||||
|
|||||
usage tips
Quick LaunchTry this to launch Marmalade quickly. Unable to find source-code formatter for language: marmaladelauncherexample.java. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml public void launchWithNoBellsOrWhistles() throws MarmaladeLaunchException { File script = new File("myScript.mmld"); Map outVars = new MarmaladeLauncher().withInputFile( script ) .withVariable( "valkey", "value" ) .run(); } public void launchStringBasedScriptWithRestrictedTaglibDiscovery() throws MarmaladeLaunchException { String script = "<set var=\"var\" value=\"${valkey}\" extern=\"true\" xmlns=\"marmalade:core\"/>"; Map vars = new MarmaladeLauncher().withInputLocation( "<embedded test>" ) .withInput( new StringReader( script ) ) .withVariable( "valkey", "value" ) .withAdditionalTaglibDefinitionStrategy( new PrefixedDefFileResolutionStrategy() ) .run(); } Using org.codehaus.marmalade.launch.MarmaladeLauncher, you get easy access to most of Marmalade's features without having to dig deep into the API. |
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||