Entity includes in iml files...
Followed by 2 people
Currently we are going thru a transition process from ant/cvs to Maven/Subversion. During this time the while the maven build numbers etc. stabilize we need to help the development team in keeping the iml files in sync and working as the jar versions and version numbers and hence the jar file names are changing.
To solve this - we tried to use "entity includes" in iml files where all the jar files are externalized and thus iml files on local dev disk don't need to be push-updated to capture new jar version.
This is what we tried:
Case 1. No errors but the libraries are not picked up
]>
&DYNAMIC_VALUES;
Contents of include.xml
*
Case 2. Errors in loading iml files*
%DYNAMIC_VALUES;
]>
jar://$MODULE_DIR$/lib/&AVALON-EXCALIBUR;!/
Contents of include.xml
]]>
How do we get this done?
Please sign in to leave a comment.
unfortunately this is with 5.x so "adding jar directories" is not avail in project/module settings.
Hello Vinay,
Why don't you use path variables? Entity includes in .iml files are not supported,
and we don't have any plans to support them.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
unfortunately the issue is not at the path level but more of the jar file name level since our current maven process appends the version and build number to the jar name thus changing the name of the file itself.
Is there any way to configure a pre-load task that gets executed before intellij fires up?
Hello Vinay,
So why can't you define a path variable pointing to a file name?
Well, of course, your operating system allows you to configure that. On Windows,
you can modify idea.bat, or create a wrapper .bat file that does something
before running idea.exe and start IntelliJ IDEA through such a file.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
will try to define path variable pointing to the file name - for some reason kept thinking that path variable will end at the dir