fitnesse管理引进的jar包
阅读原文时间:2023年07月14日阅读:1

如下:需要引进的jar很多,并且路径都不一样,这样增加删减jar就比较麻烦

!*> setup
!define TEST_SYSTEM {slim}
!define LOCAL_PATH  {C:\Users\qiuwy\.m2\repository}
!path ${LOCAL_PATH}\org\slf4j\slf4j-api\1.6.4\slf4j-api-1.6.4.jar
!path ${LOCAL_PATH}\org\slf4j\slf4j-log4j12\1.6.4\slf4j-log4j12-1.6.4.jar
!path ${LOCAL_PATH}\log4j\log4j\1.2.16\log4j-1.2.16.jar
!path ${LOCAL_PATH}\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar
!path ${LOCAL_PATH}\org\apache\httpcomponents\httpclient\4.3.1\httpclient-4.3.1.jar
!path ${LOCAL_PATH}\org\apache\httpcomponents\httpcore\4.3\httpcore-4.3.jar
!path ${LOCAL_PATH}\org\json\json\20090211\json-20090211.jar
!path ${LOCAL_PATH}\org\kohsuke\stapler\json-lib\2.1\json-lib-2.1-jdk15.jar
!path ${LOCAL_PATH}\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar
!path ${LOCAL_PATH}\org\slf4j\jcl-over-slf4j\1.6.4\jcl-over-slf4j-1.6.4.jar
!path ${LOCAL_PATH}\com\funshion\ssh2\0.0.1\ssh2-0.0.1.jar
!path ${LOCAL_PATH}\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar
!path ${LOCAL_PATH}\net\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar
!path ${LOCAL_PATH}\commons-beanutils\commons-beanutils\20030211.134440\commons-beanutils-20030211.134440.jar
!path ${LOCAL_PATH}\junit\junit\4.11\junit-4.11.jar

*!

后来想到了一个办法,就是把需要使用的jar拿出来放在一个目录下,只要引进这个路径下的*.jar就行

下次如果要增加删除jar,fitnesse的文件就不许改动

只需要在这个路径下增加或删除相应的jar包即可

如下:

!*> setup
!define TEST_SYSTEM {slim}
!define LOCAL_PATH  {C:\Users\qiuwy\.m2\repository}
!path ${LOCAL_PATH}\jarPackage\*.jar

*!