Back Forum Reply New

lt;import resource=quot;${dataSources}quot; /gt; 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:

lt;import resource=quot;${dataSources}quot; /gt;

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,

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

Christian


Originally Posted by Christian Dupuisyes 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

Hello,

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

lt;import resource=quot;from_uclquot; /gt;

and thats gives the error: Failed to import bean definitions from ucl location [from_ucl] 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
¥
Back Forum Reply New