Hi,

I tried putting some parts of project.xml inside a separate file, and then 
referencing it from project.xml using a xml entity-ref like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
   <!ENTITY javadocPackageGroups  SYSTEM 
"file:${maven.src.dir}/main/resources/javadoc/packageGroups.xml">
]>

<project xmlns="/maven/maven-1.0-rc1/maven-project.xsd">
    <pomVersion>3</pomVersion>
    ....
   &javadocPackageGroups;
    ....

but the use of "${maven.src.dir}" inside the DOCTYPE definition is not 
expanded to the property value. If I put in the physical path, it works fine.

I guess this is due to the xml-parser being the one automatically resolving 
these, but I think it is also possible to write entity-resolvers, and 
configure the parser with these. Hence, maven could expand properties here 
too!

Might this be a feature for maven?

/Per

-- 
Per Olesen @ Nordija A/S - www.nordija.com - main#: +45 70 20 25 10
email: [EMAIL PROTECTED] - cell#: +45 23 38 95 81


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

Reply via email to