ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Michali <...@cisco.com>
Subject Can't get Ant to work with CVS
Date Tue, 02 Oct 2001 19:56:01 GMT
In preparation for using CruiseControl, I've modified my build.xml to
add this code:

<target name="cruise.check" depends="init" description="Checks CVS for
Cruise Control">
    <modificationset lastbuild="${lastGoodBuildTime}"
                     quietperiod="30"
                     dateformat="yyyy-MMM-dd HH:mm:ss">
        <cvselement localworkingcopy="${basedir}"/>
    </modificationset>
</target>

<target name="prepare" depends="cruise.check" description="Creates the
directories">
...

I'm running on a PC, accessing a CVS repository on a Unix server
that is setup for SSH access (using the :ext: mode).


First, CVS commands that I enter from the command line are
always prefixed with the password (for SSH). How do I
handle that, when running from Ant (without blowing security
by hardcoding my password)?

Second, when I run the build.xml, I get several errors....

[CVSElement] java.text.ParseException: Unparseable date:
"${lastGoodBuildTime}"
[CVSElement]    at ...
[CVSElement] Log command failed to execute succesfully
[CVSElement] java.lang.NullPointerException
[CVSElement]    at java.util.Calendar.setTime(Calendar.java:882)
[CVSElement]    ...
[CVSElement] [modificationset] Too much repository activity...sleeping
for: 30.0
 seconds.
[CVSElement] Log command failed to execute succesfully
[CVSElement] java.lang.NullPointerException
[CVSElement]    at java.util.Calendar.setTime(Calendar.java:882)
[CVSElement]    ...

BUILD FAILED

E:\Java\Sources\PathFinder\build.xml:62: No Build Necessary



Am I setting the lastbuild correctly in the modificationset?

Is that causing the null pointer exception in the logging?

Why is it saying there is too much activity in the repository, when
I'm the only one using it?


Why is it saying there is no build necessary, when I changed a source
file prior to the build (is it all because of time stamp problems)?

Thanks in advance!!!


PCM (Paul Michali)

Carrier Voice Gateway Business Unit (CVGBU)
Cisco Systems, Inc.
250 Apollo Drive
Chelmsford, MA 01824

Phone : (800) 572-6771 x 45817  (978) 244-5817 [direct]
Paging: (800) 365-4578 [voice]  pcm@epage.cisco.com [email page]

Mime
View raw message