@Override public org.guvnor.common.services.project.model.Package resolvePackage(final Path resource) { try { //Null resource paths cannot resolve to a Module if (resource == null) { return null; } //If Path is not within a Module we cannot resolve a package final Module module = resolveModule(resource); if (module == null) { return null; } //pom.xml is not inside a package if (isPom(resource)) { return null; } return makePackage(module, resource); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public org.guvnor.common.services.project.model.Package resolvePackage(final Path resource) { try { //Null resource paths cannot resolve to a Module if (resource == null) { return null; } //If Path is not within a Module we cannot resolve a package final Module module = resolveModule(resource); if (module == null) { return null; } //pom.xml is not inside a package if (isPom(resource)) { return null; } return makePackage(module, resource); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public org.guvnor.common.services.project.model.Package resolvePackage(final Path resource) { try { //Null resource paths cannot resolve to a Project if (resource == null) { return null; } //If Path is not within a Project we cannot resolve a package final Project project = resolveProject(resource); if (project == null) { return null; } //pom.xml is not inside a package if (isPom(resource)) { return null; } return makePackage(project, resource); } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }