使用ant将文件添加到svn
当我从CVS移动到SVN时,我试图使用ant在SVN中添加一个文件 我的build.properties:使用ant将文件添加到svn,svn,ant,Svn,Ant,当我从CVS移动到SVN时,我试图使用ant在SVN中添加一个文件 我的build.properties: svn.root=http://svn/projects2 svn.rsh=/usr/bin/ssh My.xml脚本: <svn> <add path="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"
svn.root=http://svn/projects2
svn.rsh=/usr/bin/ssh
My.xml脚本:
<svn>
<add
path="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"
cvsRoot="${svn.root}"
cvsRsh="${svn.rsh}" />
<add
path="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}/master-@{product}_@{major}.@{minor.next}.sql"
cvsRoot="${svn.root}"
cvsRsh="${svn.rsh}" />
<add
path="-q commit -m 'Adding the next build directory' ${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"
cvsRoot="${svn.root}"
cvsRsh="${svn.rsh}" />
</svn>
正如你所看到的,这是使用CVS和SVN的混合,所以我确信我这样做是错误的。我只是想用这种脚本将一个文件提交到SVN中。我是不是让事情变得比实际情况更复杂了
好的。。。我做了一些研究,这就是我到目前为止所做的
我的build.properties包含以下内容
svn.repo.url=http://svn.project.com/projects
我的.xml就是这个
<property name="svn.repository.url" value="${svn.repo.url}"/>
<svn>
<add
dir="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"/>
</svn>
所以我现在的问题是,这项行动成功还缺少什么?看看tigris.org提供的,特别是子命令
因此,您应该能够执行以下操作:
<svn>
<add file="${relative.metadata}/Build_@{product}_@{major}.@{minor.next}"/>
</svn>
使用SVN添加,然后给出要添加到SVN的目录。