开发者

how to create a java jar file with only subfolder's content?

开发者 https://www.devze.com 2022-12-18 07:53 出处:网络
Now I am in a temp folder in my dos console. there is a classes folder inside the temp folder. that classes folder contains all my classes started with 开发者_运维知识库com.companyName.app folder stru

Now I am in a temp folder in my dos console. there is a classes folder inside the temp folder. that classes folder contains all my classes started with 开发者_运维知识库com.companyName.app folder structure. I use "jar cf project.jar classes\*" to create the jar file but it starts with classes folder. I don't want the classes folder. The top level folder I expected is the com. How can do it? or I have to cd to classes folder to do that? thanks,


jar cf project.jar -C classes .

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号