Re: properties and values in maven.xml
hmm. That command gives this output [Fatal Error] :1:1: Content is not allowed in prolog. BUILD FAILED File.. file:/homedir/robshep/projects/jbeast/maven.xml Element... j:parse Line.. 55 Column 61 Content is not allowed in prolog. Where is the best reference for maven.xml/jelly scripting? Has anybody else managed multiple site deploys? regards Rob Sri Sankaran wrote: Have you tried something like j:parse text=pom.setSiteDirectory('whatever')/ Sri -Original Message- From: Rob Shepherd [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 1:36 PM To: Maven Users List Subject: properties and values in maven.xml I'm having trouble getting to grips with the scripting. I'm proficient at ant so it should take me too long to grasp :) in project.properties i define ... robtest.message=hello world ... in maven.xml i have this target sorryGoal ;) ... goal name=robtest ant:echo message=${robtest.message}/ ant:echo message=Changing property/ j:set var=robtest.message value=hello rob / ant:echo message=${robtest.message}/ /goal ... running 'maven robtest' i get expected results. robtest: [echo] hello world [echo] Changing property [echo] hello rob BUILD SUCCESSFUL However!! i wish to apply the same goal to the variable ${pom.siteDirectory} which will allow me to do a fsdeploy to a local directory then a sshdeploy to a remote mirror. To acomplish this i do a fsdeploy then change pom.siteDirectory then do a sshdeploy with the new value. the values after j:set var=pom.siteAddress value=www.mywebserver.invalid / j:set var=pom.siteDirectory value=/var/www/html/ / is site:fsdeploy: [echo] siteAddress = siteDirectory = (they are both originally defined in project.xml.) How do i refer to them with jelly? Many thanks for any help i may receive. Rob - 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] -- /** * Rob Shepherd, * University Of Wales, Bangor, * School of Informatics, * Dean Street, * Bangor, * Gwynedd, UK /\ /\ * LL57 1UT / \/ \ /\ * --/---/\--\ * * [EMAIL PROTECTED] * * +44 (0) 1248 38 27 */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
properties and values in maven.xml
I'm having trouble getting to grips with the scripting. I'm proficient at ant so it should take me too long to grasp :) in project.properties i define ... robtest.message=hello world ... in maven.xml i have this target sorryGoal ;) ... goal name=robtest ant:echo message=${robtest.message}/ ant:echo message=Changing property/ j:set var=robtest.message value=hello rob / ant:echo message=${robtest.message}/ /goal ... running 'maven robtest' i get expected results. robtest: [echo] hello world [echo] Changing property [echo] hello rob BUILD SUCCESSFUL However!! i wish to apply the same goal to the variable ${pom.siteDirectory} which will allow me to do a fsdeploy to a local directory then a sshdeploy to a remote mirror. To acomplish this i do a fsdeploy then change pom.siteDirectory then do a sshdeploy with the new value. the values after j:set var=pom.siteAddress value=www.mywebserver.invalid / j:set var=pom.siteDirectory value=/var/www/html/ / is site:fsdeploy: [echo] siteAddress = siteDirectory = (they are both originally defined in project.xml.) How do i refer to them with jelly? Many thanks for any help i may receive. Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
site:generate fail and changelog query
whilst running maven (1.0-rc2) site:generate i get this error... this line in the script refers to ${stylesheet} of which i have no idea about. I am running a very basic example system to learn maven. project.xml is very lean and project.properties is empty. how can i remedy this failure? BUILD FAILED File.. file:/homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly Element... j:include Line.. 345 Column 54 null:-1:-1: null Could not parse Jelly script com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] -- file:/homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly:345:54: j:include could not include jelly script: file://homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin-resources/site.jsl. Reason: org.apache.commons.jelly.JellyException: null:-1:-1: null Could not parse Jelly script linkcheck.html has not been written to secondly. the changelog plugin isn't finding my source. it is checked out in to the source directory stated in project.xml build in the output i get (details modified!) SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :ext:[EMAIL PROTECTED]:/folder/user/cvs SCM Command Line[3]: log SCM Command Line[4]: -d 2004-02-282004-03-30 cvs log: in directory .: cvs [log aborted]: there is no version here; run 'cvs checkout' first ChangeLog found: 0 entries why is it looking in . should it not look in the source directory? regards many thanks Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site:generate fail and changelog query
Thanks Emmanuel, i have manually patched my rc2 script. works fine! any thought on my second point? In body of original post. I'm not sure where to checkout source.. if not the source dir in build? many thanks Rob Emmanuel Venisse wrote: This bug has fixed in cvs. Emmanuel - Original Message - From: Rob Shepherd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 29, 2004 12:24 PM Subject: site:generate fail and changelog query whilst running maven (1.0-rc2) site:generate i get this error... this line in the script refers to ${stylesheet} of which i have no idea about. I am running a very basic example system to learn maven. project.xml is very lean and project.properties is empty. how can i remedy this failure? BUILD FAILED File.. file:/homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly Element... j:include Line.. 345 Column 54 null:-1:-1: null Could not parse Jelly script com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] -- file:/homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly:345:54: j:include could not include jelly script: file://homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin-resources/site.jsl. Reason: org.apache.commons.jelly.JellyException: null:-1:-1: null Could not parse Jelly script linkcheck.html has not been written to My second query secondly. the changelog plugin isn't finding my source. it is checked out in to the source directory stated in project.xml build in the output i get (details modified!) SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :ext:[EMAIL PROTECTED]:/folder/user/cvs SCM Command Line[3]: log SCM Command Line[4]: -d 2004-02-282004-03-30 cvs log: in directory .: cvs [log aborted]: there is no version here; run 'cvs checkout' first ChangeLog found: 0 entries why is it looking in . should it not look in the source directory? regards many thanks Rob - 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] -- /** * Rob Shepherd, * University Of Wales, Bangor, * School of Informatics, * Dean Street, * Bangor, * Gwynedd, UK /\ /\ * LL57 1UT / \/ \ /\ * --/---/\--\ * * [EMAIL PROTECTED] * * +44 (0) 1248 38 27 */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: site:generate fail and changelog query
Emmanuel Venisse wrote: - Original Message - From: Rob Shepherd [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Monday, March 29, 2004 4:59 PM Subject: Re: site:generate fail and changelog query Thanks Emmanuel, i have manually patched my rc2 script. works fine! any thought on my second point? In body of original post. I'm not sure where to checkout source.. if not the source dir in build? In your basedir. So I would then have two version of the checked out codeone in basedir, one in build..src/java... ahh hang on this assumes i have ${basedir} as the root of my CVS module [CLICK] I have my source in CVS, the base of which is build..src/java... My project info is however not in CVS i will remedy this... BTW this info is not very clear in the Information i am able to find on line [hint hint]. Many thanks Rob many thanks Rob Emmanuel Venisse wrote: This bug has fixed in cvs. Emmanuel - Original Message - From: Rob Shepherd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 29, 2004 12:24 PM Subject: site:generate fail and changelog query whilst running maven (1.0-rc2) site:generate i get this error... this line in the script refers to ${stylesheet} of which i have no idea about. I am running a very basic example system to learn maven. project.xml is very lean and project.properties is empty. how can i remedy this failure? BUILD FAILED File.. file:/homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly Element... j:include Line.. 345 Column 54 null:-1:-1: null Could not parse Jelly script com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] -- file:/homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly:345:54: j:include could not include jelly script: file://homedir/robshep/.maven/plugins/maven-xdoc-plugin-1.6/plugin-resources/site.jsl. Reason: org.apache.commons.jelly.JellyException: null:-1:-1: null Could not parse Jelly script linkcheck.html has not been written to My second query secondly. the changelog plugin isn't finding my source. it is checked out in to the source directory stated in project.xml build in the output i get (details modified!) SCM Command Line[0]: cvs SCM Command Line[1]: -d SCM Command Line[2]: :ext:[EMAIL PROTECTED]:/folder/user/cvs SCM Command Line[3]: log SCM Command Line[4]: -d 2004-02-282004-03-30 cvs log: in directory .: cvs [log aborted]: there is no version here; run 'cvs checkout' first ChangeLog found: 0 entries why is it looking in . should it not look in the source directory? regards many thanks Rob - 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] -- /** * Rob Shepherd, * University Of Wales, Bangor, * School of Informatics, * Dean Street, * Bangor, * Gwynedd, UK /\ /\ * LL57 1UT / \/ \ /\ * --/---/\--\ * * [EMAIL PROTECTED] * * +44 (0) 1248 38 27 */ - 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] -- /** * Rob Shepherd, * University Of Wales, Bangor, * School of Informatics, * Dean Street, * Bangor, * Gwynedd, UK /\ /\ * LL57 1UT / \/ \ /\ * --/---/\--\ * * [EMAIL PROTECTED] * * +44 (0) 1248 38 27 */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jalopy with checkstyle
Is it possible to use jalopy and checkstyle together! jalopy is great, i've used it for months now... but I use a hand rolled style.xml file. The checkstyle styles built in to maven are not compatible with this style. and therefore produce codingstandard errors. Although turbine is the closest coding standard to mine. Does anybody have a turbine style for jalopy which will run through the turbine-standard checkstyle plugin... Has anybody else use the two successfully? regards Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]