Created
August 26, 2011 01:28
-
-
Save bobbyjam99-zz/1172480 to your computer and use it in GitHub Desktop.
Antを利用してSVNからチェックアウト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- SvnAntが必要。 --> | |
<!-- バージョンの違いによってエラーが出るので注意が必要。 --> | |
<project name="my project" default="checkout" basedir="."> | |
<property name="workspace.dir" value="c:\workspace\myproject" /> | |
<property name="svn.userid" value="scott" /> | |
<property name="svn.password" value="tiger" /> | |
<property name="svn.url" value="https://svn.example.com/svn/myproject/trunk" /> | |
<property name="svn.revision" value="HEAD" /> | |
<path id="svnant.class.path"> | |
<fileset dir="${env.ANT_HOME}/antsvn/"> | |
<include name="*.jar" /> | |
</fileset> | |
</path> | |
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" | |
classpathref="svnant.class.path"/> | |
<target name="checkout"> | |
<delete dir="${workspace.dir}" /> | |
<mkdir dir="${workspace.dir}" /> | |
<svn username="${svn.userid}" | |
password="${svn.password}"> | |
<checkout url="${svn.url}" revision="${svn.revision}" destPath="${workspace.dir}" /> | |
</svn> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment