You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by rogatip <ro...@abv.bg> on 2009/10/15 17:19:47 UTC

Problem with creating zip file with dynamic created zipfilesets

I got some problems while trying to create a zip file within previously
created zipfilesets. 
I have a loop where the filesets are created.

<target name="createZipFileSets">
 <for list="${zip.filesets}" param="zipfileset">
 <sequential>
   <propertycopy name="zip.fileset.id"
from="zip.fileset.id.${zipfile}.@{zipfileset}" />	
   <propertycopy name="zip.fileset.dir"
from="zip.fileset.dir.${zipfile}.@{zipfileset}" />
   <propertycopy name="zip.fileset.include"
from="zip.fileset.include.${zipfile}.@{zipfileset}" />
   <propertycopy name="zip.fileset.exclude"
from="zip.fileset.exclude.${zipfile}.@{zipfileset}" />
   <propertycopy name="zip.fileset.prefix"
from="zip.fileset.prefix.${zipfile}.@{zipfileset}" />
   <zipfileset 
	id="{zip.fileset.id}"  - ** Here is the problem, it can't find it 
	dir="${zip.fileset.dir}" 
	includes="${zip.fileset.include}" 
	excludes="${zip.fileset.exclude}" 
	prefix="${zip.fileset.prefix}"  
    />
 </sequential>
 </for>
</target>

The question here is: Can i use the zipfileset's id to create a zip file
somewhere else in my xml file (ex. another target)?
For example:
<zipfileset 
  id="${zip.fileset.id}" 
  dir="${zip.fileset.dir}" 
  includes="${zip.fileset.include}" 
  excludes="${zip.fileset.exclude}" 
  prefix="${zip.fileset.prefix}"  
/>


for ex: - ${zip.fileset.id}=blabla

The error is: Reference blabla () not found, See **

Thanks in advance.

Best regards,
Joro
-- 
View this message in context: http://www.nabble.com/Problem-with-creating-zip-file-with-dynamic-created-zipfilesets-tp25910504p25910504.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org