[
https://issues.jboss.org/browse/FORGE-1204?page=com.atlassian.jira.plugin...
]
Lincoln Baxter III commented on FORGE-1204:
-------------------------------------------
Hey Robb,
Sorry you're having trouble, but this feature is definitely not broken (or nothing
would work and the release would have failed hard) - Since I'm guessing you
encountered this when upgrading to Alpha12, is it possible that the Resources Addon has
not started yet? Remember to check all the versions in your Addon.waitUntilStartd(...)
statements to give Furnace appropriate time to start up the Addons you need.
~Lincoln
ResourceFactory can't be retrieve from registry
-----------------------------------------------
Key: FORGE-1204
URL:
https://issues.jboss.org/browse/FORGE-1204
Project: Forge
Issue Type: Feature Request
Components: Addon Manager
Affects Versions: 2.0.0.Alpha12
Environment: Mac OSX Java 1.7.0_40
Reporter: Robb Greathouse
ResourceFactory resourceFactory = ((ResourceFactory)
registry.getExportedTypes(ResourceFactory.class));
No longer returns a ResourceFactory. Instead it returns an empty Hashset. This code is
used to create a DirectoryResource.
ResourceFactory resourceFactory = ((ResourceFactory)
registry.getExportedTypes(ResourceFactory.class));
ProjectFactory projectFactory = (ProjectFactory)
registry.getExportedTypes(ProjectFactory.class);
FacetFactory facetFactory = (FacetFactory)
registry.getExportedTypes(FacetFactory.class);
DirectoryResource dr = resourceFactory.create(DirectoryResource.class, forgeOutput);
DirectoryResource projectDir = dr.getChildDirectory(archive.getName());
projectDir.mkdir();
List<Class<JavaSourceFacet>> facetsToInstall = Arrays
.asList(JavaSourceFacet.class);
Project project = projectFactory.createProject(projectDir);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira