je travaille avec un tutorial sur cruisecontrol mais pour cvs. Ainsi, concretement je dois travailler avec svn. j'ai mon fichier build.xml
et mon fichier config.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 <?xml version="1.0" encoding="windows-1252" ?> <!-- Delegating build script, used by cruisecontrol to build SICOII. Note that the basedir is set to the checked out project --> <project name="build-SICOII" default="build" basedir="checkout/SICOII"> <target name="build"> <!-- Get the latest from SVN --> <exec executable="svn"> <arg line="up"/> </exec> <!-- Call the target that does everything --> <ant antfile="build.xml" target="build-everything"/> </target> </project>
et je trouve ca comme exception.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 <?xml version="1.0" encoding="windows-1252" ?> <cruisecontrol> <project name="SICOII" buildafterfailed="true"> <plugin name="svn" classname="net.sourceforge.cruisecontrol.sourcecontrols.SVN"/> <plugin name="svnbootstrapper" classname="net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper"/> <!-- Bootstrappers are run every time the build runs, *before* the modification checks --> <bootstrappers> <currentbuildstatusbootstrapper file="logs/SICOII/buildstatus.txt"/> </bootstrappers> <!-- Defines where cruise looks for changes, to decide whether to run the build --> <modificationset quietperiod="180"> <svn localWorkingCopy="checkout/SICOII" username="mak" password="xxxxx" repositoryLocation="http://zeus/svn/SICO" localWorkingCopy="C:\projects\checkout" /> </modificationset> <!-- Configures the actual build loop, how often and which build file/target --> <schedule interval="60"> <ant antscript="C:\jdev1013\ant\bin\ant.bat" buildfile="build-SICOII.xml" target="build" uselogger="true" usedebug="false"/> </schedule> <!-- directory to write build logs to --> <log dir="logs/SICOII"/> <!-- more recent versions of CC should use the listener below, instead of the currentbuildstatusbootstrapper, currentbuildstatuspublisher combination. NOTE: Must match filename in CC reporting/jsp - override.properties: user.build.status.file --> <!-- <listeners> <currentbuildstatuslistener file="logs/SICOII/buildstatus.txt"/> </listeners> --> <!-- Publishers are run *after* a build completes --> <publishers> <currentbuildstatuspublisher file="logs/SICOII/buildstatus.txt"/> </publishers> </project> </cruisecontrol>
de quoi s'agit-il au juste?C:\Documents and Settings\mak>C:\projects\cruisecontrol.bat
"C:\Java\jdk150_08\bin\java" -cp "C:\Java\jdk150_08\lib\tools.jar;C:\projects\\
..\dist\cruisecontrol.jar;C:\projects\\..\lib\log4j.jar;C:\projects\\..\lib\jdom
.jar;C:\projects\\..\lib\ant\ant.jar;C:\projects\\..\lib\ant\ant-launcher.jar;C:
\projects\\..\lib\xercesImpl-2.7.0.jar;C:\projects\\..\lib\xml-apis-2.7.0.jar;C:
\projects\\..\lib\xalan-2.6.0.jar;C:\projects\\..\lib\jakarta-oro-2.0.3.jar;C:\p
rojects\\..\lib\mail.jar;C:\projects\\..\lib\junit.jar;C:\projects\\..\lib\activ
ation.jar;C:\projects\\..\lib\commons-net-1.1.0.jar;C:\projects\\..\lib\starteam
-sdk.jar;C:\projects\\..\lib\mx4j.jar;C:\projects\\..\lib\mx4j-tools.jar;C:\proj
ects\\..\lib\mx4j-remote.jar;C:\projects\\..\lib\smack.jar;C:\projects\\..\lib\c
omm.jar;C:\projects\\..\lib\x10.jar;C:\projects\\..\lib\fast-md5.jar;." -Djavax.
management.builder.initial=mx4j.server.MX4JMBeanServerBuilder CruiseControl
Exception in thread "main" java.lang.NoClassDefFoundError: CruiseControl
Partager