John Gill wrote:
What I have done is to create an ivy-template.xml file which has lots of ant
properties in it. Then I have a little bit of ANT code that reads in the
ivy-template.xml file into an ant property, but using an expandproperties
filterchain (which will replace all ant properties which their value). Then
all you have to do is write the property you read the file into out to
another file called ivy.xml.

Something like this...
<property name="ivy.module.name" value="StevesModule"/>

<loadfile property="ivy-template-file" srcFile="ivy-template.xml">
  <filterchain>
     <expandproperties/>
  </filterchain>
</loadfile>
<echo file="ivy.xml">${ivy-template-file}</echo>

Now assuming that you have ${ivy.module.name} referenced in your
ivy-template.xml file, after running that little bit of ant code, all
references to ${ivy.module.name} (and any other ant properties you have in
the file) will be replaced with the value of those properties.

yes, I see what you are doing, and have done the same with maven in the dim past. Trouble is, it screws up the bulk building stage of the process

Is this a suitable solution to your problem?


well, I could always work the names out from my build files and ${ant.project.name} (assuming a 1:1 mapping) but I want stuff to work in buildpath and the like

I'll file a bug, and hand code the stuff in for now

-steve

Reply via email to