buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Toulme <anto...@lunar-ocean.com>
Subject Re: Don't prepend the parent id to the subproject id
Date Tue, 25 Aug 2009 08:19:42 GMT
Thanks Rhett.
It works for individual projects.

But if in the final bundling project, I call
project('subp').package(:jar).to_s, it uses the default path.

So I guess I'm back to my original question. I need to override the id of
the project to avoid the parent prepending its id.
I'll look into the code.

Thanks,

Antoine

On Tue, Aug 25, 2009 at 04:15, Rhett Sutphin <rhett@detailedbalance.net>wrote:

> Hi Antoine,
>
> Checking my buildfile, the name of the parameter is actually "file" not
> "name".  That's what I get for trying to answer from memory.
>
> Rhett
>
>
> On Aug 24, 2009, at 6:58 PM, Antoine Toulme wrote:
>
>  Looks like it doesn't work for jars:
>>
>> package(:jar, :name =>
>> "org.eclipse.stp.bpmn.validation_#{project.version}.jar")
>>
>> no such option: name
>> /Users/antoine/w/stp/org.eclipse.stp.bpmn/trunk/buildfile:33
>>
>> /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:405:in
>> `raw_load_buildfile'
>>
>> /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in
>> `load_buildfile'
>>
>> /Library/Ruby/Gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in
>> `load_buildfile'
>>
>> On Tue, Aug 25, 2009 at 00:38, Rhett Sutphin <rhett@detailedbalance.net
>> >wrote:
>>
>>  Hi Antoine,
>>>
>>>
>>> On Aug 24, 2009, at 5:18 PM, Antoine Toulme wrote:
>>>
>>> Hi all,
>>>
>>>> for plenty of good reasons, I use a parent project to organize my
>>>> projects.
>>>>
>>>> However I am in dire need to not have the parent project id be prepended
>>>> to
>>>> the project id, and to the project produced artifacts, as they must
>>>> match
>>>> the Eclipse standard for Eclipse plugins.
>>>>
>>>> Here is my buildfile:
>>>>
>>>>
>>>> http://dev.eclipse.org/svnroot/stp/org.eclipse.stp.bpmn-modeler/org.eclipse.stp.bpmn/trunk/buildfile
>>>>
>>>> Is there a trick for this ?
>>>>
>>>>
>>> Do you mean that you want the jar names not to include the prefix?  For
>>> wars I've done
>>>
>>> package(:war, :name => "another-name.war")
>>>
>>> I presume the same thing works for jars, too.
>>>
>>> If you're looking to modify the task names, I don't know if that's
>>> possible.
>>>
>>> Rhett
>>>
>>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message