Niclas Hedhman wrote on Monday, April 19, 2004 2:01 PM:

> On Monday 19 April 2004 04:11, J�rg Schaible wrote:
> 
>> So my /myproject/build/entities directory contains the project.ent
>> and all the files that define the real entities like characters.ent,
>> versions.ent, ... 
>> 
>> project.ent contains the lines:
>> <!ENTITY % character-entities SYSTEM "file:characters.ent">
>> %character-entities; <!ENTITY % version-entities SYSTEM
>> "file:versions.ent"> %version-entities; ... 
>> 
>> See, that all references files here are located in the same
>> directory. All of my locator.ent files contain just one line(1) like:
>> 
>> <!ENTITY % project-entities SYSTEM
>> "file:../../build/entities/project.ent">
>> %project-entities;
> 
> 
> This doesn't work for me.
> 
> If
> index.ent
> <!ENTITY % project-entities SYSTEM
> "file:../../build/entities/project.ent">
> %project-entities;
> 
> project.ent
> <!ENTITY % character-entities SYSTEM "file:characters.ent">
> %character-entities; 
> 
> 
> The characters.ent is resolved against 'current working
> directory' which is
> where index.ent is.

No. Only index.ent is resolved against the current working directory, since this file 
is included by the POM. See also 
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1223. The other included 
entity files are resolved against the location of the superior entity file.

> Or am I doing something utterly wrong elsewhere?

Well, I have this running and it works for Windows (Cygwin) and Linux for some 
projects. So you might really test this yourself again.

Regards,
J�rg

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

Reply via email to