Author Topic: DictionaryGeneration not returning errorlevel to shell  (Read 1673 times)

0 Members and 1 Guest are viewing this topic.

ian_asia

  • Newbie
  • *
  • Posts: 2
    • View Profile
DictionaryGeneration not returning errorlevel to shell
« on: 29. September 2011, 04:02:45 »
When using the batch file that comes with DictionaryForMIDs I see the batch file has two "pause" commands coded in. When I run java programs in a batch files I have in some error catching code like this.

if  %errorlevel% neq 0 set errormessage=echo Big Problem with DictionaryGeneration, the errorlevel set to %errorlevel%
if  %errorlevel% neq 0 set errorpause=pause
%errormessage%
%errorpause%
set errorpause=

If no errors occur then the batch file does not pause. What most of us want I think.

However DictionaryGenerator does not set the %errorlevel% even when it fails. I don't write Java but I imagine that this is trivial. In contrast JarCreator does set the %errorlevel% on a failure.

Can this be fixed?

Ian

Gert

  • DFM J2ME/Mobile Developer and Project Leader
  • Administrator
  • *****
  • Posts: 862
    • View Profile
    • DictionaryForMIDs
Re: DictionaryGeneration not returning errorlevel to shell
« Reply #1 on: 29. September 2011, 04:34:43 »
Ian,

this is a very good hint !

Yes, it is rather trivial to fix this - and I will fix that; I just need to find a little time ...

Do you need that fix quickly ?

Gert

ian_asia

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: DictionaryGeneration not returning errorlevel to shell
« Reply #2 on: 02. October 2011, 14:40:03 »
Sorry I forgot to look back here.

I do not need it quickly. Though are we talking weeks or months? Weeks would be good. Mid October? I'll just process carefully. If the first fails then the second will fail too in my limited experience. But trying to solve the second when the first has failed is pointless.

I mentioned elsewhere about other concerns.
I found buried in the documentation the info that answered my question.

The way the documentation is laid out it does not show sub-topics. You have to read the documentation and click on link words. I find it easy to overlook key info that way. A tree of the documentation in the main menu would help. Maybe it is somewhere else, I have not seen it.

Thanks.

Ian

Gert

  • DFM J2ME/Mobile Developer and Project Leader
  • Administrator
  • *****
  • Posts: 862
    • View Profile
    • DictionaryForMIDs
Re: DictionaryGeneration not returning errorlevel to shell
« Reply #3 on: 02. October 2011, 17:18:07 »
Quote
Though are we talking weeks or months?

... end of year would be a good time; well, ok, I will try to get it done earlier. I should not take much to to get that implemented. I just need maybe one hour for that.

Quote
The way the documentation is laid out it does not show sub-topics. You have to read the documentation and click on link words. I find it easy to overlook key info that way. A tree of the documentation in the main menu would help.

Ok, thanks for that hint. Hmmm, besides, at any time, be welcome to contribute any improvements ;)

Best regards,
Gert