bufanliu / apparat

Automatically exported from code.google.com/p/apparat
0 stars 0 forks source link

Apparat bat files do not work under windows #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I run any one of the bat files provided with the Apparat download i get the 
following error :

C:\Apparat\Apparat-1.0-RC9>dump
error: IO error while decoding 
C:\Apparat\Apparat-1.0-RC9\apparat-anttasks-1.0-RC9.jar with UTF-8
Please try specifying another one using the -encoding option
one error found

I have found that the problem lies with the scala -cp (classpath) option
and adding the current directory (using '.') to the class path fixes the 
problem.
Change this :
  scala -cp "%~dp0\*" apparat.tools.dump.Dump %*
to ->
  scala -cp ".;%~dp0\*" apparat.tools.dump.Dump %*

I am using apparat-1.0-RC9.

Original issue reported on code.google.com by thecma...@gmail.com on 26 Mar 2012 at 8:31

GoogleCodeExporter commented 9 years ago
Thank you for providing the fix!

Original comment by joaebert on 26 Mar 2012 at 10:41

GoogleCodeExporter commented 9 years ago
Thanks for this solution. I was having the same problem.

Original comment by m...@skylogic.ca on 3 Jul 2012 at 6:23

GoogleCodeExporter commented 9 years ago
I'm a little new to working with scala and apparat. Where and how can I make 
this change. (which file and what kind of editor should I use?)

Original comment by PDGre...@gmail.com on 10 Oct 2012 at 7:55

GoogleCodeExporter commented 9 years ago
The file you edit is the bat file. :) for instance 
apparat_path_here\apparat.bat and you can use any text editor. Like notepad++ 
(notepad sucks) 

Original comment by ArthurWu...@gmail.com on 24 Oct 2012 at 8:31

GoogleCodeExporter commented 9 years ago
https://github.com/joa/apparat/commit/49db31a6ac0745380491e9cff77939bee5319cc6

Original comment by joaebert on 24 Oct 2012 at 1:04