Not getting "svnrevision" property in builder

Ashok P <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi, 

I am using CruiseControl 2.7.2 on Windows XP. I want to get "${svnrevision}"
property in my ant builder, but CC is not passing this property.  I am
getting all other properties such as label as shown below.

INFO] Executing tasks
     [echo] Label is build.1, svnrevision is ${svnrevision}
     [echo] cvstimestamp is 2009-10-30_06:54:25_GMT
     [echo] cctimestamp is 20091030025425
     [echo] cclastgoodbuildtimestamp is 20091030000000
     [echo] cclastbuildtimestamp is 20091030000000
     [echo] lastbuildsuccessful is false


Please correct and help me to resolve this problem.

Here are the details in config file and maven script.

CC-config.xml:
...
<cruisecontrol>
.....
.....
  <project name="hello" buildafterfailed="false">

    <bootstrappers>
      <currentbuildstatusbootstrapper file="logs/hello/buildstatus.txt"/>
    </bootstrappers>

    <schedule interval="1800">
      <maven2 mvnhome="C:/apache-maven-2.0.9"
pomfile="projects/${project.name}/pom.xml"         
         goal="package" />
    </schedule>    
    <bootstrappers>
      <svnbootstrapper localWorkingCopy="projects/${project.name}"
username="confluence" 
password="asd"/>
    </bootstrappers>
    <modificationset quietperiod="30">
      <svn username="confluence" password="asd"
localWorkingCopy="projects/${project.name}"/>
    </modificationset>

.....
    <publishers>
      <currentbuildstatuspublisher file="logs/hello/buildstatus.txt" />
    </publishers>

  </project>
</cruisecontrol>


--------------------
pom.xml (builder file)

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">

........
........
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <configuration>
              <tasks>
                 <echo message="Label is ${label}, svnrevision is
${svnrevision}"/>
	    <echo message="cvstimestamp is ${cvstimestamp}"/>
	    <echo message="cctimestamp is ${cctimestamp}"/>
	   <echo message="cclastgoodbuildtimestamp is
${cclastgoodbuildtimestamp}"/>
                <echo message="cclastbuildtimestamp is
${cclastbuildtimestamp}"/>
	   <echo message="lastbuildsuccessful is ${lastbuildsuccessful}"/>        
            </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>








-- 
View this message in context: http://old.nabble.com/Not-getting-%22svnrevision%22-property-in-builder-tp26126051p26126051.html
Sent from the CruiseControl - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.