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]



Reply via email to