Spaß und Spiele mit CruiseControl.CruiseControl: Geändert erkannt, aber Zeitstempel in Arbeitskopie unverändert
Ich habe ein Java-Projekt zu einer lokalen Installation von CruiseControl auf meinem Windows XP-Rechner aufgebaut.
Meine Datei config.xml wird jede Minute ausgeführt und erstellt mein Projekt aus meinem ant-Skript.
Obwohl ich Änderungen am Trunk auf der Registerkarte "Änderungen" im Dashboard feststelle, wenn ich die Datums- und Zeitstempel der betroffenen Dateien in meiner Arbeitskopie betrachte, bemerke ich, dass diese unverändert sind.
Es ist diese lokale Kopie, gegen die meine build.xml ausgeführt wird. Daher mache ich mir Sorgen, dass, während meine config.xml korrekt konfiguriert ist, dass CruiseControl eine Änderung erkennt, mein Ant-Skript nicht gegen eine Arbeitskopie ausgeführt wird synchronisiert mit dem Trunk.
Ich poste meine Konfigurationsdateien mit der Hoffnung, dass jemand da draußen etwas entdeckt, was für sie offensichtlich ist, aber nicht für mich!
Config xml:
<?xml version="1.0"?>
<cruisecontrol>
<dashboard url="http://localhost:8080/dashboard" postinterval="1" />
<project name="myProject" requireModification="false">
<listeners>
<currentbuildstatuslistener file="logs/myProject/status.txt"/>
</listeners>
<bootstrappers>
<svnbootstrapper file="build.xml"
username="cruise_control" password="password"
localWorkingCopy="projects\myProject" />
</bootstrappers>
<modificationset>
<svn repositoryLocation="https://path/to/myTrunk"
localWorkingCopy="projects/myProject"
username="cruise_control" password="password">
</svn>
</modificationset>
<schedule interval="60" >
<ant buildfile="build.xml" anthome="C:\Program Files\apache-ant-1.8.2" antWorkingDir="projects/myProject/" />
</schedule>
<log>
<merge dir="C:\Program Files\CruiseControl\projects\myProject\reports\junit" pattern="TEST*.xml" />
</log>
<publishers>
<artifactspublisher dir="C:\Program Files\CruiseControl\projects\myProject\dist"
dest="C:\Program Files\CruiseControl\artifacts\myProject"
moveInsteadOfCopy="true" />
</publishers>
</project>
</cruisecontrol>
Dashboard-Konfigurationsdatei:
<dashboard>
<buildloop
logsdir="C:/Program Files/CruiseControl/logs/"
artifactsdir="C:/Program Files/CruiseControl/artifacts/" />
<features allowforcebuild="true" />
<trackingtool projectname="" baseurl="" keywords=""/>
<subtabs>
<subtab class="net.sourceforge.cruisecontrol.dashboard.widgets.ErrorsAndWarningsMessagesWidget" />
</subtabs>
</dashboard>
Vielen Dank im Voraus.
Sie haben Raghuram korrekt. SVNBootStrapper ist verantwortlich für die SVN-Aktualisierung. Ich hatte diese Aufgabe nicht richtig konfiguriert. – Ben