Sorry, I somehow forgot that BasicGradleProject is not something to query.
BasicGradleProject just works fine.


2013/9/4 Kelemen Attila <[email protected]>

> I unable to query BasicGradleProject (just like IdeaModule). I have sent
> you (Adam) a project with a very basic test code with which I'm able to
> reproduce the issue.
>
>
> 2013/9/4 Kelemen Attila <[email protected]>
>
>> 2013/9/4 Adam Murdoch [via Gradle] <
>> [email protected]>
>>
>>>
>>> On 31/08/2013, at 12:41 PM, kelemen <[hidden 
>>> email]<http://user/SendEmail.jtp?type=node&node=5711801&i=0>>
>>> wrote:
>>>
>>> Hi Alex, Adam,
>>>
>>> Alex: I can't test with NBAndroid because the Gradle Android plugin
>>> complains about the Gradle version. Is there anything I can do to disable
>>> this version checking?
>>>
>>> Adam: I can query `EclipseProject`, `GradleProject` and `IdeaProject`
>>> but not `IdeaModule`. Another problem is that if daemon is alive and I
>>> change the jars (rebuild) then weird exceptions are thrown telling me that
>>> a valid jar url cannot be opened.
>>>
>>> Also, can I ask you to adjust the current implementation of
>>> `GradleBuild` to have `getProjects` and `getRootProject` a more meaningful
>>> return value. For example: A type through which it is possible to query
>>> some of the basic properties of the project (project dir, path, build
>>> script).
>>>
>>>
>>> This change is in the release branch now, if you want to try it out. The
>>> type is called `BasicGradleProject` for want of a better name (suggestions
>>> for a better name welcome).
>>>
>>>
>> I will try this out tonight. Maybe it can be called
>> `EvaluatedGradleProject` but I'm not too confident about this name as well.
>>
>> I have some very minor comments on the interface:
>>
>> - You wrote that `Model` is to be deprecated, why is `Model` being
>> extended?
>> - The return value `DomainObjectSet<? extends BasicGradleProject>` is
>> slightly inconvenient (it is returned in many other places as well).
>> Although, it does prevent mutator methods to be called (without unsafe
>> cast) at compile time, I find it a little too noisy.
>>
>>
>>>
>>
>




--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Proposal-for-retrieving-multiple-types-of-models-from-a-project-in-a-single-pass-using-the-Tooling-AI-tp5711516p5711804.html
Sent from the gradle-dev mailing list archive at Nabble.com.

Reply via email to