How to set target platform using command line

227 views
Skip to first unread message

Santosh Kumar

unread,
Aug 21, 2012, 3:23:44 AM8/21/12
to eclipse-...@googlegroups.com
Hi,

I am looking for some help to set Eclipse target platform using command line. 

The requirement is to run an application ( specifically ant runner from command line)  which needs different target platform from installed eclipse. 
Is there way to set the target platform using command line parameter ?

--
Regards,
Santosh Kumar

Vishwas

unread,
Aug 21, 2012, 4:09:20 AM8/21/12
to eclipse-...@googlegroups.com
Hello
http://www.eclipsezone.com/eclipse/forums/t60970.html

I think the "base localtion" property  in the build.xml of PDE specifies the target . so you can pass that as key and value as path of your target platform .

<arg value="-DbaseLocation=${baseLocation}" />
<arg value="-Dbaseos=${baseos}" />
<arg value="-Dbasews=${basews}" />
I think passing -DbaseLocation="/CUSTOM-PATH" will set the target platform  for the ant runner


hope this helps

regards
Vishwas



--
Regards,
Santosh Kumar

--
===================================================
Visit us at:
http://groups.google.com/group/eclipse-pune-dev/
===================================================

Santosh Kumar

unread,
Aug 21, 2012, 6:02:05 AM8/21/12
to eclipse-...@googlegroups.com
Thanks Vishwas.

I tried to the same, but some how it did not worked.  Will try once more to see. 

/santosh
--
Regards,
Santosh Kumar

Reply all
Reply to author
Forward
0 new messages