Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Jul 11, 2023
1 parent 7e5d0d9 commit 49938dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import javax.tools.JavaFileObject;
import javax.tools.StandardLocation;

import io.helidon.build.common.Strings;
import io.helidon.common.types.TypeName;

import static io.helidon.pico.tools.ModuleUtils.PICO_MODULE_INFO_JAVA_NAME;
Expand Down Expand Up @@ -478,6 +479,7 @@ private Filer scratchFiler() throws IOException {
private Optional<Path> codegenResourceFilerOut(String outPath,
String body,
Optional<Function<InputStream, String>> optFnUpdater) {
outPath = Strings.normalizePath(outPath);
Messager messager = messager();
if (!filerWriterEnabled()) {
messager.log("(disabled) Writing " + outPath + " with:\n" + body);
Expand Down
4 changes: 2 additions & 2 deletions pico/tools/src/main/java/io/helidon/pico/tools/TypeTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ public static String toFilePath(TypeName typeName,
if (!hasValue(packageName)) {
packageName = "";
} else {
packageName = packageName.replace('.', File.separatorChar);
packageName = packageName.replace('.', '/');
}

if (!fileType.startsWith(".")) {
fileType = "." + fileType;
}

return packageName + File.separatorChar + className + fileType;
return packageName + "/" + className + fileType;
}

/**
Expand Down

0 comments on commit 49938dc

Please sign in to comment.