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
Comment #1 by sebastien.arbogast:
I really need that feature as well