Results 1 to 4 of 4

Thread: <import resource="${dataSources}" /> gives error

  1. #1

    Default <import resource="${dataSources}" /> gives error

    Hello, and thanks for providing us with this great tool!

    I have just ran into a slightly annoying thing. The Spring IDE is flagging an failed to to import and file not found if I do:

    <import resource="${dataSources}" />

    where ${dataSource} is of course just a variable that is set my Maven's profile.


    Would it be possible to have the parser check if ${..} is used, an in that case not try to import the file?

    Any other advice for getting around this?

    Best regards,
    Tor
    Tor Arne Kvaløy
    Integration developer and architect
    Tarantell.no

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Tor,

    yes that is indeed annoying. Can you please raise a JIRA issue for this. I will fix that asap.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3

    Default

    Quote Originally Posted by Christian Dupuis View Post
    yes that is indeed annoying. Can you please raise a JIRA issue for this. I will fix that asap.
    Greetings,

    I need this functionality as well (to import different Quartz trigger beans for different environments based on a .properties setting). Was a JIRA issue ever filed? I'm not finding one in search. If not I'll add one.

    Thanks,

    Ian

  4. #4
    Join Date
    Oct 2008
    Posts
    1

    Default

    Hello,

    I run into a similar problem with imports. We import some common configurations by using an http resources, e.g.

    <import resource="http_url" />

    and thats gives the error: Failed to import bean definitions from URL location [http_url] File not found

    I am using Spring IDE 2.2.0 Eclipse 3.4.1. Is there are workaround or a possible fix in the future?

    Best regards,
    Holger

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •