ant打包class文件,ant调用cmd命令行,ant运行jar程序(参数有空格的)(Ant packages the class file, ant calls the CMD command line, and the ant runs the jar program (with arguments blank))
ant打包class文件,ant调用cmd命令行,ant运行jar程序(参数有空格的)(Ant packages the class file, ant calls the CMD command line, and the ant runs the jar program (with arguments blank))
Ant packages the class file, ant calls the CMD command line, and the ant runs the jar program (with arguments blank)
2009-02-19, 13:08
" >
2., here is the demonstration of the batch file "c:/cpy.bat" in ant. The contents of the file are a single command, as follows:
Java -classpath, "${jarDir}/copyTool_fat.jar", "D:/My Documents", "${testCopyFormDir}", cmd.file.CopyFile, -1
-- >
In 3.ant, you run a jar program with parameters in the command line with spaces, and execute the batch equivalent, as follows:
Java -classpath, "${jarDir}/copyTool_fat.jar", "D:/My Documents", "${testCopyFormDir}", cmd.file.CopyFile, -1
-- >