@echo off
rem 2007-09-22, rgf

rem if relative from current directory: set srcDir=%cd%
rem set srcDir=E:\rony\dev\bsf\src
set srcDir=%cd%
set tgtDir=F:\work\svn\bsf\src

echo Copying from [%srcDir%] to [%tgtDir%] ...

copy %srcDir%\org\apache\bsf\*.java                      %tgtDir%\org\apache\bsf\

copy %srcDir%\org\apache\bsf\util\*.java                 %tgtDir%\org\apache\bsf\util\
copy %srcDir%\org\apache\bsf\util\cf\*.java              %tgtDir%\org\apache\bsf\util\cf\
copy %srcDir%\org\apache\bsf\util\event\adapters\*.java  %tgtDir%\org\apache\bsf\util\event\adapters\
copy %srcDir%\org\apache\bsf\util\event\generator\*.java %tgtDir%\org\apache\bsf\util\event\generator\
copy %srcDir%\org\apache\bsf\util\type\*.java            %tgtDir%\org\apache\bsf\util\type\

copy %srcDir%\org\apache\bsf\test\*.java                 %tgtDir%\org\apache\bsf\test\
copy %srcDir%\org\apache\bsf\test\engineTests\*.java     %tgtDir%\org\apache\bsf\test\engineTests\
copy %srcDir%\org\apache\bsf\test\utilTests\*.java       %tgtDir%\org\apache\bsf\test\utilTests\

copy %srcDir%\org\apache\bsf\engines\jacl\*.java         %tgtDir%\org\apache\bsf\engines\jacl\
copy %srcDir%\org\apache\bsf\engines\java\*.java         %tgtDir%\org\apache\bsf\engines\java\
copy %srcDir%\org\apache\bsf\engines\javaclass\*.java    %tgtDir%\org\apache\bsf\engines\javaclass\
copy %srcDir%\org\apache\bsf\engines\javascript\*.java   %tgtDir%\org\apache\bsf\engines\javascript\
copy %srcDir%\org\apache\bsf\engines\jython\*.java       %tgtDir%\org\apache\bsf\engines\jython\
copy %srcDir%\org\apache\bsf\engines\netrexx\*.java      %tgtDir%\org\apache\bsf\engines\netrexx\
copy %srcDir%\org\apache\bsf\engines\xslt\*.java         %tgtDir%\org\apache\bsf\engines\xslt\

rem 20070922: it seems that the following files are not in the official distribution ?
echo deleting superfluous files (that only seem to be available for rgf's version, maybe very old?)
echo on
del %tgtDir%\org\apache\bsf\RGFInfo.java
del %tgtDir%\org\apache\bsf\test\BSFTest.java
del %tgtDir%\org\apache\bsf\test\fakeEngine.java
del %tgtDir%\org\apache\bsf\test\BSFEngineTestTmpl.java
del %tgtDir%\org\apache\bsf\test\utilTests\TestBean.java
del %tgtDir%\org\apache\bsf\test\utilTests\EngineUtilsTest.java
del %tgtDir%\org\apache\bsf\test\utilTests\StringUtilsTest.java
del %tgtDir%\org\apache\bsf\test\utilTests\IOUtilsTest.java
del %tgtDir%\org\apache\bsf\test\engineTests\javascriptTest.java
del %tgtDir%\org\apache\bsf\test\engineTests\jaclTest.java
del %tgtDir%\org\apache\bsf\test\engineTests\jythonTest.java
del %tgtDir%\org\apache\bsf\test\engineTests\netrexxTest.java
del %tgtDir%\org\apache\bsf\util\DebugLog.java
