Message from discussion
How do I tell IDEA about my css and js file mappings?
Received: by 10.236.157.1 with SMTP id n1mr28502350yhk.1.1340721812863;
Tue, 26 Jun 2012 07:43:32 -0700 (PDT)
X-BeenThere: cfml-plugin-for-intellij-idea@googlegroups.com
Received: by 10.236.141.11 with SMTP id f11ls359590yhj.9.gmail; Tue, 26 Jun
2012 07:43:32 -0700 (PDT)
Received: by 10.100.80.2 with SMTP id d2mr6883662anb.0.1340721812096;
Tue, 26 Jun 2012 07:43:32 -0700 (PDT)
Received: by 10.100.80.2 with SMTP id d2mr6883660anb.0.1340721812025;
Tue, 26 Jun 2012 07:43:32 -0700 (PDT)
Return-Path: <jamiek...@gmail.com>
Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182])
by gmr-mx.google.com with ESMTPS id v25si16947525yhm.0.2012.06.26.07.43.31
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 26 Jun 2012 07:43:32 -0700 (PDT)
Received-SPF: pass (google.com: domain of jamiek...@gmail.com designates 209.85.160.182 as permitted sender) client-ip=209.85.160.182;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jamiek...@gmail.com designates 209.85.160.182 as permitted sender) smtp.mail=jamiek...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-gh0-f182.google.com with SMTP id z22so4522655ghb.13
for <cfml-plugin-for-intellij-idea@googlegroups.com>; Tue, 26 Jun 2012 07:43:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:sender:in-reply-to:references:date
:x-google-sender-auth:message-id:subject:from:to:content-type;
bh=du5E7+k7wCUisuzABsZL6SGz7TJF0u1mbNgLWxgcdnM=;
b=hYKN+rHgQpwjR5YM8CvSOidic8FfYHjbLVAqttHLBumGRpc8XxxuwZwEUwwCRZiB9s
3uMNfgTI+Kk+mm43T5gxunGWn7HAQ5Gv3xghmg4Y6S3UAVWqthhl5HZ5mdhO5Azf3qs0
tOyNHK4qVU33jfGtH6aFe78XyiRoIVhQniBtO9QbBuJIxH6HbQiz7jNmWV8mdUH9b8yc
dInAmPP7kv0M8fWnhyhy0z6M7M/I51yw3Lv+dBasjUbG+QP9H7eo3ms+cgxT5hPXh4jj
2RgPfWXAhANUK49Apd8vDPG7YRsgsS3yMGlgLTM2KAzOGWBYLzLC1w8fwiVsoSByEH04
kmCQ==
MIME-Version: 1.0
Received: by 10.50.186.196 with SMTP id fm4mr11304268igc.34.1340721811161;
Tue, 26 Jun 2012 07:43:31 -0700 (PDT)
Sender: jamiek...@gmail.com
Received: by 10.231.103.136 with HTTP; Tue, 26 Jun 2012 07:43:31 -0700 (PDT)
In-Reply-To: <CAN2j2ikesy28PebmWQttZr8oef+hZzy8Vo3xtUt531ALC1p...@mail.gmail.com>
References: <9a484f54-d327-4041-8c26-a3e287f758c4@googlegroups.com>
<CAFiDPQd1VqZFrsO=OwzNX9r-gQzzXKjbB93ub9UKHEWUpbh...@mail.gmail.com>
<CAB3x_n9HczP7GeAL0Y=U1HhvrNSSbqwUnKbfBhq1bgau=ag...@mail.gmail.com>
<CAN2j2i=x7uNNBX7YGUOv5RW14TsVRHAi=LeRVNk8xVaQAhf...@mail.gmail.com>
<CAB3x_n_p+dTq-VZmqfGk+LbtD1mewoECk4T8h9fD05d5K5W...@mail.gmail.com>
<CAN2j2im6N7NkDR5vD5reG9V59ACC_FMmFfr0uBoTBFMk0bL...@mail.gmail.com>
<CAN2j2ikesy28PebmWQttZr8oef+hZzy8Vo3xtUt531ALC1p...@mail.gmail.com>
Date: Tue, 26 Jun 2012 10:43:31 -0400
Message-ID: <CAB3x_n-2E=C=HB8YXLCjVLWZpgPZDDfEKC2oNxASzhs8U_=...@mail.gmail.com>
Subject: Re: How do I tell IDEA about my css and js file mappings?
From: Jamie Krug <ja...@thekrugs.com>
To: cfml-plugin-for-intellij-idea@googlegroups.com
Content-Type: multipart/alternative; boundary=14dae9340fe74c02ed04c3611f59
--14dae9340fe74c02ed04c3611f59
Content-Type: text/plain; charset=ISO-8859-1
1. Ctrl+Alt+Shift+S to open Project Structure
2. Click "Modules" under "Project Settings"
3. Right-click your Java module (2nd column) and choose New > Web
4. Under "Web Resource Directories" specify your Web root (and any other
Web-accessible directory paths; e.g., Apache Alias directories)
HTH!
On Tue, Jun 26, 2012 at 9:20 AM, Dave Merrill <enigm...@gmail.com> wrote:
> Hi, don't mean to be a pain, but still not getting this.
>
> Is there a way to explain a little more without you having to do a whole
> screencast thing?
>
> Thanks,
> Dave
>
>
> On Mon, Jun 25, 2012 at 12:30 PM, Dave Merrill <enigm...@gmail.com> wrote:
>
>> I do have a module at the root of this project, of course, and I expect
>> it's a Java module (what else could it be and work for CFML?). However, I
>> don't see any way to see what it is for sure, or how to add a facet to it.
>>
>> Right-click menu > New shows only Module. Is that where Facet should be?
>> Do you have Java EE Integration enabled? There is a substantial amount of
>> Java in this project, but all the directly web-related stuff is CFML (and
>> js), and I don't need or want IDEA to create the various artifacts it says
>> that comes with, so I've never enable it.
>>
>> Thanks for your help, sorry to be thick,
>>
>> Dave
>>
>>
>> On Mon, Jun 25, 2012 at 11:55 AM, Jamie Krug <ja...@thekrugs.com> wrote:
>>
>>> I just add a Web facet to my Java module. Every IDEA project requires at
>>> least one module, and generally, a Java module is the only one (and the one
>>> we use for CFML). So, add a Web facet under a Java module and you should
>>> see what I'm talking about. If not, let me know and I'll whip up a quick
>>> screencast or something...
>>>
>>>
>>> On Mon, Jun 25, 2012 at 11:16 AM, Dave Merrill <enigm...@gmail.com>wrote:
>>>
>>>> Hmmm, I've never done this. It doesn't appear that I can expand the one
>>>> module this project contains in the Project Settings dlg, it has no
>>>> children. Do I need to enable Java EE Integration or some other plugin to
>>>> be able to add that facet?
>>>>
>>>> Thanks,
>>>> Dave
>>>>
>>>>
>>>> On Mon, Jun 25, 2012 at 7:28 AM, Jamie Krug <ja...@thekrugs.com> wrote:
>>>>
>>>>> Right, I generally create a Web facet beneath my main (Java/CFML)
>>>>> module, and specify one or more Web Resource Directories. I usually just
>>>>> have one, for /, because my project root is not my Web root (I usually have
>>>>> a "web" folder under the project/module root). But you can also specify a
>>>>> resource for non-Web root locations (e.g., to account for an Apache Alias
>>>>> situation, and still get all the IDEA goodness from that resource).
>>>>>
>>>>> Best,
>>>>> Jamie
>>>>>
>>>>>
>>>>> On Mon, Jun 25, 2012 at 2:37 AM, Mark Mandel <mark.man...@gmail.com>wrote:
>>>>>
>>>>>> Can you set up a web module?
>>>>>>
>>>>>> Mark
>>>>>>
>>>>>>
>>>>>> On Sun, Jun 24, 2012 at 12:40 AM, Dave Merrill <enigm...@gmail.com>wrote:
>>>>>>
>>>>>>> The web root of my project is a directory below the project
>>>>>>> root. IDEA highlights all the css and js file links in both cfml and html
>>>>>>> files as unresolved, when they're all relative to that web root. How can I
>>>>>>> fix that?
>>>>>>>
>>>>>>> I have a ColdFusion mapping defined in IDEA, and it understands
>>>>>>> cfinclude paths relative to it. (But not cfmodule paths; see here<http://youtrack.jetbrains.com/issue/IDEA-87755>
>>>>>>> .)
>>>>>>>
>>>>>>> How do I accomplish the same thing for the javascript and css files
>>>>>>> in my project, ideally in a way that works in both cfml and html files?
>>>>>>>
>>>>>>> Thanks in advance,
>>>>>>> Dave Merrill
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> E: mark.man...@gmail.com
>>>>>> T: http://www.twitter.com/neurotic
>>>>>> W: www.compoundtheory.com
>>>>>>
>>>>>> 2 Devs from Down Under Podcast
>>>>>> http://www.2ddu.com/
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
--14dae9340fe74c02ed04c3611f59
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<ol><li>Ctrl+Alt+Shift+S to open Project Structure</li><li>Click "Modu=
les" under "Project Settings"</li><li>Right-click your Java =
module (2nd column) and choose New > Web</li><li>Under "Web Resourc=
e Directories" specify your Web root (and any other Web-accessible dir=
ectory paths; e.g., Apache Alias directories)</li>
</ol><div>HTH!</div><div><br></div><div class=3D"gmail_quote">On Tue, Jun 2=
6, 2012 at 9:20 AM, Dave Merrill <span dir=3D"ltr"><<a href=3D"mailto:en=
igm...@gmail.com" target=3D"_blank">enigm...@gmail.com</a>></span> wrote=
:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi, don't mean to be a pain, but still n=
ot getting this.<div><br></div><div>Is there a way to explain a little more=
without you having to do a whole screencast thing?</div>
<div><br></div><div>Thanks,</div><div>Dave<div><div class=3D"h5"><br>
<br><div class=3D"gmail_quote">On Mon, Jun 25, 2012 at 12:30 PM, Dave Merri=
ll <span dir=3D"ltr"><<a href=3D"mailto:enigm...@gmail.com" target=3D"_b=
lank">enigm...@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">
I do have a module at the root of this project, of course, and I expect it&=
#39;s a Java module (what else could it be and work for CFML?). However, I =
don't see any way to see what it is for sure, or how to add a facet to =
it.<div>
<br></div><div>Right-click menu > New shows only Module. Is that where F=
acet should be? Do you have=A0
Java EE Integration=A0enabled? There is a=A0substantial=A0amount of Java in=
this project, but all the directly web-related stuff is CFML (and js), and=
I don't need or want IDEA to create the various artifacts it says that=
comes with, so I've never enable it.</div>
<div><br></div><div>Thanks for your help, sorry to be thick,</div><div><br>=
</div><div>Dave<div><div><br><br><div class=3D"gmail_quote">On Mon, Jun 25,=
2012 at 11:55 AM, Jamie Krug <span dir=3D"ltr"><<a href=3D"mailto:jamie=
@thekrugs.com" target=3D"_blank">ja...@thekrugs.com</a>></span> wrote:<b=
r>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">I just add a Web facet to my Java module. Ev=
ery IDEA project requires at least one module, and generally, a Java module=
is the only one (and the one we use for CFML). So, add a Web facet under a=
Java module and you should see what I'm talking about. If not, let me =
know and I'll whip up a quick screencast or something...<div>
<div><br>
<br><div class=3D"gmail_quote">On Mon, Jun 25, 2012 at 11:16 AM, Dave Merri=
ll <span dir=3D"ltr"><<a href=3D"mailto:enigm...@gmail.com" target=3D"_b=
lank">enigm...@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmai=
l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left=
:1ex">
Hmmm, I've never done this. It doesn't appear that I can expand the=
one module this project contains in the Project Settings dlg, it has no ch=
ildren.=A0=A0Do I need to enable Java EE Integration or some other plugin t=
o be able to add that facet?=A0<div>
<br></div><div>Thanks,</div><div>Dave<div><div><br><br><div class=3D"gmail_=
quote">On Mon, Jun 25, 2012 at 7:28 AM, Jamie Krug <span dir=3D"ltr"><<a=
href=3D"mailto:ja...@thekrugs.com" target=3D"_blank">ja...@thekrugs.com</a=
>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Right, I generally create a Web facet beneat=
h my main (Java/CFML) module, and specify one or more Web Resource Director=
ies. I usually just have one, for /, because my project root is not my Web =
root (I usually have a "web" folder under the project/module root=
). But you can also specify a resource for non-Web root locations (e.g., to=
account for an Apache Alias situation, and still get all the IDEA goodness=
from that resource).<div>
<br></div><div>Best,<br>Jamie<div><div><br><br><div class=3D"gmail_quote">O=
n Mon, Jun 25, 2012 at 2:37 AM, Mark Mandel <span dir=3D"ltr"><<a href=
=3D"mailto:mark.man...@gmail.com" target=3D"_blank">mark.man...@gmail.com</=
a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Can you set up a web module?<div><br></div><=
div>Mark<div><div><br><br><div class=3D"gmail_quote">On Sun, Jun 24, 2012 a=
t 12:40 AM, Dave Merrill <span dir=3D"ltr"><<a href=3D"mailto:enigment@g=
mail.com" target=3D"_blank">enigm...@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">The web root of my project is a directory be=
low the project root.=A0IDEA highlights all the css and js file links in bo=
th cfml and html files as unresolved, when they're all relative to that=
web root. How can I fix that?=A0<div>
<br></div><div>I have a ColdFusion mapping defined in IDEA, and it understa=
nds cfinclude paths=A0relative=A0to it. (But not cfmodule paths; see <a hre=
f=3D"http://youtrack.jetbrains.com/issue/IDEA-87755" target=3D"_blank">here=
</a>.)</div>
<div><br></div><div>How do I=A0accomplish=A0the same thing for the javascri=
pt and css files in my project, ideally in a way that works in both cfml an=
d html files?</div><div><br></div><div>Thanks in advance,</div><div>Dave Me=
rrill</div>
</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span><=
font color=3D"#888888">-- <br>E: <a href=3D"mailto:mark.man...@gmail.com" t=
arget=3D"_blank">mark.man...@gmail.com</a><br>T: <a href=3D"http://www.twit=
ter.com/neurotic" target=3D"_blank">http://www.twitter.com/neurotic</a><br>
W: <a href=3D"http://www.compoundtheory.com" target=3D"_blank">www.compound=
theory.com</a><br><br>2 Devs from Down Under Podcast<br><div><a href=3D"htt=
p://www.2ddu.com/" target=3D"_blank">http://www.2ddu.com/</a></div><br>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
--14dae9340fe74c02ed04c3611f59--