RE: Is it possible to override pom.siteDirectory in build.properties?

2004-11-29 Thread Jörg Schaible
Martijn Dashorst wrote on Monday, November 29, 2004 1:32 AM:

 I'm creating a cruisecontrol build and I want the cruisecontrol
 generated/published site to go to a subdirectory of our
 released site,
 in order to prevent overwriting our released site when a build fails.
 
 Therefore I want to override pom.siteDirectory. However,
 changing this
 in build.properties does not override the value in project.xml.
 
 I am using maven 1.0

I do something like this in one of my projects (depending on an existing 
navigation.xml):

goal name=nano:site-directory
util:available file=${basedir}/xdocs/navigation.xml
j:set 
var=globalSiteDirectory/home/projects/nanocontainer/public_html/versions/${pom.currentVersion}/j:set
 
${pom.setSiteDirectory(globalSiteDirectory)}
/util:available
/goal

Hope this helps.

- Jörg

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



Is it possible to override pom.siteDirectory in build.properties?

2004-11-28 Thread Martijn Dashorst
I'm creating a cruisecontrol build and I want the cruisecontrol 
generated/published site to go to a subdirectory of our released site, 
in order to prevent overwriting our released site when a build fails.

Therefore I want to override pom.siteDirectory. However, changing this 
in build.properties does not override the value in project.xml.

I am using maven 1.0
With regards,
Martijn Dashorst
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


pom.siteDirectory

2004-08-10 Thread Liu, Zhihai
I wanted to define pom.siteDirectory in build.properties to overwrite
siteDirectory in project.xml to deploy to a different location, but it did
not work. 

This is what I have in build.properties
...
maven.site.deploy.method=fs
pom.siteDirectory=C:/app/site
...

Maven build always uses the value for siteDirectory in project.xml and
ignores my change in build.properties.

Any help is greatly appreciated.



This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to bind
CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.



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



Re: pom.siteDirectory

2004-08-10 Thread Erik Husby
Liu, Zhihai wrote:
I wanted to define pom.siteDirectory in build.properties to overwrite
siteDirectory in project.xml to deploy to a different location, but it did
not work. 

This is what I have in build.properties
...
maven.site.deploy.method=fs
pom.siteDirectory=C:/app/site
...
Maven build always uses the value for siteDirectory in project.xml and
ignores my change in build.properties.
Any help is greatly appreciated.
 

Put in the pom something like
siteDirectory${siteDirectory}/siteDirectory
Then put a default value in project.properties
siteDirectory=defaultSite
Then put in build.properties
siteDirectory=c:/app/site

--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard 
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]

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


RE: pom.siteDirectory

2004-08-10 Thread Liu, Zhihai
Eric, thanks for the prompt response. It works.

-Original Message-
From: Erik Husby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 4:11 PM
To: Maven Users List
Subject: Re: pom.siteDirectory


Liu, Zhihai wrote:

I wanted to define pom.siteDirectory in build.properties to overwrite
siteDirectory in project.xml to deploy to a different location, but it
did
not work. 

This is what I have in build.properties
...
maven.site.deploy.method=fs
pom.siteDirectory=C:/app/site
...

Maven build always uses the value for siteDirectory in project.xml and
ignores my change in build.properties.

Any help is greatly appreciated.
  

Put in the pom something like
siteDirectory${siteDirectory}/siteDirectory

Then put a default value in project.properties
siteDirectory=defaultSite

Then put in build.properties
siteDirectory=c:/app/site



-- 
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard 
Rm. 2192  320 Charles St
Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, [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]



Inherit parent's pom.siteDirectory

2004-05-24 Thread Dan Tran
Hello, is there a way to inherit parent's pom.siteDirectory

ie, I can define siteDirectory element in project.xml


extend ${basedir}/../project.xml /extend
..


siteDirectory${pom.siteDirectory}/mydir /siteDirectory


When I try this with my maven site goal, I got stack overflow.

Thanks

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