diff --git a/com.anjlab.eclipse.tapestry5/src/com/anjlab/eclipse/tapestry5/DefaultAssetResolver.java b/com.anjlab.eclipse.tapestry5/src/com/anjlab/eclipse/tapestry5/DefaultAssetResolver.java index a434ef5..14d6410 100644 --- a/com.anjlab.eclipse.tapestry5/src/com/anjlab/eclipse/tapestry5/DefaultAssetResolver.java +++ b/com.anjlab.eclipse.tapestry5/src/com/anjlab/eclipse/tapestry5/DefaultAssetResolver.java @@ -16,7 +16,14 @@ public IFile resolve(final String path, IFile relativeTo) throws AssetException @Override public String getFileName(String fileName, String fileExtension) { - return path; + int lastIndexOfDash = fileName.lastIndexOf('/'); + + if (lastIndexOfDash <= 0) + { + return path; + } + + return fileName.substring(0, lastIndexOfDash) + '/' + path; } });