On Wed, Jun 27, 2012 at 10:35 AM, Nirmal Fernando <[email protected]> wrote:

> Hi,
>
> Currently ciphertool cannot be executed if you are not inside the
> $CARBON_HOME/bin folder.


> Further examination into code explains this behaviour [1]. Please fix this
> correctly.
>

If there is any requirement to run ciphertool from any location,  you can
improve and fix it :)

Thanks,
Asela.


>
> [1]
>
>  String osName = System.getProperty("os.name");
>         File file;
>         if(osName.toLowerCase().indexOf("win") == -1){
>             file = new File("." + File.separator + ".." + File.separator);
>         } else {
>             file = new File("." + File.separator);
>         }
>
>         try {
>             System.setProperty("carbon.home",
> file.getCanonicalFile().toString());
>         } catch (IOException e) {
>             handleException("IOError while calculating CARBON_HOME
> directory location ", e);
>         }
>
> --
>
> Thanks & regards,
> Nirmal
>
> Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to