Esempio n. 1
0
def prepare():
    move(base_dir+'\\examples\\mini-web\\webapp\\WEB-INF\\classes',base_dir+'\\examples\\mini-web\\target\\tmp\\WEB-INF-classes')
    rmdir(base_dir+'\\examples\\mini-web\\logs\\')
    rmdir(base_dir+'\\examples\\mini-web\\bin\\hibernate\\logs\\')
    rmdir(base_dir+'\\examples\\mini-web\\bin\\hibernate\\generated\\dao')
    rmdir(base_dir+'\\examples\\mini-web\\bin\\hibernate\\generated\\entity')
    rmdir(base_dir+'\\examples\\mini-web\\bin\\hibernate\\generated\\manager')
    rmfile(base_dir+'\\examples\\mini-web\\.project')
    rmfile(base_dir+'\\examples\\mini-web\\.classpath')
    rmfile(base_dir+'\\examples\\mini-web\\.settings\\org.eclipse.jdt.core.prefs')
    rmfile(base_dir+'\\examples\\mini-web\\.settings\\org.eclipse.wst.common.component')
    rmfile(base_dir+'\\examples\\mini-web\\.settings\\org.eclipse.wst.common.project.facet.core.xml')
    print 'prepared example projects.'
Esempio n. 2
0
def prepare():
    move(base_dir + '\\examples\\mini-web\\webapp\\WEB-INF\\classes',
         base_dir + '\\examples\\mini-web\\target\\tmp\\WEB-INF-classes')
    rmdir(base_dir + '\\examples\\mini-web\\logs\\')
    rmdir(base_dir + '\\examples\\mini-web\\bin\\hibernate\\logs\\')
    rmdir(base_dir + '\\examples\\mini-web\\bin\\hibernate\\generated\\dao')
    rmdir(base_dir + '\\examples\\mini-web\\bin\\hibernate\\generated\\entity')
    rmdir(base_dir +
          '\\examples\\mini-web\\bin\\hibernate\\generated\\manager')
    rmfile(base_dir + '\\examples\\mini-web\\.project')
    rmfile(base_dir + '\\examples\\mini-web\\.classpath')
    rmfile(base_dir +
           '\\examples\\mini-web\\.settings\\org.eclipse.jdt.core.prefs')
    rmfile(base_dir +
           '\\examples\\mini-web\\.settings\\org.eclipse.wst.common.component')
    rmfile(
        base_dir +
        '\\examples\\mini-web\\.settings\\org.eclipse.wst.common.project.facet.core.xml'
    )
    print 'prepared example projects.'
Esempio n. 3
0
def prepare():
   rmdir(export_dir+target_name)
   os.chdir(source_dir)
   os.system('svn export . '+export_dir+target_name)
   os.chdir(export_dir)
   rmfile(target_name+'.zip')
Esempio n. 4
0
def prepare():
    rmdir(export_dir + target_name)
    os.chdir(source_dir)
    os.system('svn export . ' + export_dir + target_name)
    os.chdir(export_dir)
    rmfile(target_name + '.zip')