Hi,
 
I was wondering if someone could help me with a couple of issues. 
 
I can't figure out a way to schedule builds once a month, or for that matter, 
to vary the build intervals.

Also, my nightly-build goal defined in maven.xml is not building the JAR file 
or cleaning up the target directory. Here is my maven.xml. Any pointers will be 
greatly appreciated! Thanks!
 

<project default="nightly-build"

xmlns:j="jelly:core"

xmlns:u="jelly:util"

xmlns:maven="jelly:maven"

xmlns:ant="jelly:ant">

 

<preGoal name="nightly-build">

<tstamp>

<format property="build.date" pattern="yyyy.MM.dd/hh.mm.ss"/>

<echo>BUILD DATE IS</echo>

<echo>"${build.date}"</echo> 

</tstamp>

<j:set var="maven.build.dir" value="${basedir}/target/${build.date}"/>

<j:set var="maven.scm.method" value="cvs"/>

<j:set var="maven.scm.cvs.module" value="Root"/>

</preGoal>

<goal name="nightly-build" 

description="Nightly Build WizioTec">

<echo>nightly-build</echo>



<!--Any ant task, or jelly tags can go here -->



value="multiproject:goal,multiproject:clean,clean,clean-site,multiproject:site,site:deploy"
 

/>

<j:set var="goals" 
value="update-project,compile,test,jar,send-report,site:generate"/>

<mkdir dir="${maven.build.dir}/${build.date}" />



<u:tokenize var="goals" delim=",">${goals}</u:tokenize>

<j:forEach items="${goals}" var="goal" indexVar="goalNumber">



Now attaining goal number ${goalNumber}, which is ${goal}

<attainGoal name="${goal}" />

</j:forEach>

</goal>

<goal name="send-report">

<echo>SENDING REPORTS VIA EMAIL</echo>

<mail subject="Build Status on Mercury"

mailhost="mail.wiziotec.com" mailport="25"

encoding="plain">

<from address="[EMAIL PROTECTED]" name="Nightly Build"/>

<to address="[EMAIL PROTECTED]" name="Savitha Rajiv" /> 

<message src="buildresults.log" />

<fileset dir="c:\savitha\workspace\root">

<include name="buildresults.log" />

</fileset> 

</mail>

</goal>

<goal name="compile">

<echo>compile</echo>

</goal>

<goal name="test">

<echo>test</echo>

</goal>

<goal name="jar">

<echo>BUILDING JARS NOW</echo>

</goal>

<goal name="update-project">

<echo>Updating sources</echo>

</goal>

</project>



                
---------------------------------
Discover Yahoo!
 Stay in touch with email, IM, photo sharing & more. Check it out!

Reply via email to