ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Replace ANT task
Date Mon, 04 Aug 2008 14:48:31 GMT
Hi there,
I have zip file with several modules inside. I am using Eclipse classpath
variables in my development environment. i am using commandline compiler
which calls headless eclipse to compile my project. As Eclipse classpath
variables are limited to workspace, compiler failed to resolve the

I decided to take ANT help to resolve classpath variables.

my .classpath entry looks like

<classpathentry kind="var" path="MYVARIABLE/ant.jar"/>

using ant task
 <replace file=".classpath" token="MYVARIABLE" value="ABSOULUTE FILE PATH"/>

I replaced the MYVARIABLE in .classpath.

I can do if it's a one project. But i have modules in project with
.classpath file in every modules.

Here is what i am trying to do

I have ZIP file with multiple modules , ever module has .classpath file

i am trying to unzip the project , iterate over all modules and find
.classpath and replace MYVARIABLE

My effort::

used and unzip task to unzip which created several folders(one for each

i am not able to write logic to iterate over all folders

i know how to user "replace ant task"

Help needed with iterating.

Thanks in advance.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message