| Help converting build script to use TortoiseSVN
From: Zaranthos <Zaranthos_99_at_yahoo.com>
 Date: 2007-08-03 18:07:57 CEST 
I am trying to avoid using svnversion since TortoiseSVN should be able to do
 <project name="KoLmafia" default="debug" basedir=".">
         <!-- ========================================== -->
         <property name="root" location="."/>
         <property name="jarfile" location="${dist}/${ant.project.name}.jar"/>
         <!-- ========================================== -->
         <target name="init">
                 <tstamp/>
         </target>
         <!-- ================================== -->
         <target name="update" unless="revision">
                 <exec executable="svn" failifexecutionfails="false">
                 <antcall target="version"/>
         </target>
         <!-- ================================== -->
         <target name="version" unless="revision">
                 <property name="version" value="11.2"/>
                 <exec executable="svnversion" outputproperty="revision"
                 <property name="revision" value="0"/>
         </target>
         <!-- ======================= -->
         <target name="clean">
                 <delete dir="${build}"/>
                 <delete>
         </target>
         <!-- ====================== -->
         <target name="build" depends="init">
                 <javac source="1.4" srcdir="${src}" destdir="${build}"
                 <copy todir="${build}" preservelastmodified="true">
                 <copy todir="${build}" preservelastmodified="true">
         </target>
         <!-- =========================== -->
         <target name="createjar" depends="build">
                 <jar destfile="${jarfile}" basedir="${build}" update="true" index="yes">
         </target>
         <!-- ================================ -->
         <target name="debug" depends="version,clean">
                 <replace file="${src}/net/sourceforge/kolmafia/KoLConstants.java"
                 <antcall target="createjar"/>
                 <replace file="${src}/net/sourceforge/kolmafia/KoLConstants.java"
         </target>
         <!-- ============================ -->
         <target name="daily" depends="update,clean">
                 <replace file="${src}/net/sourceforge/kolmafia/KoLConstants.java"
                 <antcall target="build"/>
                 <jar destfile="${dist}/${ant.project.name}-${revision}.jar"
                 <replace file="${src}/net/sourceforge/kolmafia/KoLConstants.java"
         </target>
         <!-- =========================== -->
         <target name="dist" depends="update,clean,createjar">
                 <tar destfile="${tarfile}" basedir="${root}" compression="gzip">
         </target>
         <!-- ==================================================== -->
         <target name="exec" depends="createjar">
         <!-- ======================================= -->
         <target name="javadoc" depends="init">
                 <mkdir dir="${docs}"/>
                 <javadoc sourcepath="${src}" destdir="${docs}" packagenames="*">
                         <classpath>
                 </javadoc>
         </target>
 </project>
 -- View this message in context: http://www.nabble.com/Help-converting-build-script-to-use-TortoiseSVN-tf4213390.html#a11986209 Sent from the tortoisesvn - users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org For additional commands, e-mail: users-help@tortoisesvn.tigris.orgReceived on Fri Aug 3 18:06:16 2007 | 
This is an archived mail posted to the TortoiseSVN Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.