Re: Project consisting of multiple projects
Dieter Schicker <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks a lot! Works fine. Cheers Dieter Kapila Kohli wrote: > Can show you how i have done-- > > In config.xml set variables-- > > <property name="workingdir" value="/opt/work/cruise/checkout" /> > <property name="cvsupdatecommand" value="cvs" /> > <property name="cvsupdatecommandargs" value="update -P -d" /> > <property name="cvsroot" > value=":ext:[email protected]:/opt/cvsroot" /> > > > in workingdir path checkout the source code, > below project set, have defined-- > > <bootstrappers> > <execbootstrapper command="${cvsupdatecommand}" > workingdir="${workingdir}/module/" > args="${cvsupdatecommandargs} " /> > > </bootstrappers> > > This will update the source code everytime it runs. First time you > will manually have to checkout the source code from whichever > br/tag/label you want to use.. rest will just update everytime.. > > Hope it clears your doubt-- > > Regards > Kapila > > > On Sat, Jul 18, 2009 at 2:09 PM, Dieter Schicker <[email protected] > <mailto:[email protected]>> wrote: > > Hello list members, > > I'm new to cruisecontrol so please forgive me if this question is > stupid. > > I'm trying to build a project that consists of multiple projects > (projects in the sense of "Eclipse projects"). Or more precise: > There is > one "main" project that depends on three other ones. Of course, I > got an > ant file that does the svn checkouts, the builds and the packaging > into > one war file. > Now I'm not sure how to organize the projects directories and > where/how > to checkout the individual projects. I defined the build the > following way: > > <cruisecontrol> > > <project name="proj-test-build" buildafterfailed="true"> > <listeners> > <currentbuildstatuslistener > file="logs/proj-test-build/status.txt"/> > </listeners> > > <!-- Bootstrappers are run every time the build runs, > *before* the modification checks --> > <bootstrappers> > </bootstrappers> > > <!-- Defines where CruiseControl looks for > changes, to decide whether to run the build --> > <modificationset quietperiod="10"> > <svn localworkingcopy="projects/proj-test-build"/> > </modificationset> > > <!-- Configures the actual build loop, how > often and which build file/target --> > <schedule interval="60"> > <ant buildfile="proj-test-build.xml" > uselogger="true"/> > </schedule> > > <!-- directory to write build logs to --> > <log/> > > <!-- Publishers are run *after* a build completes --> > <publishers> > </publishers> > </project> > > </cruisecontrol> > > I suppose that the problem lies here: > > <svn localworkingcopy="projects/proj-test-build"/> > > I'm not sure which of my projects (and how) I should checkout at this > very location. > > What I did until now is not to checkout any of the projects > beforehand. > But then (of course) CruiseControl complains with the message: > > [cc]Jul-18 10:16:58 jectController- proj-test-build Controller: build > progress event: checking for modifications > [cc]Jul-18 10:16:58 SVN - Error executing svn log > command svn > log --non-interactive --xml -v -r > {2009-07-17T22:00:00Z}:{2009-07-18T08:16:58Z} > org.jdom.input.JDOMParseException: Error on line 3: XML document > structures must start and end within the same entity. > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:851) > at > net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNLogXMLParser.parse(SVN.java:547) > at > net.sourceforge.cruisecontrol.sourcecontrols.SVN$SVNLogXMLParser.parseAndFilter(SVN.java:534) > at > net.sourceforge.cruisecontrol.sourcecontrols.SVN.execHistoryCommand(SVN.java:454) > at > net.sourceforge.cruisecontrol.sourcecontrols.SVN.getModifications(SVN.java:264) > at > net.sourceforge.cruisecontrol.ModificationSet.retrieveModificationsAsElement(ModificationSet.java:276) > at > net.sourceforge.cruisecontrol.Project.getModifications(Project.java:424) > at > net.sourceforge.cruisecontrol.Project.build(Project.java:198) > at > net.sourceforge.cruisecontrol.Project.execute(Project.java:147) > at > net.sourceforge.cruisecontrol.ProjectConfig.execute(ProjectConfig.java:402) > at > net.sourceforge.cruisecontrol.ProjectWrapper.run(ProjectWrapper.java:69) > at java.lang.Thread.run(Thread.java:619) > Caused by: org.xml.sax.SAXParseException: XML document structures must > start and end within the same entity. > at > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown > Source) > at > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > Source) > at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown > Source) > at > org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) > at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) > at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at > org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453) > ... 12 more > > > More precise question: How can I tell CruiseControl that I want 4 > projects to be checked out? > +: Can I somehow bypass the CruiseControl handling of the svn working > copy and let all the "svn work" be done by my ant script? > > I would be very thankful if someone could point me to the right > direction ... > > Many thanks in advance > Dieter > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) > will have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > ------------------------------------------------------------------------ > > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > ------------------------------------------------------------------------------