BTW, if you're just going to use a property passed in from the command
line, you could also do this:

<siteDirectory>${publishDir}</siteDirectory>

  Jeff

On Sat, 31 Jul 2004, at 00:54:22 [GMT -0500] Jefferson K. French
wrote:

> Chad,

> Try this:

>   <j:set var="dummy" value="${pom.setSiteAddress(myHost)}"/>
>   <j:set var="dummy" value="${pom.setSiteDirectory(publishDir)}"/>

> publishDir is the property passed in from Anthill. You can set myHost in
> a *.properties file or with <j:set> or pass it in with -D.

> I don't have AnthillPro, but you can pass in command-line properties
> with AnthillOS. Click the link to edit a project's build properties.
> The next screen lets you add one or more anthill.build.ant.params
> properties. Just add one that has a '-DmyHost=whatever'. Maybe
> AnthillPro has something similar?

>   Jeff

> On Thu, 29 Jul 2004, at 11:12:42 [GMT -0700] Chad Woolley wrote:

>> Jeff,

>> The problem is that the publishDir changes (there is a subdirectory for 
>> each individual build).  So, I can't hardcode a specific location.

>> I can get at the Anthill publishDir property that is passed in, but I 
>> don't know how to make this override the "host" and "directory" from the 
>>   maven POM.

>> The real problem I guess is that the POM entries seem to be immutable, 
>> unless you specify a variable like <directory>${myVar}</directory>. 
>> However, (as far as I know) you can only set these via System properties 
>> on the command line, which I don't know how to do when maven is invoked 
>> via Anthill.  I've got a separate thread going on this specific question 
>> (How can I override the currentversion from the POM).

>> I'm probably missing something very obvious here, but I don't know what.

>> Thanks,
>> Chad

>> Jefferson K. French wrote:
>>> Chad,
>>> 
>>> I use AnthillOS and Maven, but publish to a different location and
>>> have an entry in navigation.xml that points to the Anthill build logs.
>>> 
>>> Since you can specify the host and directory to which Maven deploys
>>> the site, can you not just deploy the site to the Anthill publishDir?
>>> 
>>>   Jeff
>>> 
>>> On Wed, 28 Jul 2004, at 11:32:25 [GMT -0700] Chad Woolley wrote:
>>> 
>>> 
>>>>> Hi,
>>> 
>>> 
>>>>> Does anyone out there use Anthill Pro with Maven to manage the automatic
>>>>> publishing of their Maven-generated site to the Anthill Intranet?
>>> 
>>> 
>>>>> There seem to be some hardcoded stuff in the maven site:deploy goals 
>>>>> which make
>>>>> this difficult.  I have written some postGoal hacks, but they are ugly, 
>>>>> and I
>>>>> don't really want to duplicate them across projects, or go to the trouble of
>>>>> making a plugin out of them.  Is there a simple solution?
>>> 
>>> 
>>>>> I would greatly appreciate it if anyone can share their experience or 
>>>>> code samples.
>>> 
>>> 
>>>>> Thanks,
>>>>> Chad
>>> 
>>> 
>>> -- 


-- 
mailto:[EMAIL PROTECTED]



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

Reply via email to