我刚刚下载了MCP以查看Minecraft幕后的工作情况。从java运行批处理文件
内MCP有批处理文件一堆您用来做这样的事情:反编译,重新编译,startclient等
我想做什么就能做的是从一个基本的运行这些批处理文件java gui。
我很喜欢gui的一部分,但我还没有得到一个线索如何运行这些批处理文件。
这里是批处理文件中的一个的示例:
该文件在:
C:\ MCP \ startclient.bat
startclient包含以下内容:
@echo off
:try_python
set PYTHON=python
%PYTHON% --version >NUL 2>NUL
if errorlevel 1 goto try_python_mcp
goto foundit
:try_python_mcp
set PYTHON=runtime\bin\python\python_mcp
%PYTHON% --version >NUL 2>NUL
if errorlevel 1 (
echo Unable to locate python.
pause
exit /b
)
:foundit
%PYTHON% runtime\startclient.py conf\mcp.cfg
pause
可以这样做吗?
我很惊讶他们不提供x-plat'build.xml'或类似的东西。他们正在发展什么样的十年(/千年)? – 2011-05-27 22:30:37