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
variables.

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
module)

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.

Reply via email to