Skip to content
Browse files

[#334] netbeansify-folder-inclusionexclusion

  • Loading branch information...
1 parent 482b191 commit c929315c3602fefde0bddfeeda841544afa22b4e @pepite pepite committed Sep 18, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 framework/pym/play/commands/netbeans.py
View
3 framework/pym/play/commands/netbeans.py
@@ -42,7 +42,8 @@ def execute(**kargs):
mr = ""
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']:
- 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)
print "~ OK, the application is ready for netbeans"
print "~ Just open %s as a netbeans project" % os.path.normpath(app.path)

0 comments on commit c929315

Please sign in to comment.
Something went wrong with that request. Please try again.