You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2010/02/05 13:18:30 UTC

svn commit: r906914 - /labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/producers/TemplatingProducerHook.aj

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: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org