[英]How to pass a local file name to css-validator.jar?
I'm trying to open a file from the filesystem with css-validator.jar. 我正在尝试使用css-validator.jar从文件系统中打开一个文件。 I tried:
我试过了:
java -jar css-validator.jar C:\\filename
and java -jar css-validator.jar C:\\filename
和
java -jar css-validator.jar file:\\\\\\filename
but neither worked. 但都没有奏效。
What am I doing wrong? 我究竟做错了什么?
Figured it out on my own: command used in directory of jar is like this: 我自己想出来:在jar目录中使用的命令是这样的:
java -jar css-validator.jar -output gnu file:///"Directory of file"\"name of css file".css
You can then add > or >> and a text type file extension (.txt, .html, .xml, .doc[but not .docx]) to output to file. 然后,您可以添加>或>>和文本类型文件扩展名(.txt,.html,.xml,.doc [但不是.docx])以输出到文件。 the gnu can also be text, xml, or a couple other formats.
gnu也可以是text,xml或其他几种格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.