Skip to content

Commit

Permalink
[#1646] Play idealize generates wrong paths : We are missing a slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Igmar Palsenberg authored and Notalifeform committed Feb 21, 2013
1 parent b16c4da commit 5b852a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/pym/play/commands/intellij.py
Expand Up @@ -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)
Expand Down

0 comments on commit 5b852a1

Please sign in to comment.