我需要压缩zip(tar,gz,7z等)文件中的目录.没关系,但我需要创建彼此连接的多部分zip文件(如file1.part1.zip,file1.part2.zip)
如何在java中创建multipart zip文件?每个部件必须具有最大尺寸限制.
我有以下XML作为我的JAX-WS Web服务响应:
<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<QueryRBTReqMsgResponse>
<QueryRBTRspMsg>
<resultHeader>
<resultCode>0</resultCode>
<resultDesc>Successful</resultDesc>
</resultHeader>
<!--Optional:-->
<QueryRBTResponse>
<part>1</part>
</QueryRBTResponse>
</QueryRBTRspMsg>
</QueryRBTReqMsgResponse>
</soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)
但这就是我想要的:
<soapenv:Envelope>
<soapenv:Header/>
<soapenv:Body>
<QueryRBTRspMsg>
<resultHeader>
<resultCode>0</resultCode>
<resultDesc>Successful</resultDesc>
</resultHeader>
<!--Optional:-->
<QueryRBTResponse>
<part>1</part>
</QueryRBTResponse>
</QueryRBTRspMsg>
</soapenv:Body>
</soapenv:Envelope>
Run Code Online (Sandbox Code Playgroud)
如何<QueryRBTReqMsgResponse>从我的回复中删除标记?我尝试了太多的改变,但他们都没有完成这项工作!
我们的Subversion服务器上有一个Maven项目。pom.xml项目内部有一个。当我想将项目导入本地计算机并对其进行更改时,我必须相对于本地系统更改此行,pom.xml因为在提交之前,我需要在本地系统上部署项目以对其进行测试:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<webappDirectory>/opt/JBoss_4.0.4.GA/server/default/deploy/agg-gateway.war</webappDirectory>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
我的每个团队成员都应相对于其本地系统执行此操作。
但是这个设置在主项目上必须保持不变,我不必提交pom.xml给Subversion。如果我的团队成员之一更改了此文件,则每次更新项目时,都必须相对于本地系统再次更改它。
有什么方法可以使文件在Subversion上不可更改?我无法控制大家不提交pom.xml给svn。