Re: problem while building cruise control
Dan Rollo <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I know our CI build of CruiseControl itself does not actually exercise those build steps from the 'src' jar mentioned here: http://cruisecontrol.sourceforge.net/gettingstartedsourcedist.html That is probably why these instructions have become out dated. We should either fix the docs (and/or steps), or we should change the docs to suggest building the source from subversion. If you want to build from source, I would suggest you first try checking out the project from subversion (see: http://cruisecontrol.sourceforge.net/svn.html), and try running either the release.bat/.sh or 'ant' from the root directory (eg: from the parent directory containing main and reporting, etc). If these work, that verifies a baseline for you environment. From there, we can work on fixing the build steps if desired. (I've always been a little unsure that trying to build from the bundled 'src' file has any advantage over building from the subversion checkout.) Dan From: "Bal Krishna Shrestha" <[email protected]> Subject: [Cruisecontrol-user] problem while building cruise control To: <[email protected]> Hi, Warm Greetings to you all. In my system I have following package install for cruisecontrol OS - CentOS 5.5 Php - php5.3.6 (source distribution) Mysql - mysql-5.0.77 (installed with yum) Apache - httpd-2.2.3 (installed with yum) Jdk - java version "1.6.0_25" (download java_ee_sdk-6u2-jdk-linux.sh from sun java) Ant -ant-1.8.0 (Apache Ant version 1.8.0 bin file) Junit -junit-3.8.2-3jpp.1 (junit install with yum) Cruisecontrol - cruisecontrol-2.7.1 (src, using src file b/c bin files only work with sample file connectfour as it is mention in site as -- This Binary Distribution is a trimmed down version of the Source Distribution. It is fully functional and intended to work with a sample project - the game Connect Four - "out of the box". Site : http://cruisecontrol.sourceforge.net/gettingstartedbindist.html) Following is steps I did to build ant with cruisecontrol I used latest version (2.8.4) cruise control but it give error when build ant in INSTALL_DIR/main . just run 'ant' command in INSTALL_DIR/main it give error Following the last lines with build failed while building ant with cruise control jsp-precompile: [mkdir] Created dir: /opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/exploded-war [unzip] Expanding: /opt/cruisecontrol-2.8.4/reporting/jsp/dist/cruisecontrol.war into /opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/exploded-war [mkdir] Created dir: /opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/src BUILD FAILED /opt/cruisecontrol-2.8.4/build.xml:39: The following error occurred while executing this line: /opt/cruisecontrol-2.8.4/reporting/jsp/build.xml:206: jasper2 doesn't support the "listerrors" attribute Moving lower version and building cruisecontrol 1. Then I moved to lower version 2.7.1 , ant successfully build with cruisecontrol in INSTALL_DIR/main, Following the last lines with build failed while building ant with cruise control jar: [jar] Building jar: /opt/cc/main/dist/cruisecontrol.jar [jar] Building jar: /opt/cc/main/dist/cruisecontrol-launcher.jar [jar] Building jar: /opt/cc/main/dist/cruisecontrol-antprogresslogger.jar all: clean-all: BUILD SUCCESSFUL Total time: 55 seconds 2. After this build ant with cruisecontrol in INSTALL_DIR/reporting/jsp/ it give error While building I give following input as it asked for input path for directory -set.log.dir: [input] WARNING! Property user.log.dir not set! Please enter the absolute path to the CruiseControl logs directory: /var/logs/cruisecontrol/ -set.status.file: [input] WARNING! Property user.build.status.file not set! Please enter the name of the current build status file: /opt/cc/reporting/jsp/webcontent/WEB-INF/web.xml -set.artifacts.dir: [input] WARNING! Property cruise.build.artifacts.dir not set! Please enter the absolute path to the directory where additional build artifacts are stored: /opt/cc/reporting/dashboard/test/data/arbitrary_artifacts/artifacts/ After this it show following build message jsp-precompile: [mkdir] Created dir: /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war [unzip] Expanding: /opt/cc/reporting/jsp/dist/cruisecontrol.war into /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war [mkdir] Created dir: /opt/cc/reporting/jsp/target/jsp-precompile/src BUILD FAILED /opt/cc/reporting/jsp/build.xml:236: jasper2 doesn't support the "listerrors" attribute Then I disable the line of listerrors in file jsp/build.xml as commenting following lines <jasper2 compile="true" outputdir="${basedir}/target/jsp-precompile/src" listerrors="false" validatexml="true" verbose="2" uriroot="${basedir}/target/jsp-precompile/exploded-war"/> again I build with command "ant" with same input as above while building. Following the last lines with build failed while building ant with cruise control jsp-precompile: [mkdir] Created dir: /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war [unzip] Expanding: /opt/cc/reporting/jsp/dist/cruisecontrol.war into /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war [mkdir] Created dir: /opt/cc/reporting/jsp/target/jsp-precompile/src all: clean-all: BUILD SUCCESSFUL Total time: 1 minute 4 seconds 3. Now build ant in INSTALL_DIR/reporting/dashboard directory Build fail with following last lines message -unit-tests: [mkdir] Created dir: /opt/cc/reporting/dashboard/target/reports [mkdir] Created dir: /opt/cc/reporting/dashboard/target/classes/test/build [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/opt/ant/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar:file:/opt/cc/reporting/dashboard/lib/ant.jar!/org/apache/tools/ant/Proje ct.class [junit] Running net.sourceforge.cruisecontrol.dashboard.BuildDetailTest [junit] Testsuite: net.sourceforge.cruisecontrol.dashboard.BuildDetailTest [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.425 sec [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.425 sec [junit] [junit] Testcase: testShouldGetArtifactsInSubDirectories(net.sourceforge.cruisecontrol.dashboa rd.BuildDetailTest): FAILED [junit] expected:<4> but was:<0> [junit] junit.framework.AssertionFailedError: expected:<4> but was:<0> [junit] at net.sourceforge.cruisecontrol.dashboard.BuildDetailTest.testShouldGetArtifac tsInSubDirectories(BuildDetailTest.java:178) [junit] [junit] BUILD FAILED /opt/cc/reporting/dashboard/build.xml:160: Tests failed Then I changed the values 4 to 0 in line "assertEquals(4, artifactNames.size());" of class "testShouldGetArtifactsInSubDirectories" in file test/unit/net/sourceforge/cruisecontrol/dashboard/BuildDetailTest.java After changing the value from 4 to 0 it give following build fail error -unit-tests: [mkdir] Created dir: /opt/cc/reporting/dashboard/target/reports [mkdir] Created dir: /opt/cc/reporting/dashboard/target/classes/test/build [junit] WARNING: multiple versions of ant detected in path for junit [junit] jar:file:/opt/ant/lib/ant.jar!/org/apache/tools/ant/Project.class [junit] and jar:file:/opt/cc/reporting/dashboard/lib/ant.jar!/org/apache/tools/ant/Proje ct.class [junit] Running net.sourceforge.cruisecontrol.dashboard.BuildDetailTest [junit] Testsuite: net.sourceforge.cruisecontrol.dashboard.BuildDetailTest [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.524 sec [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.524 sec [junit] [junit] Testcase: testShouldGetArtifactsInSubDirectories(net.sourceforge.cruisecontrol.dashboa rd.BuildDetailTest): FAILED [junit] null [junit] junit.framework.AssertionFailedError [junit] at net.sourceforge.cruisecontrol.dashboard.BuildDetailTest.testShouldGetArtifac tsInSubDirectories(BuildDetailTest.java:179) [junit] [junit] BUILD FAILED /opt/cc/reporting/dashboard/build.xml:160: Tests failed This is my situation and cannot build cruisecontrol Can you please suggest me what I am missing in above steps that make build failed while build cruise control, If lack of any steps or package, please suggest me Hoping to get solution from you It is very important for me to solve this problem. I tried many ways that is found in different sites while googled, but results is still same, build failed. Can you please provide me the right way to build cruisecontrol with source package. Thank you Kindly Regards, Bal Krishna Shrestha ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1