eclipse bat

-eclipse
+eclipse
-eclipse-injection
+conf
-plugins
-myeclipse
-eclipse
+features
+plugins


plugin bat
@echo off

@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal

set DIRNAME=.\
if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
set BASENAME=start.bat
if "%OS%" == "Windows_NT" set BASENAME=%~nx0%

set PLUGINS_PATH=%DIRNAME%\eclipse-injection\plugins
set ECLIPSE_LINKS_PATH=%DIRNAME%\eclipse\links
set ECLIPSE_LINK_PREFIX=../eclipse-injection/plugins

if [%1]==[] goto LINK_ALL
if [%1]==[link] goto LINK
if [%1]==[unlink] goto UNLINK
goto END

:LINK
if [%2]==[] goto LINK_ALL
echo Not implement yet!
goto END

: LINK_ALL
if exist %ECLIPSE_LINKS_PATH% rmdir /S /Q %ECLIPSE_LINKS_PATH%
mkdir %ECLIPSE_LINKS_PATH%
for /D %%I in (%PLUGINS_PATH%\*) do echo path=%ECLIPSE_LINK_PREFIX%/%%~nxI >%ECLIPSE_LINKS_PATH%\%%~nxI.link
goto END

:UNLINK
if [%2]==[] goto UNLINK_ALL
echo Not implement yet!
goto END

:UNLINK_ALL
if exist %ECLIPSE_LINKS_PATH% rmdir /S /Q %ECLIPSE_LINKS_PATH%
goto END

:END


@echo off
rem -------------------------------------------------------------------------
rem Happy at work...
rem -------------------------------------------------------------------------

@if not "%ECHO%" == "" echo %ECHO%
@if "%OS%" == "Windows_NT" setlocal

set DIRNAME=.\
if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%
set BASENAME=start.bat
if "%OS%" == "Windows_NT" set BASENAME=%~nx0%

set ECLIPSE_HOME=%DIRNAME%\eclipse
set ECLIPSE_JRE_HOME=%DIRNAME%\java\jre1.5.0_15
set ECLIPSE_WORKSPACE=%DIRNAME%\eclipse-workspace

cd %ECLIPSE_HOME%
start eclipse -clean -data %ECLIPSE_WORKSPACE% -vm %ECLIPSE_JRE_HOME%\bin\javaw.exe -vmargs -Xms512m -Xmx512m
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值