I know I've read this somewhere, but I can't find it when I need it.
How do you set lastGoodBuildTime the first time?
I get this error:
clean:
init:
cruise-check:
java.text.ParseException: Unparseable date: "${lastGoodBuildTime}"
at java.text.DateFormat.parse(DateFormat.java:324)
at
net.sourceforge.cruisecontrol.ModificationSet.setLastBuild(ModificationSet.j
ava:83)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.IntrospectionHelper$3.set(IntrospectionHelper.java:352)
at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.ja
va:227)
at
org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:619)
at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.
java:134)
at org.apache.tools.ant.Task.maybeConfigure(Task.java:220)
at org.apache.tools.ant.Target.execute(Target.java:152)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
BUILD FAILED
java.lang.NullPointerException
at
net.sourceforge.cruisecontrol.ModificationSet.execute(ModificationSet.java:1
12)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 2 seconds
and my build.xml has this in it:
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
</target>
<taskdef name="modificationset"
classname="net.sourceforge.cruisecontrol.ModificationSet" />
<target name="cruise-check" depends="init">
<modificationset lastbuild="${lastGoodBuildTime}"
quietperiod="30"
dateformat="yyyy-MMM-dd HH:mm:ss">
<cvselement cvsroot="${cvsroot}"
localworkingcopy="${basedir}"/>
</modificationset>
</target>
Maybe this is a questions for the cruisecontrol-user list.
Klara