Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Other Build Tools
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other Build Tools
ant script error
nlr reddy
Greenhorn
Posts: 9
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
What could be the error with the following script.
Even if I give the wrong library location of svn
ant
it gives me tool availability=true
<?xml version="1.0" encoding="UTF-8"?> <project name="charan" default="tool-availability"> <property file="build.properties"></property> <!-- SVN and SVN-ANT Tasks properties --> <property name="svn.repository.url" value="${svn.repository.url}"/> <property name="svn.project.base.path" value="${svn.project.base.path}" /> <property name="svn.base.url" value="${svn.repository.url}/${svn.project.base.path}"/> <property name="svnant.javahl" value="false" /> <property name="svnant.svnkit" value="true" /> <!-- SVN and SVN-ANT Tasks properties --> <!-- *************************************************************** --> <!-- Set-Up of SVN-ANT classpath --> <!-- *************************************************************** --> <path id="svnant.classpath"> <fileset dir="${svnant.lib.dir}"> <include name="**/*.jar" /> </fileset> </path> <!-- *************************************************************** --> <!-- Loading of SVN task --> <!-- *************************************************************** --> <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" /> <!-- *************************************************************** --> <!-- Set-Up of Project Library classpath --> <!-- *************************************************************** --> <path id="classpath"> <fileset dir="${lib.path}"> <include name="**/*.jar"/> </fileset> </path> <!-- *************************************************************** --> <!-- tool-availability: Determine if SVN-ANT is available. --> <!-- *************************************************************** --> <target name="tool-availability"> <available resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" property="available.svnant" /> <echo message="SVN-ANT is available = ${available.svnant}"/> </target> <!-- **************************************************************** --> <!-- does-svnant-exist: depends on tool-availablility and --> <!-- displays error message --> <!-- ***************************************************************** --> <target name="does-svnant-exist" depends="tool-availability"> <fail unless="available.svnant"> SVN-ANT is not available, cannot perform tagging or checkout/export svn ant task. </fail> </target> <!-- ****************************************************************** --> <!-- svn-http-export: performs export http static pages using --> <!-- properties from build.properties and uses SVNANT tasks --> <!-- ****************************************************************** --> <target name="svn-http-export" description="exports individual project using svnant task"> <property name="svn.tag.message" value="Exporting Project ${http-project.name} with tag name ${tag.name}"/> <property name="src.url" value="${svn.base.url}/${http.project.name}/tags/${tag.name}"/> <property name="destPath" value="${http.dest.path}"/> <echo message="${svn.tag.message}"/> <svn javahl="${svnant.javahl}" svnkit="${svnant.svnkit}" username="${svn.username}" password="${svn.password}"> <export srcUrl="${src.url}" destPath="${destPath}/${http.project.name}"/> </svn> </target> <!-- ****************************************************************** --> <!-- svn-https-export: performs export https static pages usin --> <!-- properties from build.properties and uses SVNANT tasks --> <!-- ****************************************************************** --> <target name="svn-https-export" description="exports individual project using svnant task"> <property name="svn.tag.message" value="Exporting Project ${https-project.name} with tag name ${tag.name}"/> <property name="src.url" value="${svn.base.url}/${https.project.name}/tags/${tag.name}"/> <property name="destPath" value="${https.dest.path}"/> <echo message="${svn.tag.message}"/> <svn javahl="${svnant.javahl}" svnkit="${svnant.svnkit}" username="${svn.username}" password="${svn.password}"> <export srcUrl="${src.url}" destPath="${destPath}/${https.project.name}"/> </svn> </target> <!-- <property name="svn.checkout.path" location="D:/Arash/Projects/Mortgage/MortgageCalculator3/src" /> --> <!-- Deletes the existing build directory--> <target name="svn-clean"> <delete dir="${svn.checkout.path}" /> </target> <!-- Creates the build, docs and dist directory--> <target name="svn-makedir"> <mkdir dir="${svn.checkout.path}" /> </target> <!-- Checkout the latest source code of svnant itself--> <target name="svn-get"> <property name="svn.tag.message" value="Checkin Out Source Codes of Project ${wl-project.name} with tag name ${tag.name}"/> <property name="src.url" value="${svn.base.url}/${wl.project.name}/tags/${tag.name}"/> <svn username="${svn.username}" password="${svn.password}"> <checkout url="${src.url}" revision="HEAD" destPath="${svn.checkout.path}" /> </svn> </target> <target name="svn-checkout" depends="svn-clean, svn-makedir, svn-get"> <description>Checkout Target</description> </target> <!-- Sets variables which can later be used. --> <!-- The value of a property is accessed via ${} --> <property name="src" location="${svn.checkout.path}" /> <property name="build" location="${svn.checkout.path}/build" /> <!-- Deletes the existing build, docs and dist directory--> <target name="clean"> <delete dir="${build}" /> </target> <!-- Creates the build, docs and dist directory--> <target name="makedir"> <mkdir dir="${build}" /> </target> <!-- Compiles the java code (including the usage of library for JUnit --> <target name="compile" depends="clean, makedir"> <javac srcdir="${src}" destdir="${build}"> <classpath refid="classpath"/> </javac> </target> <!-- Run the JUnit Tests --> <target name="build" depends="compile"> <description>Build Target</description> </target> <target name="build-war"> <war destfile="${dest.war.name}" webxml="${web.xml.path}"> <fileset dir="${jsp.path}"/> <classes dir="${build}"/> </war> </target> <target name="deploy-war"> <serverdeploy action="deploy" source="${dest.war.name}"> <weblogic application="${wl.app.name}" server="${wl.server.url}" classpath="${wl.home}/lib/weblogic.jar" username="${wl.username}" password="${wl.password}" debug="true"/> </serverdeploy> </target> </project>
Thanks
Charan
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
SVNAnt checkout and update overriding local file changes
svnant checkout doesnt work
Building Seam projects in Eclipse
Integrating a simple HelloWorld project with Subversion, CuriseControl.
issue regarding running SVN checkout from ANT script
More...