[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [tigerstripe-dev] Question regarding accessing artifact's project for artifact in module
|
Title: Re: [tigerstripe-dev] Question regarding accessing artifact's project for artifact in module
Hi Eric,
Thanks for the reply. I found an alternative way to do
this, i.e. pass $allArtifacts to the Model method in which I was
previously executing the query (as below).
Thanks
Duncan
HI Duncan,
Hmmm... I’m afraid this has been there
for a while now.
The question is what are you trying to do? Artifacts are
expected to live in a Model project, which is what is being returned by
getTigerstripeProject.
The logic doesn’t work currently for those that are in
a module, within a project. So, I guess we could return that project? Would that
work for you?
What that means though is that your query would run within
the scope of the surrounding project, not within the module scope.
Does that
make sense?
Eric
On 7/9/08 5:13 AM, "Duncan Keysell
(dkeysell)" <dkeysell@xxxxxxxxx>
wrote:
Hi,
For the
tigerstripe-documentation generator I am trying to get hold of the
ITigerstripeModelProject for artifacts within a Dependency module (see request
in bugzilla 239395). Once I have the project I can then retrieve its session
and run a query. See the code below:
ITigerstripeModelProject project = artifact.getTigerstripeProject();
IArtifactManagerSession session =
project.getArtifactManagerSession();
IArtifactQuery query = session.makeQuery(IQueryAllArtifacts.class.getName());
However I get a null pointer exception trying to retrieve the
Project for artifacts within modules. Is there some way around this currently
or can the external API be extended to allow this? Should I raise a bugzilla
for that?
Thanks
Duncan
This e-mail may
contain confidential and privileged material for the sole use of the intended
recipient. Any review, use, distribution or disclosure by others is strictly
prohibited. If you are not the intended recipient (or authorized to receive
for the recipient), please contact the sender by reply e-mail and delete all
copies of this message.
Cisco Systems Limited (Company Number:
02558939), is registered in England and Wales with its registered office at 1
Callaghan Square, Cardiff, South Glamorgan CF10 5BT
_______________________________________________
tigerstripe-dev
mailing list
tigerstripe-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tigerstripe-dev