Issue 35 in israfil-mojo: Missing ability to add context-root compiler option for flex apps which use BlazeDS

22 views
Skip to first unread message

codesite...@google.com

unread,
Mar 23, 2008, 10:39:32 PM3/23/08
to israfil-m...@googlegroups.com
Issue 35: Missing ability to add context-root compiler option for flex
apps which use BlazeDS
http://code.google.com/p/israfil-mojo/issues/detail?id=35

New issue report by behmann:
What steps will reproduce the problem?
1. create a flex app that uses a BlazeDS application
2. point the dataServicesConfig configuration node to your services-config.xml
- if the services-config.xml file has a parameterized value for
context.root in the channel-
definition endpoint url, the build will fail.

What is the expected output?
Build Success

What do you see instead?
[INFO] Error: The services configuration includes a
channel-definition 'secure-amf' that has an
endpoint with a context.root token but a context root has not been
defined. Please specify a
context-root compiler argument.
[INFO]
[INFO] flex.messaging.config.ConfigurationException: The services
configuration includes a
channel-definition 'secure-amf' that has an endpoint with a
context.root token but a context
root has not been defined. Please specify a context-root compiler argument.
[INFO] at flex.messaging.config.ChannelSettings.parseClientUri(ChannelSettings.java:170)
[INFO] at flex.messaging.config.ChannelSettings.getClientParsedUri(ChannelSettings.java:129)
[INFO] at
flex.messaging.config.ServicesDependencies.codegenXmlInit(ServicesDependencies.java:464)
[INFO] at flex.messaging.config.ServicesDependencies.<init>(ServicesDependencies.java:46)
[INFO] at
flex2.compiler.common.CompilerConfiguration.getServicesDependencies(CompilerConfiguration.
java:1201)
[INFO] at flex2.tools.Compiler.calculateServicesChecksum(Compiler.java:635)
[INFO] at flex2.tools.Compiler.processConfiguration(Compiler.java:572)
[INFO] at flex2.tools.Compiler.processConfiguration(Compiler.java:428)
[INFO] at flex2.tools.Compiler.mxmlc(Compiler.java:82)
[INFO] at flex2.tools.Compiler.main(Compiler.java:53)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] at java.lang.reflect.Method.invoke(Method.java:585)
[INFO] at
net.israfil.mojo.flex2.StreamedParameterExecutableWrapper.main(StreamedParameterExecutable
Wrapper.java:62)
[INFO] ---------------------------------------------------------------------
---
[ERROR] BUILD ERROR

What version of the product are you using? On what operating system?
1.4-SNAPSHOT / Mac os x 10.5


Suggested Resolution:
Add the following property to AbstractFlexCompilerMojo.java:
/**
* @parameter
*/
protected String contextRoot;


Add the following line after the binary options are set (around line
195 of the same file:
if (contextRoot != null) parameters.add("-compiler.context-root=" + contextRoot);

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Mar 23, 2008, 10:42:56 PM3/23/08
to israfil-m...@googlegroups.com
Issue 35: Missing ability to add context-root compiler option for flex
apps which use BlazeDS
http://code.google.com/p/israfil-mojo/issues/detail?id=35

Comment #1 by sebastien.arbogast:
I really need that feature as well

Reply all
Reply to author
Forward
0 new messages