diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2013-01-08 11:11:20 -0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2013-01-08 11:11:20 -0800 |
commit | b56ea2a18f232d79481e778085fd64e8ae486fc3 (patch) | |
tree | 44e1f6eb4864a45033f865b74fe783e3d784dd6a /build/update.cmd | |
download | idea-b56ea2a18f232d79481e778085fd64e8ae486fc3.tar.gz |
Snapshot of commit d5ec1d5018ed24f1b4f32b1d09df6dbd7e2fc425
from branch master of git://git.jetbrains.org/idea/community.git
Diffstat (limited to 'build/update.cmd')
-rw-r--r-- | build/update.cmd | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/build/update.cmd b/build/update.cmd new file mode 100644 index 000000000000..a49d2daf764d --- /dev/null +++ b/build/update.cmd @@ -0,0 +1,43 @@ +@ECHO OFF + +:: This script updates your IntelliJ IDEA CE installation from the latest compiled classes. This way you can easily +:: upgrade your working IDEA to the latest changes. +:: +:: Before you run the script, ensure you have the following: +:: 1. Your project for IntelliJ IDEA CE is fully built (do 'Rebuild Project' if you're not sure) +:: 2. WORK_IDEA_HOME points to the directory of IntelliJ IDEA build you want to upgrade +:: 3. DEV_IDEA_HOME points to the directory of the project you built at step 1 +:: 4. You quit IntelliJ IDEA + +IF NOT EXIST "%JAVA_HOME%\bin\java.exe" ( + ECHO JAVA_HOME must be defined and point to a valid Java installaton + EXIT +) + +IF NOT EXIST "%WORK_IDEA_HOME%\bin\idea.bat" ( + @ECHO WORK_IDEA_HOME must be defined and point to build you're updating + EXIT +) + +IF NOT EXIST "%DEV_IDEA_HOME%\build\update.cmd" ( + @ECHO DEV_IDEA_HOME must be defined and point to source base your're updating from + EXIT +) + +ECHO Updating %WORK_IDEA_HOME% from compiled classes at %DEV_IDEA_HOME% + +CD %DEV_IDEA_HOME% + +SET ANT_HOME=%DEV_IDEA_HOME%\lib\ant +SET EXEC_ANT="%JAVA_HOME%\bin\java.exe" -Dant.home=%ANT_HOME% -classpath "%ANT_HOME%\lib\ant-launcher.jar" org.apache.tools.ant.launch.Launcher +CALL %EXEC_ANT% -f build/update.xml %* + +DEL /Q /S %WORK_IDEA_HOME%\lib +DEL /Q /S %WORK_IDEA_HOME%\plugins + +XCOPY %DEV_IDEA_HOME%\bin\win\*.dll %WORK_IDEA_HOME%\bin\ /Q /E /Y +XCOPY %DEV_IDEA_HOME%\bin\win\fsnotifier.exe %WORK_IDEA_HOME%\bin\ /Q /E /Y +XCOPY %DEV_IDEA_HOME%\bin\win\runnerw.exe %WORK_IDEA_HOME%\bin\ /Q /E /Y +XCOPY %DEV_IDEA_HOME%\out\deploy\*.* %WORK_IDEA_HOME%\ /Q /E /Y + +CD /D %WORK_IDEA_HOME%\bin |