* Konstantin Shaposhnikov <[EMAIL PROTECTED]> [2003-11-03 04:43]:
> Alain Javier Guarnieri del Gesu wrote:
>
> >* Konstantin Shaposhnikov <[EMAIL PROTECTED]> [2003-11-02 17:33]:
> >
> >>On 20:05 Sat 01 Nov , Alain Javier Guarnieri del Gesu wrote:
> >>
> >>>Is it possible to define a property in an extended project using the
> >>>same value in the master project?
> >>>
> >>><!-- In master. -->
> >>><project>
> >>> <siteDirectory>/www/ajgdg.com/codearea</siteDirectory>
> >>></project>
> >>>
> >>><!-- In extension. -->
> >>><project>
> >>> <extends>master.xml</extends>
> >>> <siteDirectory>${pom.siteDirectory}/project1</siteDirectory>
> >>></project>
> >>>
> >>>It seems that my subproject values are all just a string prepended
> >>>to a common prefix. How have other folks handled this?
> >
> >
> >>This technique works fine for my projects.
> >
> >
> >I'm running out of memory when I do this. Is it possible to set
> >arbitrary variables in a pom? Could I have a pom.siteBaseDirectory
> >variable? (Runs off to check.) Nope.
> >
> Oh, I was not very carefull while reading your answer. In my case
> situation slightly different, but I think you can handle similar
> properties in subprojects like me:
>
> In master:
> <project>
> <siteDirectory>/www/ajgdg.com/codearea/${pom.artifactId}</siteDirectory>
> </project>
>
> In extension:
> <project>
> <id>project1</id>
> </project>
>
> So sitedirectory for extension would be "/www/ajgdg.com/codearea/project1"
That's the direction I've taken. I suppose too, that this will be
much easier when project properties are inheritied. Something to
provide a common set of user defined variables.
--
Alain Javier Guarnieri del Gesu - [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]