Permalink
Browse files

Merge pull request #142 from koentsje/FORGE-551

Entity plugin does not pick-up created file if filename has spaces
  • Loading branch information...
2 parents 757ab6e + 74260a7 commit 39df9ee481589e815b60ac5da6ca5efeccd94fb0 @koentsje koentsje committed Apr 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 javaee-impl/src/main/java/org/jboss/forge/spec/javaee/jpa/EntityPlugin.java
@@ -53,6 +53,7 @@
/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
+ * @author <a href="mailto:koen.aers@gmail.com">Koen Aers</a>
*/
@Alias("entity")
@RequiresProject
@@ -134,7 +135,7 @@ else if (getPackagePortionOfCurrentDirectory() != null)
/**
* Pick up the generated resource.
*/
- shell.execute("pick-up " + javaFileLocation.getFullyQualifiedName());
+ shell.execute("pick-up " + javaFileLocation.getFullyQualifiedName().replace(" ", "\\ "));
}
/**

0 comments on commit 39df9ee

Please sign in to comment.