Re: Compiling Cruisecontrol source
Onkar Shinde <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 18, 2009 at 9:42 PM, Zach <[email protected]> wrote: > Since there hasn't been a recent release of Cruisecontrol with the > AntBuildOutput fixes, I'm attempting to compile from source. I have ant > installed as well as JUnit. When I try to compile ant (by running "ant" > in the source directory) I get an error: > > BUILD FAILED > /opt/cruisecontrol-src-trunk/cruisecontrol/build.xml:35: The following > error occurred while executing this line: > /opt/cruisecontrol-src-trunk/cruisecontrol/main/build.xml:325: The > following error occurred while executing this line: > /opt/cruisecontrol-src-trunk/cruisecontrol/main/loggers/build.xml:31: > Problem: failed to create task or type junit > Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask > was not found. > This looks like one of Ant's optional components. > Action: Check that the appropriate optional JAR exists in > -/usr/share/ant/lib > -/home/cruisecontrol/.ant/lib > -a directory added on the command line with the -lib argument > > I have ant-junit.jar and junit.jar in /usr/share/ant/lib > and /home/cruisecontrol/.ant/lib. I've tried specifying the -lib > argument to both of these directories as well. The machine is Fedora > Core 8. Info on packages: > Ant: > Name : ant > Arch : i386 > Version: 1.7.0 > Release: 1jpp.2.fc8 > Size : 5.0 M > Repo : installed > Summary: Ant build tool for java > Ant-nodeps: > Name : ant-nodeps > Arch : i386 > Version: 1.7.0 > Release: 1jpp.2.fc8 > Size : 1.6 M > Repo : installed > Summary: Optional tasks for ant > JUnit: > Name : junit > Arch : i386 > Version: 3.8.2 > Release: 3jpp.3.fc8 > Size : 544 k > Repo : installed > Summary: Java regression test package > > Any ideas? Is there any way to disable the JUnit testing? Is junit library in same directory as ant-junit.jar. If it isn't then you should either create a symlink or add the directory containing junit.jar to the classpath as well (-lib option). Looking at the build.xml it looks like a build property test.skip(=true) should skip the unit tests. Onkar ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user