bat 设置lib\*.jar

@echo off
SET CLASSPATH=.
SET CLASSNAME=com.doze.data.gen.MavenGen
FOR /R %%F IN (dependency\*.jar) DO call :ADDCP %%F
goto RUN

:ADDCP
set CLASSPATH=%CLASSPATH%;%1
goto :EOF

:RUN
REM echo %CLASSPATH%
java -javaagent:D:/work/installed/apache-maven-2.0.9/repository/org/springframework/spring-agent/2.5.1/spring-agent-2.5.1.jar -cp %CLASSPATH% %CLASSNAME%

你可能感兴趣的:(java,apache,spring,maven,F#)