Hey, thanks Nicolas! I got the following to work in MAVEN.XML on my project:
<goal name="cvstest">
<cvs cvsRoot="${cvs.root}"
package="MYPROJECT"
dest="../"
/>
</goal>
This works great, and with the destination point to the root of the project, it eats
itself and updates the whole project.
Question: I have no idea what cvs.root points to.
Question2: How can you reference the ID/GROUPID/ARTIFACTID/GumpRepositoryID from
project.xml? I would hope you could reference from project.xml to somehow make the
above part of a reactor goal - anyone a possible idea/example?
-D
-----Original Message-----
From: Nicolas FRANK [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:51 AM
To: Maven Users List
Subject: RE : Build projects from cvs?
I use an ant script to checkout and build from cvs... (for continious
integration):
Here are my 2 key tasks :
To checkout (you need cvs.exe to be into your path)
<target name="cvs.checkout" if="checkout.true">
<!-- checkout src -->
<cvs cvsRoot="${cvs.root}"
package="J2EE"
dest="${checkout.dir}"
/>
</target>
And then, I call maven :
<target name="maven">
<tstamp/>
<property name="log.filename"
value="integ-cont-${DSTAMP}.${TSTAMP}.log"/>
<property environment="env"/>
<echo>integration into directory: ${checkout.dir}/J2EE</echo>
<echo message="Using MAVEN_HOME=${env.MAVEN_HOME}"/>
<path id="maven.classpath">
<fileset dir="${env.MAVEN_HOME}/lib">
<include name="forehead-1.0-beta-4.jar"/>
</fileset>
</path>
<java classname="com.werken.forehead.Forehead" fork="yes"
maxmemory="160m" dir="${checkout.dir}/J2EE"
errorproperty="maven.result" output="${report.dir}/${log.filename}">
<arg value="-d"/>
<arg value="${maven.dir}"/>
<arg value="${maven.goal}"/>
<!-- <arg value="${maven.goal2}"/>-->
<classpath refid="maven.classpath"/>
<sysproperty key="maven.home" value="${env.MAVEN_HOME}"/>
<sysproperty key="tools.jar"
value="${env.JAVA_HOME}/lib/tools.jar"/>
<sysproperty key="forehead.conf.file"
value="${env.MAVEN_HOME}/bin/forehead.conf"/>
<sysproperty key="javax.xml.parsers.SAXParserFactory"
value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
<sysproperty key="javax.xml.parsers.DocumentBuilderFactory"
value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
<sysproperty key="java.endorsed.dirs"
value="${env.JAVA_HOME}/lib/endorsed;${env.MAVEN_HOME}/lib/endorsed"/>
</java>
<echo>BUILD RESULT = ${maven.result}</echo>
<condition property="maven.failed">
<contains string="${maven.result}" substring="BUILD FAILED"/>
</condition>
</target>
You need the very last version of ant in order to be able to use the
errorproperty property, elsewhere remove it !
Hope it can help... Even if I am not sure this can be trivial for a new-born
baby !
Nicolas
-----Message d'origine-----
De : Darren Hartford [mailto:[EMAIL PROTECTED]
Envoy� : jeudi 10 juillet 2003 17:39
� : Maven Users List
Objet : Build projects from cvs?
Hi all,
Definately newbie, so forgive any confusion. I've read through the mailing
lists that some people have Ant scripts to help building a project from CVS,
but that Maven itself is not setup to do this.
Whether you need to use an Ant/maven.xml script or if you can do this through
Maven methods, how to compile from CVS? Please be gentle, I'm like a
new-born baby trying to put that plastic triangle in the square hole...
-D
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]