You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:21:07 UTC
[sling-org-apache-sling-commons-compiler] 05/08: SLING-2509 -
changing file name in compiler to be slash delimited instead of period
delimited to generate correct debug information (thanks to Stefan
Guggisberg for the patch)
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.commons.compiler-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-compiler.git
commit 78a535d6cc17b38821d8c33ec8f0b0cf5a77df2e
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Fri Jun 22 12:48:31 2012 +0000
SLING-2509 - changing file name in compiler to be slash delimited instead of period delimited to generate correct debug information (thanks to Stefan Guggisberg for the patch)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/commons/compiler@1352867 13f79535-47bb-0310-9956-ffa450edef68
---
.../org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java b/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
index 2d7b6d9..0f4e49f 100644
--- a/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
+++ b/src/main/java/org/apache/sling/commons/compiler/impl/EclipseJavaCompiler.java
@@ -453,7 +453,7 @@ public class EclipseJavaCompiler implements JavaCompiler {
* @see org.eclipse.jdt.internal.compiler.env.IDependent#getFileName()
*/
public char[] getFileName() {
- return (this.packageName + '.' + this.mainTypeName + ".java").toCharArray();
+ return (this.packageName.replace('.', '/') + '/' + this.mainTypeName + ".java").toCharArray();
}
}
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.