[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: System path in eclipse
|
So after some mucking around, I found out a way to do this is ant build
file. I still don't know how to change it in eclipse
I am attaching a sample code for other's future reference.
<property name="mypath" value="${env.Path};your/path/dirs" />
<property name="cygdir" value="path/to/cygwin/bin" />
<target name="sometarget">
<exec dir="path/to/dir/for/makefile" executable="${cygdir}/make">
<env key="PATH" path="${mypath}" />
</exec>
</target>
Please note, it could be any binary instead of "make" which you might
want to run.
My main problem was in the my make file, I had some commands such as rm,
etc which were not being recognized.
Cheers,
Rish
Rishi wrote:
Hi,
I am using Eclipse 3.3 on Win2K machine. Is there a way to set up system
path in eclipse and not by modifying for the system on the whole (i.e.
by modifying the environment variable PATH)? I am using ant build and I
would like certain binaries to be available to it.
I tried setting it up as ant environment variable in the Builder config
but it doesn't work.
I would appreciate if someone can help on this.
Thanks,
Rish