Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The <svn> type doesn't support the nested "info" element.
- <path id="path.svnant">
- <fileset dir="${svn.lib.dir}" includes="**/*.jar" />
- </path>
- <typedef
- resource="org/tigris/subversion/svnant/svnantlib.xml"
- classpathref="path.svnant"
- />
- <svnSetting
- javahl="false"
- svnkit="true"
- username="${svn.repo.user}"
- password="${svn.repo.password}"
- failonerror="true"
- id="svn.settings"
- />
- <target name="get.latest.svn.rev">
- <antcall target="check.svn.revision.numbers.requested.and.password.set"/>
- <echo level="info" message="Getting head rev number, libs are in ${svn.lib.dir}"/>
- <property name="svn.info.lastRev" value="Unable to connect to repository to retrieve this"/>
- <svn refid="svn.settings">
- <singleinfo target="${svn.repo.url}" property="svn.info.lastRev" request="lastRevision" />
- </svn>
- <echo level="info" message="Last rev number using svn singleinfo is ${svn.info.lastRev}"/>
- </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement