You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Peter Donald <pe...@realityforge.org> on 2010/07/06 01:44:31 UTC

Re: Removing toplevel prefix from the generated IntelliJ IDEA .iml files

Hi,

You may want to check out buildr-iidea [1] which is an enhanced suite
of task to generate IDEA project files. It can be configured to do
what you want and much more besides that. If you try it out and find
anything missing then drop me a line.

[1] http://github.com/realityforge/buildr-iidea

On Mon, Jul 5, 2010 at 7:52 PM, Karl Trygve Kalleberg
<ka...@quantility.org> wrote:
> Hi gang,
>
> I've been browsing the online docs, the API docs and also looked at
> the IDEA buildr source code a bit, but if the answer was right there
> in my face, I didn't see it...
>
> I have a toplevel Buildfile in project foo, and a few subjects, say
> bar and baz. Inside baz/, I do buildr idea, and the file foo-bar.iml
> is generated. However, I want this file to be named bar.iml, i.e.
> without the toplevel prefix "foo-".
>
> In /var/lib/gems/1.8/gems/buildr-1.4.0/lib/buildr/ide/idea.rb, I found the line
>
>  task_name = project.path_to("#{project.name.gsub(':', '-')}.iml")
>
> which leads me to think that my desires are (i) unreasonable or (ii)
> reasonable, but not supported.
>
> Is there a way to (temporarily) change the project.name for just the
> idea target?

-- 
Cheers,

Peter Donald