mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
More robust eclipse workspace replacement
This commit is contained in:
1 parent
1812016e29
commit
238dcdd18d
1 file changed
+4
@@ -701,6 +701,10 @@ def setup_mcp(fml_dir, mcp_dir, dont_gen_conf=True):
|
||||
#update workspace
|
||||
if not os.path.isfile(os.path.join(fml_dir, 'fmlbuild.properties-sample')):
|
||||
mcp_eclipse = os.path.join(mcp_dir, 'eclipse')
|
||||
|
||||
if os.path.isdir(os.path.join(mcp_eclipse, 'Client')) and os.path.isdir(os.path.join(eclipse_dir, 'Server')):
|
||||
shutil.rmtree(mcp_eclipse)
|
||||
|
||||
if not os.path.isdir(mcp_eclipse) and os.path.isdir(os.path.join(fml_dir, 'eclipse')):
|
||||
print 'Fixing MCP Workspace'
|
||||
copytree(os.path.join(fml_dir, 'eclipse'), mcp_eclipse)
|
||||
|
||||
Reference in new issue
Block a user