Browse files

[#1646] Play idealize generates wrong paths : We are missing a slash

  • Loading branch information...
1 parent b16c4da commit 5b852a1f84dfc4115df2f083a8db398c17faa47f Igmar Palsenberg committed with Notalifeform Feb 15, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 framework/pym/play/commands/intellij.py
View
6 framework/pym/play/commands/intellij.py
@@ -46,10 +46,10 @@ def execute(**kargs):
srcpath = os.path.join(module, 'src')
lXML += ' <content url="file://%s">\n <sourceFolder url="file://%s" isTestSource="false" />\n </content>\n' % (module, os.path.join(module, 'app').replace('\\', '/'))
if os.path.exists(srcpath):
- msXML += ' <root url="file://$MODULE_DIR$%s"/>\n' % (app.toRelative(srcpath).replace('\\', '/'))
+ msXML += ' <root url="file://$MODULE_DIR$/%s"/>\n' % (app.toRelative(srcpath).replace('\\', '/'))
if os.path.exists(libpath):
- mlXML += ' <root url="file://$MODULE_DIR$%s"/>\n' % (app.toRelative(libpath).replace('\\', '/'))
- jdXML += ' <jarDirectory url="file://$MODULE_DIR$%s" recursive="false"/>\n' % (app.toRelative(libpath).replace('\\', '/'))
+ mlXML += ' <root url="file://$MODULE_DIR$/%s"/>\n' % (app.toRelative(libpath).replace('\\', '/'))
+ jdXML += ' <jarDirectory url="file://$MODULE_DIR$/%s" recursive="false"/>\n' % (app.toRelative(libpath).replace('\\', '/'))
replaceAll(imlFile, r'%LINKS%', lXML)
replaceAll(imlFile, r'%MODULE_LINKS%', mlXML)
replaceAll(imlFile, r'%MODULE_LIB_CLASSES%', msXML)

0 comments on commit 5b852a1

Please sign in to comment.