Re: properties and values in maven.xml

2004-03-31 Thread Rob Shepherd
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

2004-03-30 Thread Rob Shepherd
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]


RE: properties and values in maven.xml

2004-03-30 Thread Sri Sankaran
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]



Re: properties and values in maven.xml

2004-03-30 Thread Marco Tedone
Maybe they are immutable??

JAT,

Marco
- Original Message - 
From: Sri Sankaran [EMAIL PROTECTED]
To: Maven Users List [EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 10:18 PM
Subject: RE: properties and values in maven.xml


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]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]