anaderi / skygrid

Prototype project for SHIP grid-cloud framework developed in the context of CERN openlab summer school
2 stars 0 forks source link

Get rid of hardcode #5

Closed xni closed 10 years ago

xni commented 10 years ago

https://github.com/anaderi/openlab_ship_proto/blob/master/YARN/src/main/java/ru/yandex/cern/yarntest/AppClient.java#L43

dsar commented 10 years ago

Do you mean to make it a input-parameter or just to adjust it to my project? I did the latter.

xni commented 10 years ago

May be it's possible to determine it in runtime

xni commented 10 years ago

Yes, it is

AppClient.class.getProtectionDomain().getCodeSource().getLocation().getFile()