You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Darren Shepherd <da...@gmail.com> on 2013/09/06 03:08:09 UTC
tip for applicationContext.xml in eclipse
So if you have the Spring IDE (or STS) installed in your Eclipse you get
really nice autocompletion in spring config files. So ctrl+space in the
class="" will pop up all the classes. Or name="" on the <property />
will autocomplete bean properties. Really really useful, as typing
class names by hand is slow and painful.
But... none of this was working with ACS for me. So this is what I
found. First you really should be editing applicationContext.xml.in.
But that isn't an xml file, so it doesn't like that. If you look for
applicationContext.xml, its in the cloudstack project which is not a
java project and has no classpath and thus autocompletion can't find
your classes. So what I did was in client/
ln -s tomcatconf/applicationContext.xml.in applicationContext.xml
Now in cloud-client-ui you have applicationContext.xml at the root and
when you open it you get autocompletion magic. Now if your on one of
those operation systems that doesn't understand symlinks, I dunno. But
don't fret, once I modularize spring (coming real soon....) the spring
XML files will all be in the right place so you get this behaviour by
default.
Darren
Re: tip for applicationContext.xml in eclipse
Posted by Rohit Yadav <bh...@apache.org>.
On Fri, Sep 6, 2013 at 10:44 AM, Darren Shepherd <
darren.s.shepherd@gmail.com> wrote:
> IntelliJ.... The idea of paying for development tools makes me sad (but
> I'm sure you got an open source project license). Spring support is not in
> the open source version of IntellijIDEA.
>
You may get IntelliJ IDEA community edition and add the libs/jars yourself.
Other ways -- Apache committers get free licenses, you companies can
sponsor tools and lastly there is a hack to use Android Studio (based on
IntelliJ) and mod with your libs (you get best of all worlds IMO :)
Regards.
>
> Darren
>
> On Sep 5, 2013, at 9:42 PM, Prasanna Santhanam <ts...@apache.org> wrote:
>
> > Odd that eclipse detects the .xml to understand the file is xml and
> > not the XML header in the file. I can autocomplete the spring beans in
> > IntelliJIdea without issue.
> >
> > On Thu, Sep 05, 2013 at 06:08:09PM -0700, Darren Shepherd wrote:
> >> So if you have the Spring IDE (or STS) installed in your Eclipse you
> >> get really nice autocompletion in spring config files. So
> >> ctrl+space in the class="" will pop up all the classes. Or name=""
> >> on the <property /> will autocomplete bean properties. Really
> >> really useful, as typing class names by hand is slow and painful.
> >>
> >> But... none of this was working with ACS for me. So this is what I
> >> found. First you really should be editing
> >> applicationContext.xml.in. But that isn't an xml file, so it doesn't
> >> like that. If you look for applicationContext.xml, its in the
> >> cloudstack project which is not a java project and has no classpath
> >> and thus autocompletion can't find your classes. So what I did was
> >> in client/
> >>
> >> ln -s tomcatconf/applicationContext.xml.in applicationContext.xml
> >>
> >> Now in cloud-client-ui you have applicationContext.xml at the root
> >> and when you open it you get autocompletion magic. Now if your on
> >> one of those operation systems that doesn't understand symlinks, I
> >> dunno. But don't fret, once I modularize spring (coming real
> >> soon....) the spring XML files will all be in the right place so you
> >> get this behaviour by default.
> >>
> >> Darren
> >
> > --
> > Prasanna.,
> >
> > ------------------------
> > Powered by BigRock.com
> >
>
Re: tip for applicationContext.xml in eclipse
Posted by Darren Shepherd <da...@gmail.com>.
IntelliJ.... The idea of paying for development tools makes me sad (but I'm sure you got an open source project license). Spring support is not in the open source version of IntellijIDEA.
Darren
On Sep 5, 2013, at 9:42 PM, Prasanna Santhanam <ts...@apache.org> wrote:
> Odd that eclipse detects the .xml to understand the file is xml and
> not the XML header in the file. I can autocomplete the spring beans in
> IntelliJIdea without issue.
>
> On Thu, Sep 05, 2013 at 06:08:09PM -0700, Darren Shepherd wrote:
>> So if you have the Spring IDE (or STS) installed in your Eclipse you
>> get really nice autocompletion in spring config files. So
>> ctrl+space in the class="" will pop up all the classes. Or name=""
>> on the <property /> will autocomplete bean properties. Really
>> really useful, as typing class names by hand is slow and painful.
>>
>> But... none of this was working with ACS for me. So this is what I
>> found. First you really should be editing
>> applicationContext.xml.in. But that isn't an xml file, so it doesn't
>> like that. If you look for applicationContext.xml, its in the
>> cloudstack project which is not a java project and has no classpath
>> and thus autocompletion can't find your classes. So what I did was
>> in client/
>>
>> ln -s tomcatconf/applicationContext.xml.in applicationContext.xml
>>
>> Now in cloud-client-ui you have applicationContext.xml at the root
>> and when you open it you get autocompletion magic. Now if your on
>> one of those operation systems that doesn't understand symlinks, I
>> dunno. But don't fret, once I modularize spring (coming real
>> soon....) the spring XML files will all be in the right place so you
>> get this behaviour by default.
>>
>> Darren
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
Re: tip for applicationContext.xml in eclipse
Posted by Prasanna Santhanam <ts...@apache.org>.
Odd that eclipse detects the .xml to understand the file is xml and
not the XML header in the file. I can autocomplete the spring beans in
IntelliJIdea without issue.
On Thu, Sep 05, 2013 at 06:08:09PM -0700, Darren Shepherd wrote:
> So if you have the Spring IDE (or STS) installed in your Eclipse you
> get really nice autocompletion in spring config files. So
> ctrl+space in the class="" will pop up all the classes. Or name=""
> on the <property /> will autocomplete bean properties. Really
> really useful, as typing class names by hand is slow and painful.
>
> But... none of this was working with ACS for me. So this is what I
> found. First you really should be editing
> applicationContext.xml.in. But that isn't an xml file, so it doesn't
> like that. If you look for applicationContext.xml, its in the
> cloudstack project which is not a java project and has no classpath
> and thus autocompletion can't find your classes. So what I did was
> in client/
>
> ln -s tomcatconf/applicationContext.xml.in applicationContext.xml
>
> Now in cloud-client-ui you have applicationContext.xml at the root
> and when you open it you get autocompletion magic. Now if your on
> one of those operation systems that doesn't understand symlinks, I
> dunno. But don't fret, once I modularize spring (coming real
> soon....) the spring XML files will all be in the right place so you
> get this behaviour by default.
>
> Darren
--
Prasanna.,
------------------------
Powered by BigRock.com