Closed GoogleCodeExporter closed 9 years ago
I've downloaded the source code and started the plugin in Debug mode.
the line ComponentCore.createComponent(project);
returns a null.
public static void createModuleEntry(IProject project, String moduleName) throws
CoreException {
IVirtualComponent component = ComponentCore.createComponent(project);
IVirtualFolder folder = component.getRootFolder().getFolder("/");
IContainer[] underlyingFolders = folder.getUnderlyingFolders();
IResource[] underlyingResources = folder.getUnderlyingResources();
IVirtualResource[] members = folder.members();
// IVirtualResource[] members = folder.members();
// IVirtualFolder folder2 = folder.getFolder(new
Path(getGwtOutputFolder()).append(moduleName));
// IContainer[] underlyingFolders = folder.getUnderlyingFolders();
IVirtualFolder moduleOutputFolder = component.getRootFolder().getFolder("/");
//$NON-NLS-1$
moduleOutputFolder.createLink(new Path(getGwtOutputFolder()).append(moduleName),
IResource.FORCE, null);
}
Original comment by t.bussie...@gmail.com
on 3 Dec 2007 at 10:07
Hi
Are you sure than your project has wtp nature ?
Olivier
Original comment by olivier....@gmail.com
on 11 Apr 2008 at 9:55
You should create a module only in Dynamic web projects. If you try to create
it on a
normal java project, this exception will be thrown
Original comment by grprakash
on 26 Apr 2008 at 8:29
Original issue reported on code.google.com by
t.bussie...@gmail.com
on 3 Dec 2007 at 10:04