problems with cctimestamp in non-schedule parts of control.xml

Sascha Ernst <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hello,

First some words about my environment:
Win XP, java 1.6, cruise control 2.8.2, ant 1.7.1

to have an easy overview I designed my NBS (nightybuildsystem) to put the cctimestamp into
the name of the directory the NBS is building in.

I do it like this:
<cruisecontrol>

  <!-- sets root directory for the NightlyBuildSystem -->
  <property name="_NBS.dir" value="F:/NightlyBuildSystem"/>
  <property name="_NBS.timestamp" value="${cctimestamp}"/>

...
<!-this buildscript performs the checkout and all building stuff -->
    <schedule interval="3600" >
      <ant antscript="C:/Programme/ANT/bin/ant.bat"
                       buildfile="${_NBS.dir}/build.xml"
                                  target="build_complete"
                                  uselogger="true"
                                  showProgress="true"
                                  showAntOutput="true">
                                  <property name="timestamp" value="${_NBS.timestamp}" />
                               </ant>
                </schedule>

...
<!-add the junit reports to the logs -->
    <log>
                  <merge dir="${_NBS.dir}/NBS-run-${_NBS.timestamp}/developer/irma/temp/junit" />
    </log>

    <publishers>
                  <!-- publish the installers, allclasses jars and buildscript logs-->
                  <antpublisher antscript="C:/Programme/ANT/bin/ant.bat"
                                buildfile="${_NBS.dir}/build.xml"
                                           target="publish"
                                           uselogger="true"
                                           showAntOutput="true">
                    <property name="timestamp" value="${_NBS.timestamp}" />
                    <property name="projectname" value="${project.name}" />
                               <property name="nbsdir" value="${_NBS.dir}" />
      </antpublisher>
    </publishers>

And now my problem:

The ant call in schedule does resolve the timestamp correctly by the value of cctimestamp.
But merge part in log and the ant call in publishers do not resolve this. Instead of a timestamp
I get the string "${cctimestamp}".

The cc-logs prove this:
2009-06-12 03:10:16,246 [Thread-94] INFO  net.sourceforge.cruisecontrol.Project - Project Mailminder NBS:  merging accumulated log files
2009-06-12 03:10:16,246 [Thread-94] DEBUG net.sourceforge.cruisecontrol.listeners.CurrentBuildStatusListener - updating status to merging for project Mailminder NBS
2009-06-12 03:10:16,246 [Thread-94] INFO  net.sourceforge.cruisecontrol.jmx.ProjectController - Mailminder NBS Controller: build progress event: merging accumulated log files2009-06-12 03:10:16,246 [Thread-94] INFO  net.sourceforge.cruisecontrol.buildloggers.MergeLogger - F:\NightlyBuildSystem\NBS-run-${cctimestamp}\developer\irma\temp\junit does not exist. Skipping ...

2009-06-12 03:10:16,324 [Thread-94] DEBUG net.sourceforge.cruisecontrol.listeners.CurrentBuildStatusListener - updating status to publishing for project Mailminder NBS
2009-06-12 03:10:16,355 [Thread-94] INFO  net.sourceforge.cruisecontrol.jmx.ProjectController - Mailminder NBS Controller: build progress event: publishing build results
2009-06-12 03:10:16,386 [Thread-94] DEBUG net.sourceforge.cruisecontrol.builders.AntScript - Using default progressLoggerLib: F:\NightlyBuildSystem\CruiseControl\lib\cruisecontrol-antprogresslogger.jar
2009-06-12 03:10:16,386 [Thread-94] DEBUG net.sourceforge.cruisecontrol.util.Commandline - Executing: [C:\Programme\ANT\bin\ant.bat] with parameters: [C:\Programme\ANT\bin\ant.bat], [-logger], [org.apache.tools.ant.XmlLogger], [-logfile], [log.xml], [-listener], [net.sourceforge.cruisecontrol.builders.AntOutputLogger], [-lib], [F:\NightlyBuildSystem\CruiseControl\lib\cruisecontrol-antprogresslogger.jar], [-Dlastsuccessfulbuild=20090611202057], [-Dinterval=3600], [-Dcctimestamp=20090612002502], [-Dlabel=build.55], [-Dprojectname=Mailminder NBS], [-Dlogdir=F:\NightlyBuildSystem\CruiseControl\logs\Mailminder NBS], [-Dbuilddate=2009-06-11T22:25:02], [-Dlastbuildsuccessful=true], [-Dthisbuildsuccessful=true], [-Dlogfile=log20090612002502Lbuild.55.xml], [-Dlastbuild=20090611202057], [-Dtimestamp=${cctimestamp}], [-Dprojectname=Mailminder NBS], [-Dnbsdir=F:/NightlyBuildSystem], [-buildfile], [F:/NightlyBuildSystem/build.xml], [publish]

I also tried a direct reference to cctimestamp in merge and publisher but got the same effect.
Another strange thing is, that cctimestamp is defined in the antcall (see  [-Dcctimestamp=20090612002502]) but does not seem to have any impact.

Do you have any idea how I can

a)      Merge the junit logs, if they are located in a subdir of "NBS-run-${cctimestamp}"

b)      Transport the value of cctimestamp to an antscript in the publishers area

Regards
--
Sascha Ernst
Dipl. Inform.
Head of Software Quality Management
________________________________

Telefon: + 49 (0)681 - 302 - 5133
Telefax: + 49 (0)681 - 302 - 5109
E-Mail: [email protected]<mailto:[email protected]>
Website: http://www.living-e.com
________________________________

Living-e AG
Campus D3 2
66123 Saarbrücken
________________________________

Vorstand: Guido Polko
Aufsichtsratsvorsitzender: Uwe Feuersenger
Amtsgericht: Mannheim, HRB 111323

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
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.