[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 sorry....Goal ;)
... <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]
