Navigation Menu

Skip to content

Commit

Permalink
[playframework#334] netbeansify-folder-inclusionexclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
pepite committed Sep 18, 2011
1 parent 482b191 commit c929315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/pym/play/commands/netbeans.py
Expand Up @@ -42,7 +42,8 @@ def execute(**kargs):
mr = "" mr = ""
for dir in os.listdir(app.path): for dir in os.listdir(app.path):
if os.path.isdir(os.path.join(app.path, dir)) and dir not in ['app', 'conf', 'test', 'test-result', 'public', 'tmp', 'logs', 'nbproject', 'lib']: if os.path.isdir(os.path.join(app.path, dir)) and dir not in ['app', 'conf', 'test', 'test-result', 'public', 'tmp', 'logs', 'nbproject', 'lib']:
mr = '<source-folder style="tree"><label>%s</label><location>%s</location></source-folder>' % (dir, dir) if not re.search("\.[svn|git|hg|scc|vssscc]", dir):
mr = '<source-folder style="tree"><label>%s</label><location>%s</location></source-folder>' % (dir, dir)
replaceAll(os.path.join(nbproject, 'project.xml'), r'%MORE%', mr) replaceAll(os.path.join(nbproject, 'project.xml'), r'%MORE%', mr)
print "~ OK, the application is ready for netbeans" print "~ OK, the application is ready for netbeans"
print "~ Just open %s as a netbeans project" % os.path.normpath(app.path) print "~ Just open %s as a netbeans project" % os.path.normpath(app.path)
Expand Down

0 comments on commit c929315

Please sign in to comment.