shortcuts to Ant targets

OK--stupid question. Tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> says "...we can
add a shortcut to a project Ant target...". Well, I'm having trouble doing
even that.

I have added a Ant project, and I see Ant Targets listed in the Keymap
Settings, but I cannot expand Ant Targets. In the Ant Build window, when I
right-click on an ant target, the "Assign shortcut..." menu entry is
insensitive.

Is there some magic widget somewhere I have to enable? (This is with the
3.0 release build if that matters.)

Kendall


10 comments
Comment actions Permalink

On Mon, 11 Nov 2002 21:29:43 -0600, "Kendall Collett"
<kcollett@jump.net> wrote:
>Is there some magic widget somewhere I have to enable? (This is with the
>3.0 release build if that matters.)
You just have to start making a new keymap. Make a copy of one of the
others, and then make it active.

Thomas

0
Comment actions Permalink

Hello Kendall!

Please go to the Ant build file properties dialog, tab Filter Targets.
Shortcuts are assignable to the targets that are checked on that page.

--
Best regards,
Anton Katilin
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqpsj8$3so$1@is.intellij.net...

OK--stupid question. Tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> says "...we

can

add a shortcut to a project Ant target...". Well, I'm having trouble

doing

even that.

>

I have added a Ant project, and I see Ant Targets listed in the Keymap
Settings, but I cannot expand Ant Targets. In the Ant Build window, when

I

right-click on an ant target, the "Assign shortcut..." menu entry is
insensitive.

>

Is there some magic widget somewhere I have to enable? (This is with the
3.0 release build if that matters.)

>

Kendall

>
>


0
Comment actions Permalink

Good idea, but I do have a new keymap (based on default), and that keymap
is the active one.

Kendall

"Thomas Saxtoft" <ts@sondagsavisen.dk> wrote in message
news:2qh1tuk1bikdlvhh1r13h8g1n1fl62jh7v@4ax.com...

On Mon, 11 Nov 2002 21:29:43 -0600, "Kendall Collett"
<kcollett@jump.net> wrote:
>Is there some magic widget somewhere I have to enable? (This is with the
>3.0 release build if that matters.)
You just have to start making a new keymap. Make a copy of one of the
others, and then make it active.



0
Comment actions Permalink

Whether the Ant target appears in the filtered target list doesn't seem to
matter. "Assign shortcut..." is insensitive even for entries that are
checked in the Filter Targets tab.

Kendall

PS: I don't know if this should matter, but the keymap that I'm using was
copied from the default one circa build #668 (version="1"), and the project
I'm using was created circa build #670 (project version="3").

"Anton Katilin" <anton@intellij.com> wrote in message
news:aqqhhh$uls$1@is.intellij.net...

Please go to the Ant build file properties dialog, tab Filter Targets.
Shortcuts are assignable to the targets that are checked on that page.

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqpsj8$3so$1@is.intellij.net...

OK--stupid question. Tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> says "...we
can add a shortcut to a project Ant target...". Well, I'm having

trouble doing

even that.

>

I have added a Ant project, and I see Ant Targets listed in the Keymap
Settings, but I cannot expand Ant Targets. In the Ant Build window,

when

I right-click on an ant target, the "Assign shortcut..." menu entry is
insensitive.

>

Is there some magic widget somewhere I have to enable? (This is with

the

3.0 release build if that matters.)



0
Comment actions Permalink

On Tue, 12 Nov 2002 07:57:14 +0000, Kendall Collett wrote:

Good idea, but I do have a new keymap (based on default), and that keymap is
the active one.


Is it possible to associate a keymap with a project? So that if we change
projects, it selects the other keymap (which compiles the different ant
target)

--

-- \m/ --
"...if I seem super human I have been misunderstood." (c) Dream Theater
mark@talios.com - ICQ: 1934853 JID: talios@myjabber.net

0
Comment actions Permalink

I believe that sort of flexibility is what tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> is addressing.

Kendall

"Mark Derricutt" <mark@talios.com> wrote in message
news:pan.2002.11.12.20.52.42.597362@talios.com...

On Tue, 12 Nov 2002 07:57:14 +0000, Kendall Collett wrote:

>

Good idea, but I do have a new keymap (based on default), and that

keymap is

the active one.

>

Is it possible to associate a keymap with a project? So that if we change
projects, it selects the other keymap (which compiles the different ant
target)



0
Comment actions Permalink

FYI, I tried the following:

o uninstalled Idea

o moved .IntelliJIdea to some other directory

o reinstalled Idea (3.0 release)

o created a new project

o added the Ant buildfile to the project

o created a copy of the default keymap and made the copy the active
keymap

I still see the same result. :(

Kendall

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqr2lr$sd$1@is.intellij.net...

Whether the Ant target appears in the filtered target list doesn't seem to
matter. "Assign shortcut..." is insensitive even for entries that are
checked in the Filter Targets tab.

>

Kendall

>

PS: I don't know if this should matter, but the keymap that I'm using was
copied from the default one circa build #668 (version="1"), and the

project

I'm using was created circa build #670 (project version="3").

>

"Anton Katilin" <anton@intellij.com> wrote in message
news:aqqhhh$uls$1@is.intellij.net...

Please go to the Ant build file properties dialog, tab Filter Targets.
Shortcuts are assignable to the targets that are checked on that page.

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqpsj8$3so$1@is.intellij.net...

OK--stupid question. Tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> says

"...we

can add a shortcut to a project Ant target...". Well, I'm having

trouble doing

even that.

>

I have added a Ant project, and I see Ant Targets listed in the Keymap
Settings, but I cannot expand Ant Targets. In the Ant Build window,

when

I right-click on an ant target, the "Assign shortcut..." menu entry is
insensitive.

>

Is there some magic widget somewhere I have to enable? (This is with

the

3.0 release build if that matters.)



0
Comment actions Permalink

Hello Kendall !

Is 'name' attribute specified in the 'project' tag of your Ant xml?

--
Best regards,
Anton Katilin
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqskk3$v1b$1@is.intellij.net...

FYI, I tried the following:

>

o uninstalled Idea

>

o moved .IntelliJIdea to some other directory

>

o reinstalled Idea (3.0 release)

>

o created a new project

>

o added the Ant buildfile to the project

>

o created a copy of the default keymap and made the copy the active
keymap

>

I still see the same result. :(

>

Kendall

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqr2lr$sd$1@is.intellij.net...

Whether the Ant target appears in the filtered target list doesn't seem

to

matter. "Assign shortcut..." is insensitive even for entries that are
checked in the Filter Targets tab.

>

Kendall

>

PS: I don't know if this should matter, but the keymap that I'm using

was

copied from the default one circa build #668 (version="1"), and the

project

I'm using was created circa build #670 (project version="3").

>

"Anton Katilin" <anton@intellij.com> wrote in message
news:aqqhhh$uls$1@is.intellij.net...

Please go to the Ant build file properties dialog, tab Filter Targets.
Shortcuts are assignable to the targets that are checked on that page.

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqpsj8$3so$1@is.intellij.net...

OK--stupid question. Tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> says

"...we

can add a shortcut to a project Ant target...". Well, I'm having

trouble doing

even that.

>

I have added a Ant project, and I see Ant Targets listed in the

Keymap

Settings, but I cannot expand Ant Targets. In the Ant Build window,

when

I right-click on an ant target, the "Assign shortcut..." menu entry

is

insensitive.

>

Is there some magic widget somewhere I have to enable? (This is

with

the

3.0 release build if that matters.)

>
>


0
Comment actions Permalink

Anton, I believe you've identified the crux of the problem!

The Ant in the buildfile I added to my Idea project only defines the "default" and "basedir" attributes. I tried adding a "name" attribute, and that made the difference. In the Ant Build window, the root of the "target tree" changed from "build.xml" to the name I supplied ("foo"), the "Assign shortcut..." menu entries became sensitive, and I can expand the "Ant Targets" node within the Keymap window. The upshot is that I'm now able to add shortcuts to Ant targets. You might still want to see if you can change Idea to somehow handle the case where doesn't have a "name" attribute; according to the Ant documentation (see ) the "name" attribute is optional. (If it cannot be done without significant pain in the code, then perhaps a comment in the documentation indicating the limitation.) Kendall "Anton Katilin" ]]> wrote in message
news:aqtiq1$fkr$1@is.intellij.net...

Is 'name' attribute specified in the 'project' tag of your Ant xml?

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqskk3$v1b$1@is.intellij.net...

FYI, I tried the following:

>

o uninstalled Idea

>

o moved .IntelliJIdea to some other directory

>

o reinstalled Idea (3.0 release)

>

o created a new project

>

o added the Ant buildfile to the project

>

o created a copy of the default keymap and made the copy the active
keymap

>

I still see the same result. :(

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqr2lr$sd$1@is.intellij.net...

Whether the Ant target appears in the filtered target list doesn't

seem

to
matter. "Assign shortcut..." is insensitive even for entries that are
checked in the Filter Targets tab.

>

Kendall

>

PS: I don't know if this should matter, but the keymap that I'm using
was
copied from the default one circa build #668 (version="1"), and the
project
I'm using was created circa build #670 (project version="3").

>

"Anton Katilin" <anton@intellij.com> wrote in message
news:aqqhhh$uls$1@is.intellij.net...

Please go to the Ant build file properties dialog, tab Filter

Targets.

Shortcuts are assignable to the targets that are checked on that

page.

>

"Kendall Collett" <kcollett@jump.net> wrote in message
news:aqpsj8$3so$1@is.intellij.net...

OK--stupid question. Tracker request #7174
<http://www.intellij.net/tracker/idea/viewSCR?publicId=7174> says
"...we
can add a shortcut to a project Ant target...". Well, I'm having
trouble doing even that.

>

I have added a Ant project, and I see Ant Targets listed in the
Keymap
Settings, but I cannot expand Ant Targets. In the Ant Build

window,

when
I right-click on an ant target, the "Assign shortcut..." menu

entry

is insensitive.

>

Is there some magic widget somewhere I have to enable? (This is
with the 3.0 release build if that matters.)



0

Please sign in to leave a comment.