Skip to content

Instantly share code, notes, and snippets.

@cstamas
Created December 17, 2009 10:18
Show Gist options
  • Save cstamas/258670 to your computer and use it in GitHub Desktop.
Save cstamas/258670 to your computer and use it in GitHub Desktop.
diff --git a/enunciate/xml/src/main/resources/org/codehaus/enunciate/modules/xml/wadl.fmt b/enunciate/xml/src/main/resources/org/codehaus/enunciate/modules/xml/wadl.fmt
index 19210fe..66abac4 100644
--- a/enunciate/xml/src/main/resources/org/codehaus/enunciate/modules/xml/wadl.fmt
+++ b/enunciate/xml/src/main/resources/org/codehaus/enunciate/modules/xml/wadl.fmt
@@ -31,7 +31,7 @@ Template library for WADL.
<${wadl}:resources base="${baseDeploymentAddress}">
[@forEachRESTResourceListByPath]
- <${wadl}:resource path="${(resources?first).metaData.defaultSubcontext!"/rest"}[#if !(resources?first).path.starts_with("/")]/[/#if]${(resources?first).path}">
+ <${wadl}:resource path="${(resources?first).metaData.defaultSubcontext!"/rest"}/${(resources?first).path}">
[#list resources as resource]
[@handleResourceMethod resource=resource contentTypes=uniqueContentTypes(resource)/]
[/#list]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment