Skip to content

Commit d46a7e5

Browse files
committed
support source files with spaces
1 parent 0f80bfc commit d46a7e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gp-maven-plugin/src/main/java/com/ibm/g11n/pipeline/maven/GPBaseMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private String pathToBundleId(ResourceType type, String path) {
207207
String pkgName = parent == null ? "" :
208208
parent.getPath().replace(File.separatorChar, '.');
209209

210-
String fileName = f.getName();
210+
String fileName = f.getName().replaceAll(" ", "_");
211211
if (type == ResourceType.JAVA) {
212212
int dotIdx = fileName.indexOf('.');
213213
if (dotIdx >= 0) {

0 commit comments

Comments
 (0)