Skip to content

Commit

Permalink
Add missing beans.xml and Fix project renaming logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed May 9, 2013
1 parent d02152d commit 7fc47f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions addons/api/src/main/resources/META-INF/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd" />
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public void setupAddonProject(Project project, Version forgeVersion, Iterable<Ad
metadata.setProjectName(projectName + "-parent");
DirectoryResource newRoot = project.getProjectRoot().getParent().getChildDirectory(metadata.getProjectName());
// FORGE-877: there's an eclipse (not m2e) limitation that says if a project is located directly in the workspace
// folder, then the project name must match the project folder name
if (!newRoot.exists() && !project.getProjectRoot().renameTo(newRoot))
// folder, then the imported project's name is always the same as the folder it is contained in.
if (newRoot.exists() || !project.getProjectRoot().renameTo(newRoot))
{
log.warning("Could not rename project root");
}
Expand Down

0 comments on commit 7fc47f7

Please sign in to comment.