eclipse plugin: Add a draft command line for building the plugin

This commit is contained in:
Timotei Dolean 2011-05-14 06:51:27 +00:00
parent 0e27ce0456
commit 49a1d3a12c
2 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1,19 @@
@echo off
set ECLIPSEHOME=D:\bin\eclipse\
set ECLIPSEDELTAPACK=d:\work\java\eclipse\3.6.2\eclipse\
REM get path to equinox jar inside ECLIPSEHOME folder
for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.equinox.launcher_*.jar') do set EQUINOXJAR=%%c
echo "Found equinox jar: " %EQUINOXJAR%
REM find pde build folder
for /f "delims= tokens=1" %%c in ('dir /B /S /OD %ECLIPSEHOME%\plugins\org.eclipse.pde.build_*') do set PDEBUILD_DIR=%%c
echo "Found pde folder: " %PDEBUILD_DIR%
java -cp %EQUINOXJAR% org.eclipse.core.launcher.Main -data workspace -application org.eclipse.ant.core.antRunner -Ddeltapack=%ECLIPSEDELTAPACK% -Declipse.pdebuild.scripts=%PDEBUILD_DIR%\scripts -Declipse.pdebuild.templates=%PDEBUILD_DIR%\templates -buildfile build.xml
rm ../org.wesnoth/build.xml
rm ../org.wesnoth.wml/build.xml
rm ../org.wesnoth.wml.ui/build.xml
rm -rf workspace

View file

@ -19,10 +19,6 @@
<move todir="${basedir}">
<fileset dir="${buildDirectory}/${buildLabel}" includes="*.zip"/>
</move>
<!-- refresh the workspace -->
<eclipse.convertPath fileSystemPath="${basedir}" property="resourcePath"/>
<eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/>
</target>
</project>