Author: simoneg
Date: Fri Feb 5 12:18:29 2010
New Revision: 906914
URL: http://svn.apache.org/viewvc?rev=906914&view=rev
Log:
Fix for checking for missing files
Modified:
labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/producers/TemplatingProducerHook.aj
Modified:
labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/producers/TemplatingProducerHook.aj
URL:
http://svn.apache.org/viewvc/labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/producers/TemplatingProducerHook.aj?rev=906914&r1=906913&r2=906914&view=diff
==============================================================================
---
labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/producers/TemplatingProducerHook.aj
(original)
+++
labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/producers/TemplatingProducerHook.aj
Fri Feb 5 12:18:29 2010
@@ -31,14 +31,15 @@
TemplatingProducer around(String path) :
call(TemplatingProducer.new(String)) && args(path) {
if (path != null && path.length() == 0) path = null;
WebMethodContextElement ele =
RunningContext.get().getLast(WebMethodContextElement.class);
- if (ele == null) return proceed("/?/?/" + path);
if (path == null) {
+ if (ele == null) return proceed("/?/?/" + path);
path =
LinkHelper.linkNameFromMethodName(ele.getMethod().getName());
}
String complete = null;
if (!path.startsWith("/")) {
+ if (ele == null) return proceed("/?/?/" + path);
complete =
ele.getHandlerInstance().getClass().getName();
complete = complete.substring(0,
complete.lastIndexOf('.'));
complete = complete.replace('.','/');
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]